Perl increment Benchmark

This is a Perl Benchmark about post-increment,pre-increment and a normal increment:

This is our result:

pre increment is the fastest because it have not to increment the value and return the old value.But the fastest is the fixed range, take a look at for loop Benchmark.The default is the slowest because it have to handle other steps.

One thought on “Perl increment Benchmark”

Leave a Reply

Your email address will not be published.

16 − 6 =