- or download this
#!/usr/bin/perl
use strict;
use warnings;
...
$min = $nextmin;
}
}
- or download this
Benchmark: timing 100 iterations of Baseline, Integers, LR_1, LR_2, Qu
+eue, blokhead...
Baseline: 0.554613 wallclock secs ( 0.54 usr + 0.01 sys = 0.55 CPU
+) @ 181.82/s (n=100)
(warning: too few iterations for a reliable count)
...
LR_1 5.33/s 409% 271% 72% -- -86% -97%
Queue 39.2/s 3650% 2635% 1169% 636% -- -78%
Baseline 182/s 17287% 12578% 5785% 3313% 364% --
- or download this
Benchmark: timing 100000 iterations of Baseline, Integers, LR_1, LR_2,
+ Queue, blokhead...
Baseline: 1.62766 wallclock secs ( 1.63 usr + 0.00 sys = 1.63 CPU)
+ @ 61349.69/s (n=100000)
Integers: 7.29155 wallclock secs ( 7.28 usr + 0.01 sys = 7.29 CPU)
+ @ 13717.42/s (n=100000)
...
LR_1 14245/s 41% 11% 4% -- -49% -77%
Queue 27778/s 175% 117% 103% 95% -- -55%
Baseline 61350/s 507% 379% 347% 331% 121% --