summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2013-06-12 10:57:06 +0100
committerDavid Mitchell <davem@iabyn.com>2013-06-12 10:57:06 +0100
commite95cc2cfb62188002d15c452fcc1f5332adbf035 (patch)
treead02cdf2a33d16dae4d85c98d08c52e7f11db5b4 /lib
parent06911b0726a09e7a6427c8323f195d3ddf38ee0c (diff)
downloadperl-e95cc2cfb62188002d15c452fcc1f5332adbf035.tar.gz
Benchmark.t: disdplay calibration diag output
When the notorious test 15 fails, show the ratio of our earlier 3sec and 1sec calibration in the diag output.
Diffstat (limited to 'lib')
-rw-r--r--lib/Benchmark.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Benchmark.t b/lib/Benchmark.t
index 571b9350b2..81577440b8 100644
--- a/lib/Benchmark.t
+++ b/lib/Benchmark.t
@@ -54,6 +54,7 @@ print "# Burning CPU to see if clock is consistent...\n";
# require a consistent clock
my $INCONSISTENT_CLOCK = 0;
+my $calibration;
{
my ($t0, $t1, $tdelta);
@@ -101,6 +102,7 @@ my $INCONSISTENT_CLOCK = 0;
print "# INCONSISTENT CLOCK! - will skip timing-related tests\n";
$INCONSISTENT_CLOCK = 1;
}
+ $calibration = $td3/(3*$td1); # for diag output
}
@@ -160,6 +162,7 @@ print "# in_onesec_adj=$in_onesec_adj adjusted iterations\n";
diag(" in_onesec_adj = $in_onesec_adj");
diag(" cpu1 = $cpu1");
diag(" sys1 = $sys1");
+ diag(" calibration = $calibration");
};
}
}