in reply to Enlighten by Abigail-II's example. Tis a MCE::Hobo demonstration.
Hi Mario,
I tried doing a simple test on Linux and Windows
vs.my $start = localtime; mfork(4,4, sub { my $x = 1e9; $x-- until $x == 1; print "$$\n"; }); my $end = localtime; my $t1 = $end - $start; print "Seconds: ",$t1->seconds,"\n";
Is this a valid benchmark?my $start = localtime; mhobo(4,4, sub { my $x = 1e9; $x-- until $x == 1; print "$$\n"; }); my $end = localtime; my $t1 = $end - $start; print "Seconds: ",$t1->seconds,"\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Enlighten by Abigail-II's example. Tis a MCE::Hobo demonstration.
by marioroy (Prior) on Mar 14, 2017 at 08:22 UTC | |
by marioroy (Prior) on Mar 19, 2017 at 11:37 UTC | |
by BrowserUk (Patriarch) on Mar 19, 2017 at 12:55 UTC | |
by marioroy (Prior) on Mar 19, 2017 at 17:54 UTC |