Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: Optimizing with Caching vs. Parallelizing (MCE::Map) (PDL fun)

by marioroy (Prior)
on Apr 21, 2020 at 21:02 UTC ( [id://11115875]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
        for @seqs;
    
    say {*STDERR} time - $t;
    
  2. or download this
    1e7 testing
         vr_pdl3:    46.328s  cache
    ...
        Collatz(5598635) has sequence length of 595 steps
        Collatz(8397953) has sequence length of 593 steps
        Collatz(6298465) has sequence length of 590 steps
    
  3. or download this
    1e8 testing
         vr_pdl3:  9m44.667s  cache
    ...
        Collatz(96060863) has sequence length of 736 steps
        Collatz(46564287) has sequence length of 735 steps
        Collatz(69846431) has sequence length of 733 steps
    
  4. or download this
    8 cores
        mce_pdl2 1e8  16.660s  chunk_size => 300000
        mce_pdl2 1e8  10.471s  chunk_size => 100000
        mce_pdl2 1e8   9.773s  chunk_size =>  50000
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-03-29 12:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found