![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
Re^8: PDL and srand puzzle - testing using MCEby marioroy (Prior) |
on Jun 06, 2024 at 06:06 UTC ( [id://11159813]=note: print w/replies, xml ) | Need Help?? |
I'm taking CORE::rand() and PDL::random() for a spin without threads. Rather, child processes. There are 8 workers, each output 50,000 lines. A count below 400,000 indicates duplicates in the output.
CORE::rand()
PDL->random
Next, I tried 12 million unique lines and tight loop by appending to a string (i.e. no waiting for serialized output previously). Again, no duplicates.
CORE::rand() and PDL->random
Sorting takes a while. There is the mcesort program with integrated mini-MCE. Copy the script to /usr/local/bin and sudo chmod +x /usr/local/bin/mcesort or bin path of your choice.
In Section
Seekers of Perl Wisdom
|
|