Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Sorting keys of hash table by values

by lidden (Curate)
on Jan 31, 2008 at 22:34 UTC ( #665467=note: print w/replies, xml ) Need Help??


in reply to Re^2: Sorting keys of hash table by values
in thread Sorting keys of hash table by values

Did you try it?
I thought that too but testing samtregar and kyles versions took the same time. Ikegamis version is about 6% slower.
  • Comment on Re^3: Sorting keys of hash table by values

Replies are listed 'Best First'.
Re^4: Sorting keys of hash table by values
by rjray (Chaplain) on Jan 31, 2008 at 23:12 UTC

    How did you test it? What size(s) of hash tables? How many iterations? Particularly if the hash table is small, the differences could be swallowed up by variations in the O/S CPU scheduling and other tasks running at the same time.

    --rjray

      2000 and 5000 keys, 1000 and 3000 iterations.

      Code:

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2023-12-06 18:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (31 votes). Check out past polls.

    Notices?