Do you know where your variables are? | |
PerlMonks |
Re^3: Tied Hashes vs. Objectsby BrowserUk (Patriarch) |
on Oct 22, 2012 at 21:31 UTC ( [id://1000419]=note: print w/replies, xml ) | Need Help?? |
As it had been a long time since I'd performed this kind of benchmark, I did one: <Reveal this spoiler or all in this thread>
The results:
show that using the object interface saves 1 microsecond per key, spread across all 5 operations performed on each key/value, Say 1/5th of a microsecond (0.0000002) per operation. You need to be doing billions of hash operations -- with almost no other associated processing -- for that to become a significant part of your time costs. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|