INEGI's homicide statistics for 2017 confirm that last year was, to date, the most violent year on record with
31,174 murders. For the last few years, INEGI's numbers have always a bit higher than the government's data (from the National Public Security System of SEGOB), which for 2017 reported 24,893 cases and 28,711 victims. INEGI's data provides
a homicide rate of 25/100,000 inhabitants for 2017, which is also the highest ever recorded. The homicide rate reported by the SNSP (which was 20.5 for 2017, iirc) is calculated on the number of cases rather than victims, so I suppose INEGI's higher rate is more accurate.
The previous high, in 2011 (at the 'peak' of the so-called 'drug war') was 27,213. There have been over 20,000 murders annually since 2010.
INEGI's data can be broken down by several categories, which provides interesting though deeply morbid and disturbing data:
89% of victims were males (27,771), against 3,324 females. This means that the homicide rate for Mexican males only is 46/100,000 males.
By age:
216 were younger than 10
229 were between 10 and 14
2,351 were between 15 and 19
4,505 were between 20 and 24
4,730 were between 25 and 29
4,419 were between 30 and 34
3,862 were between 35 and 39
3,213 were between 40 and 44
2,181 were between 45 and 49
1,460 were between 50 and 54
985 were between 55 and 59
1,716 were older than 60
38% were younger than 30
65% were younger than 40
38% were single, 44% were married or in a relationship
13.5% had not completed primary school, 18% had a high school education or higher
At least 58% were killed on a street or other public road
Full data:
http://www.inegi.org.mx/sistemas/olap/Proyectos/bd/continuas/mortalidad/DefuncionesHom.asp?s=est&c=28820&proy=mortgral_dh