perl map vs for Benchmark

I want to test what’s the different between a map function and a for iteration with Perl is:

Our Benchmark result:

map is about 11% faster than a simple for loop.

2 thoughts on “perl map vs for Benchmark”

  1. Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my
    blog that automatically tweet my newest twitter updates.
    I’ve been looking for a plug-in like this for quite some time and
    was hoping maybe you would have some experience with something like this.
    Please let me know if you run into anything. I truly enjoy
    reading your blog and I look forward to your new updates.

    View Comment

Leave a Reply

Your email address will not be published.

two × 2 =