From: Nicholas Clark Date: Sun, 13 Jan 2002 15:58:34 +0000 (+0000) Subject: Re: [FAIL] Benchmark.t intermittent failure X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=95d5be9e084881614c83fcb2812a47fe116fb0e6;p=p5sagit%2Fp5-mst-13.2.git Re: [FAIL] Benchmark.t intermittent failure Message-ID: <20020113155833.C314@Bagpuss.unfortu.net> p4raw-id: //depot/perl@14237 --- diff --git a/lib/Benchmark.t b/lib/Benchmark.t index 25a3478..dddce3d 100644 --- a/lib/Benchmark.t +++ b/lib/Benchmark.t @@ -12,7 +12,7 @@ use Test::More tests => 159; use Benchmark qw(:all); -my $delta = 0.2; +my $delta = 0.3; # Some timing ballast sub fib { @@ -59,7 +59,7 @@ my $in_threesecs = $threesecs->iters; print "# $in_threesecs iterations\n"; ok ($in_threesecs > 0, "iters returned positive iterations"); -my $estimate = int ($in_threesecs / 3); +my $estimate = int (100 * $in_threesecs / 3) / 100; print "# from the 3 second run estimate $estimate iterations in 1 second...\n"; $baz = 0; my $onesec = countit(1, $coderef);