summaryrefslogtreecommitdiff
path: root/lib/Benchmark.pm
Commit message (Collapse)AuthorAgeFilesLines
* bump Benchmark versionDavid Mitchell2014-06-091-1/+1
| | | | (whoops, I failed to run a full make test before my last commit)
* Benchmark.pm: avoid long walltime on calibrationDavid Mitchell2014-06-091-1/+11
| | | | | | | | | | | | | | | | | | | | | RT #122003 runloop() in Benchmark.pm does the equivalent of the following: $t = (times)[0]; while ($t == (times)[0]) {} so that it finishes in a position where the user CPU counter has just incremented. This is all well and good, but on some platforms (specifically OpenBSD running under VirtualBox), the system CPU burned each time round the loop to get times() is far greater than the user CPU burned. This can cause the loop to run for minutes consuming system CPU until enough user CPU has been burned to tick the user CPU counter. The fix in this commit is to replace the empty body of the while loop with something that does a gradually increasing amount of busy work.
* Benchmark.pm: bail out earlier on zero deltaDavid Mitchell2013-10-211-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | countit(), which runs code for $n seconds, performs an initial set of calibration loops to find out roughly how many iterations are required to burn 0.1 CPU secs more in the code loop than in the empty loop (which is then used to guesstimate how many iterations to do for the main loop). This calibration is designed to bail out if we consistently get <= 0 difference between the empty loop and the code loop; however, this bailout can take too long: it looks for a run of 17 *consecutive* zero deltas during 2048, 4096,8192,... iterations, which means it won't fail until approx 131 million empty + code iterations are run, even if the zeroes are consecutive. Of course if just by random noise one delta is infinitesimally > 0, then the count is reset and the exponential count continues. The net effect of this is that the calibration loop can loop forever on 'small' code. This commit makes it additionally bail out of the calibration loop if running the iterations for a particular value of N takes more than 8 CPU seconds, while still giving zero delta.
* 7b2d3c0 Added description of the Benchmark object to docNeil Bowers2013-06-281-0/+40
|
* Increase $Benchmark::VERSION to 1.17Father Chrysostomos2013-06-221-1/+1
|
* Fixed verbatim lines in POD over 79 charactersBrian Gottreu2013-06-221-2/+4
|
* typo fixes for BenchmarkDavid Steinbrunner2013-05-251-24/+24
| | | | Bump $VERSION; clean up trailing whitespace.
* revert: Benchmark iteration warnings should warnDavid Mitchell2013-03-011-2/+2
| | | | | | | | | | | | | | | | This commit reverts: commit a820780c62918236069b3b55502640c99a9e812a Author: David Golden <dagolden@cpan.org> AuthorDate: Tue Feb 5 22:23:37 2013 -0500 Commit: David Golden <dagolden@cpan.org> CommitDate: Tue Feb 5 22:49:36 2013 -0500 Benchmark iteration warnings should warn, not print because the warnings appearing on STDERR weren't being trapped by Benchmark.t (see [perl #116831]). Revert for now, and re-address after 5.18.
* Benchmark iteration warnings should warn, not printDavid Golden2013-02-051-2/+2
|
* Kill Devel::DProfFlorian Ragwitz2011-06-141-2/+2
| | | | It has been deprecated in 5.14. Now is the time to remove it.
* Version bumps for Benchmark non-dual-life modules identified byJesse Vincent2011-01-201-1/+1
| | | | ./perl -Ilib Porting/cmpVERSION.pl -xd . v5.13.8
* Fix typos (spelling errors) in lib/*Peter J. Acklam) (via RT2011-01-071-3/+3
| | | | | | | | | # New Ticket Created by (Peter J. Acklam) # Please include the string: [perl #81890] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=81890 > Signed-off-by: Abigail <abigail@abigail.be>
* bump versions of non-dual-life modules thatDavid Mitchell2009-07-031-1/+1
| | | | | * differ between 5.10.0 and maint-5.10, or * differ between 5.8.9 and maint-5.10
* now get non-dual lived codeRicardo SIGNES2009-01-211-4/+4
|
* POD nits from Frank Wiegand <frank.wiegand@gmail.com>Abigail2008-12-221-1/+1
|
* Minor patch for Benchmark.pmChristophe Grosjean2006-12-031-8/+19
| | | | | Message-Id: <1165105918.2718.90.camel@localhost.localdomain> p4raw-id: //depot/perl@29439
* Re: [perl #40917] Benchmark fails under -MbignumSADAHIRO Tomoyuki2006-11-221-3/+6
| | | | | Message-Id: <20061122223227.193E.BQW10602@nifty.com> p4raw-id: //depot/perl@29348
* fix re debug segvs in global destruction, and a tweak to Benchmark to ↵Yves Orton2006-06-141-2/+16
| | | | | | | prevent infinite loops. (Re: ext/re/t/regop.pl SEGV) Message-ID: <9b18b3110606140454p19f4241exae6528f1c7bb32d7@mail.gmail.com> p4raw-id: //depot/perl@28393
* [perl #38892] PATCH: remove spurious warning from Benchmark.pmLinda Walsh2006-04-191-1/+2
| | | | | | From: Linda Walsh (via RT) <perlbug-followup@perl.org> Message-ID: <rt-3.0.11-38892-132143.0.516271519365361@perl.org> p4raw-id: //depot/perl@27906
* [perl #32327] Benchmark calls coderef with spurious arguments Anno Siegel2004-11-051-2/+2
| | | | | | From: Anno Siegel (via RT) <perlbug-followup@perl.org> Message-ID: <rt-3.0.11-32327-99325.8.9408996026507@perl.org> p4raw-id: //depot/perl@23473
* Benchmark for child processesChia-liang Kao2004-02-231-3/+8
| | | | | Message-ID: <20040223145351.GH94376@portege.clkao.org> p4raw-id: //depot/perl@22362
* Bump VERSION numbersNicholas Clark2003-12-301-1/+1
| | | p4raw-id: //depot/perl@22018
* Re: [perl #24398] Benchmark.pm cmpthese segfaultStas Bekman2003-11-051-1/+1
| | | | | Message-ID: <3FA8B9D1.2020806@stason.org> p4raw-id: //depot/perl@21671
* The #20546 was too ambitious, broke the test.Jarkko Hietaniemi2003-08-071-4/+24
| | | p4raw-id: //depot/perl@20556
* [PATCH 5.8.1] Benchmark problemJarkko Hietaniemi2003-08-071-29/+8
| | | | | | | | | | | | From: Radu Greab <rgreab@fx.ro> Date: Thu, 07 Aug 2003 16:18:25 +0300 (EEST) Message-Id: <20030807.161825.106541372.radu@yx.primIT.ro> Subject: Re: [PATCH 5.8.1] Benchmark problem From: Rafael Garcia-Suarez <rgarciasuarez@free.fr> Date: Thu, 7 Aug 2003 15:48:38 +0200 Message-Id: <20030807154838.5d240dbb.rgarciasuarez@free.fr> p4raw-id: //depot/perl@20546
* Re: [PATCH] Re: [perl #23206] Benchmark::cmpthese usage message wrongMichael G. Schwern2003-08-041-48/+169
| | | | | Message-ID: <20030803231235.GJ24350@windhund.schwern.org> p4raw-id: //depot/perl@20463
* small grammar fix in Benchmark docsHugo van der Sanden2002-09-091-2/+2
| | | p4raw-id: //depot/perl@17878
* allow using hires time() in BenchmarkJarkko Hietaniemi2002-09-081-5/+42
| | | | | Message-ID: <20020905213811.GA23771@lyta.hut.fi> p4raw-id: //depot/perl@17867
* Make cmpthese work as documented.Abigail2002-08-251-3/+5
| | | | | Message-ID: <20020822041039.A2089@ucan.foad.org> p4raw-id: //depot/perl@17774
* Benchmark.pm: empty loop too slowSlaven Rezic2002-05-191-1/+1
| | | | | Message-Id: <200205191403.g4JE3ClB025990@vran.herceg.de> p4raw-id: //depot/perl@16693
* Benchmark test from Nicholas Clark.Jarkko Hietaniemi2001-12-141-3/+10
| | | p4raw-id: //depot/perl@13693
* add export tag :all and tweak SYNOPSIS Barrie Slaymaker2001-11-271-1/+4
| | | | | Message-ID: <20011127105850.B696@sizzle.whoville.com> p4raw-id: //depot/perl@13321
* Benchmark.pm nitTels2001-11-171-2/+3
| | | p4raw-id: //depot/perl@13059
* docco tweaksBarrie Slaymaker2001-11-131-13/+23
| | | | | Message-Id: <20011113113442.B24305@sizzle.whoville.com> p4raw-id: //depot/perl@12974
* Add "none" style to cmpthese(), alter resultBarrie Slaymaker2001-11-121-11/+43
| | | | | Message-ID: <20011112110733.B7626@sizzle.whoville.com> p4raw-id: //depot/perl@12956
* Bump up the VERSIONs of modules that have changed since 5.6.0,Jarkko Hietaniemi2001-06-291-1/+1
| | | | | the modules found using a script written by Larry Schatzer Jr. p4raw-id: //depot/perl@11016
* Message-ID: <20000907190320.888.qmail@foad.org>Abigail2000-09-081-1/+4
| | | p4raw-id: //depot/perl@7038
* integrate selected changes from cfgperl (#4899,4900,4904,4918)Gurusamy Sarathy2000-02-021-1/+1
|\ | | | | p4raw-id: //depot/perl@4962
| * The #4880 was too eager, the $n test is useful too.Jarkko Hietaniemi2000-01-281-1/+1
| | | | | | p4raw-id: //depot/cfgperl@4918
* | Benchmark displays bogus CPU stats (suggested by Cedric AuzanneGurusamy Sarathy2000-02-021-2/+2
|/ | | | | <cedric.auzanne@nist.gov>) p4raw-id: //depot/perl@4958
* <patch> avoid division by 0 in Benchmark.pmStephane Payrard2000-01-241-1/+1
| | | | | | | To: Gurusamy Sarathy <gsar@ActiveState.com> Cc: perl5-porters@perl.org Message-ID: <20000124161538.A995@freesurf.fr> p4raw-id: //depot/cfgperl@4880
* documentation tweaks from M. J. T. Guy, Micheal Schwern, andGurusamy Sarathy1999-12-081-11/+18
| | | | | Tim Meadowcroft p4raw-id: //depot/perl@4666
* Benchmark notes (from Barrie Slaymaker <barries@slaysys.com>)Gurusamy Sarathy1999-10-151-0/+29
| | | p4raw-id: //depot/perl@4384
* Benchmark.pm bugfix, tweaksBarrie Slaymaker1999-10-031-6/+4
| | | | | | To: perl5-porters@perl.org Message-Id: <199910030409.AAA18228@jester.slaysys.com> p4raw-id: //depot/cfgperl@4292
* Battle namespace pollution.Jarkko Hietaniemi1999-10-021-35/+36
| | | p4raw-id: //depot/cfgperl@4285
* Benchmark.pm: Export countit(), cmpthese() by defaultBarrie Slaymaker1999-10-011-24/+72
| | | | | | To: perl5-porters@perl.org Message-Id: <199910010216.WAA08309@jester.slaysys.com> p4raw-id: //depot/cfgperl@4266
* Benchmark tweaks, fixes, cmpthese()Barrie Slaymaker1999-09-301-52/+227
| | | | | | | To: perl5-porters@perl.org Message-Id: <199909301944.PAA07166@jester.slaysys.com> (Replaces #4175.) p4raw-id: //depot/cfgperl@4265
* (Replaced by #4265.)Barrie Slaymaker1999-09-171-14/+22
| | | | | | | To: perl5-porters@perl.org Subject: [PATCH 5.005_61] Benchmark: screwed patch format, try this instead Message-Id: <199909171516.LAA30887@jester.slaysys.com> p4raw-id: //depot/cfgperl@4175
* timesum() wasn't @EXPORTed as promised by the documentation.Jarkko Hietaniemi1999-09-041-1/+1
| | | | | Bug reported by Alex Efros <powerman@inart.kharkov.com>. p4raw-id: //depot/cfgperl@4077
* Benchmark.pm suggestionThomas Bowditch1998-11-211-0/+14
| | | | | | | | To: jhi@iki.fi, Tim.Bunce@ig.co.uk Message-Id: <199811202243.RAA26252@harp.camb.inmet.com> Added timesum(). p4raw-id: //depot/cfgperl@2256