Most powerful Mexican Military (relative to the US)

When was the Mexican Military strongest relative the the US Military? I'm thinking either the 1820s just after independence or the 1880s during the Porfiriato when Mexico was relatively stable and the US Military didn't consist of much more than troops to keep the Indians under control.
 
Top