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!

  2. My family all the time say that I am wasting my time here at net, but
    I know I am getting experience everyday by reading such good posts.

  3. This is my first time go to see at here and i am actually
    pleassant to read everthing at one place.

  4. 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!

  5. 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.

  6. I read this article fully on the topic of the resemblance
    of most recent and earlier technologies, it’s remarkable article.

  7. I always used to study article in news papers but now as I am a user of internet
    so from now I am using net for articles or reviews, thanks
    to web.

  8. 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.

  9. Why people still make use of to read news papers when in this technological world everything is
    available on net?

  10. These are in fact wonderful ideas in regarding blogging.
    You have touched some pleasant things here.

    Any way keep up wrinting.

  11. 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

  12. Wow, this piece of writing is good, my sister is analyzing these kinds of things, so I am going to inform her.

  13. I am sure this piece of writing has touched all the internet viewers, its really really good piece of writing
    on building up new web site.

  14. 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!

  15. 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.

  16. 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!

  17. 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!

  18. 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!

  19. This blog was… how do you say it? Relevant!! Finally I have found something
    which helped me. Cheers!

  20. I enjoy what you guys are up too. Such clever work and reporting!

    Keep up the awesome works guys I’ve included you guys to blogroll.

  21. 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 .

  22. 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.

  23. 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!!

  24. 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

  25. These are really enormous ideas in regarding blogging. You have touched some nice things here.
    Any way keep up wrinting.

  26. It’s hard to come by knowledgeable people about this topic, but you sound like you know
    what you’re talking about! Thanks

  27. Hi friends, how is all, and what you would like to say concerning this article, in my view its truly remarkable in favor of me.

  28. 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.

  29. 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!

  30. 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

  31. 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!

Leave a Reply

Your email address will not be published.

five × one =