Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

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

by marioroy (Parson)
on Apr 21, 2020 at 21:02 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2020-10-22 06:44 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (225 votes). Check out past polls.