http://www.perlmonks.org?node_id=1004609


in reply to Re^5: Question on Regex
in thread Question on Regex

Hello, one important thing i learned in the short time i'm on PM is: there is no reason to be ashamed to ask something that i don't know or understand. So i must confess that i have a problem to interpret the output of Benchmark in the right way. I didn't use this module very much yet.

I know when i use cmpthese, the results are sorted from slow to fast. When i say $count = -10, my code runs for 10 wall clock seconds.

Then, in the rate column i can see the amount of iterations per second for each of the subs that i benchmarked - in our (first) case:

karlgoethebier 105189/s athanasius 627362/s

So i try:

Karls-Mac-mini:Desktop karl $ perl -e 'printf ("%.0f\n", 627362/105189 +);' 6

You wrote:...Which shows that sub athanasius is up to 5 times faster than sub karlgoethebier. Perhaps i have a mental block at the moment or i miss something really essential, sorry.

Thanks for advice and regards, Karl

«The Crux of the Biscuit is the Apostrophe»