Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Why this code is so slow if run in thread?

by ikegami (Patriarch)
on Dec 11, 2016 at 19:14 UTC ( [id://1177615]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Why this code is so slow if run in thread?
in thread Why this code is so slow if run in thread?

Did you look at your results? They're mostly useless!

We can tell that shorts are 50x slower with threads, but we have no idea how much slower bytes are with threads. Could be there not slower at all (0.9999s vs 1.0000s). Could be billions time slower (0.000000001 vs 1.000000000).

Please re-run the tests with use Time::HiRes qw( sleep );. Or provide the data files.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (8)
As of 2024-04-24 10:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found