- or download this
sub perl_mod {
...
perl_mod => sub { perl_mod($num) },
perl_and => sub { perl_and($num) },
});
- or download this
nicholas(/5)@neko [106 /<1>nicholas/tmp] > ./time
Benchmark: timing 10000 iterations of perl_and, perl_mod...
perl_and: 210 wallclock secs (209.32 usr + 0.79 sys = 210.11 CPU)
perl_mod: 260 wallclock secs (258.62 usr + 0.93 sys = 259.55 CPU)
nicholas(/5)@neko [107 /<1>nicholas/tmp] >
- or download this
#include <stdio.h>
...
//}
exit(0);
}
- or download this
For c_and:
29.800u 0.040s 0:29.84 100.0% 0+0k 0+0io 69pf+0w
- or download this
for c_mod:
29.540u 0.390s 0:29.99 99.7% 0+0k 0+0io 69pf+0w