projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e59d93
)
Benchmark.t: fix count estimate
author
David Mitchell
<davem@iabyn.com>
Wed, 15 Jun 2011 15:12:16 +0000
(16:12 +0100)
committer
David Mitchell
<davem@iabyn.com>
Wed, 15 Jun 2011 15:12:16 +0000
(16:12 +0100)
Commit
bb6c6e4b8d10f2e460a7fe48e677d3d998a7f77d
, which added
improved diagnostics, also broke the count estimate.
lib/Benchmark.t
patch
|
blob
|
history
diff --git
a/lib/Benchmark.t
b/lib/Benchmark.t
index
fdf2d03
..
fde9ada
100644
(file)
--- a/
lib/Benchmark.t
+++ b/
lib/Benchmark.t
@@
-69,7
+69,7
@@
my $in_threesecs_adj = $in_threesecs;
$in_threesecs_adj *= (3/$cpu3); # adjust because may not have run for exactly 3s
print "# in_threesecs_adj=$in_threesecs_adj adjusted iterations\n";
-my $estimate = int (100 * $in_threesecs / 3) / 100;
+my $estimate = int (100 * $in_threesecs
_adj
/ 3) / 100;
print "# from the 3 second run estimate $estimate iterations in 1 second...\n";
$baz = 0;
my $onesec = countit(1, $coderef);