Perl reference vs. direct access vs. return Benchmark

This is a little Perl Script where I try to test what way is faster,  I test a normal reference(alias) in a sub vs. the direct access vs. normal access to a variable in a sub and then return the result, here is my Benchmark code:

Our test result:

36 thoughts on “Perl reference vs. direct access vs. return Benchmark”

  1. Whoa! This blog looks just like my old one!
    It’s on a entirely different topic but it has pretty much the same layout and design. Great choice of colors!

    View Comment
  2. Pretty nice post. I just stumbled upon your
    blog and wished to mention that I’ve truly loved
    browsing your blog posts. In any case I’ll be subscribing to your feed and
    I’m hoping you write again very soon!

    View Comment
  3. Have you ever considered writing an e-book or guest authoring on other blogs?
    I have a blog based upon on the same information you discuss and would
    love to have you share some stories/information. I know
    my audience would enjoy your work. If you’re even remotely interested, feel free to send me
    an e-mail.

    View Comment
  4. Nice post. I learn something new and challenging on websites I stumbleupon everyday.
    It’s always exciting to read content from other writers and use a
    little something from their web sites.

    View Comment
  5. I just could not depart your website before suggesting that I really enjoyed the usual information an individual provide to
    your visitors? Is gonna be again frequently to check up on new
    posts

    View Comment
  6. Hello would you mind letting me know which hosting company you’re working
    with? I’ve loaded your blog in 3 different web browsers and I must say this blog loads a lot quicker then most.
    Can you recommend a good internet hosting provider at a reasonable price?
    Thanks, I appreciate it!

    View Comment
  7. What’s up everyone, it’s my first pay a quick visit at this website, and article
    is in fact fruitful for me, keep up posting these types of articles.

    View Comment
  8. Good day! This is my first visit to your blog! We are
    a team of volunteers and starting a new project in a community in the same niche.
    Your blog provided us valuable information to
    work on. You have done a marvellous job!

    View Comment
  9. Hello there, just became aware of your blog through Google,
    and found that it is really informative. I am gonna watch out for brussels.
    I’ll be grateful if you continue this in future.
    Many people will be benefited from your writing.
    Cheers!

    View Comment
  10. Wow, amazing blog layout! How long have you been blogging for?
    you made blogging look easy. The overall look of your site is fantastic,
    as well as the content!

    View Comment
  11. Hello my family member! I want to say that this post
    is awesome, great written and come with approximately all vital infos.
    I’d like to look extra posts like this .

    View Comment
  12. Hello! Someone in my Facebook group shared this site with us so I
    came to take a look. I’m definitely enjoying the information. I’m bookmarking and will
    be tweeting this to my followers! Great blog and superb style and design.

    View Comment
  13. Hi, i think that i saw you visited my site so i came to “return the favor”.I’m attempting to find things to enhance my
    website!I suppose its ok to use some of your ideas!!

    View Comment
  14. I think this is one of the most important info
    for me. And i am glad reading your article. But should remark on few general things, The site style is ideal, the articles is
    really great : D. Good job, cheers

    View Comment
  15. Excellent post. I was checking continuously this weblog and I’m inspired!
    Extremely useful information specially the closing part :
    ) I maintain such info a lot. I used to be looking for this particular information for a long time.
    Thank you and good luck.

    View Comment
  16. It’s a pity you don’t have a donate button! I’d most certainly
    donate to this fantastic blog! I suppose for now i’ll settle for book-marking and adding your RSS feed to my Google account.
    I look forward to fresh updates and will talk about this blog
    with my Facebook group. Talk soon!

    View Comment
  17. Definitely believe that which you stated. Your favorite
    reason appeared to be on the web the simplest thing to be aware of.
    I say to you, I certainly get irked while people
    think about worries that they just don’t know about.
    You managed to hit the nail upon the top and also defined
    out the whole thing without having side effect , people can take a
    signal. Will likely be back to get more.
    Thanks

    View Comment
  18. It’s a pity you don’t have a donate button! I’d definitely
    donate to this superb blog! I suppose for now i’ll settle for book-marking and adding your RSS feed to my Google account.
    I look forward to brand new updates and will talk about this website with my Facebook group.

    Chat soon!

    View Comment

Leave a Reply

Your email address will not be published.

four × one =