How to find out the average duration of the peer-review process for a given journal?
For publishing in mathematics you could check out the AMS' Backlog of Mathematics
Research Journals. Among other things it provides a current estimate of
waiting time between submission and publication and historical data for the time between submission and final acceptance.

I'd personally take these estimates with a grain of salt, but I suppose if you're desperate it's better than nothing.