[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Quick hack for common length




> By the way, the n= value is mostly irrelevant.  That's the total number of
> executions, whereas what you really want to pay attention to is the number
> of executions per second:
> 
> Benchmark: running Inline_C, Japhy, Perl, each for at least 3 CPU
> seconds...
> Inline_C: @347539.37/s
>    Japhy: @49496.58/s
>     Perl: @50580.56/s
> 
> Sometimes one snippet will have a larger value for n than a more efficient
> solution, just because Benchmark ran the first one for a longer period of
> time.  (Although that obviously didn't happen in this case.  :)

It also might be the case that the benchmark wasn't run twice on the same 
code and Inline had to re-compile the C source before running it.

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe