Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^7: Working with fixed length files

by BrowserUk (Patriarch)
on Apr 28, 2011 at 18:56 UTC ( [id://901848]=note: print w/replies, xml ) Need Help??


in reply to Re^6: Working with fixed length files
in thread Working with fixed length files

There is something wrong with this benchmark. I don't know what it is yet, but there is definitely something wrong.

Your numbers show, and I get the same results here, that Ike1 & Ike2 run in almost identical time.

This, despite that Ike1 loops twice as many times and make twice as many calls per loop to unpack and makes twice as many calls per loop to sysread. So 4 times as many calls to each over all, Ie 8 times as many calls in total!

That flies in the face of everything we know about performant Perl code. Sorry, but that simply cannot be true.


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://901848]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-24 09:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found