Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Unexplained benchmark when using chop vs. chomp (or neither)

by Eily (Prior)
on Mar 08, 2018 at 10:55 UTC ( #1210508=note: print w/replies, xml ) Need Help??


in reply to Re: Unexplained benchmark when using chop vs. chomp (or neither)
in thread Unexplained benchmark when using chop vs. chomp (or neither)

four very different algorithms
Well, benchmarking several times the same code and using the result to simulate a horse race is a legitimate use of Benchmark. But some people also use Benchmark to compare different algorithms that give the same result.

Also, you neglect to place the three “Perl alternatives”
As a matter of fact, since the issue is that the input data is modified by the chopping function, comparing them in the same run may have shown that all the variants gets faster when chop is called.

  • Comment on Re^2: Unexplained benchmark when using chop vs. chomp (or neither)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1210508]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2018-07-20 05:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (424 votes). Check out past polls.

    Notices?