summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_timeit.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused imports.Serhiy Storchaka2016-12-161-1/+0
|
* Issue #28469: timeit now uses the sequence 1, 2, 5, 10, 20, 50,... insteadSerhiy Storchaka2016-10-231-25/+38
| | | | of 1, 10, 100,... for autoranging.
* timeit: add newlines to output for readabilityVictor Stinner2016-10-181-0/+4
| | | | Issue #28240.
* timeit: add nsec (nanosecond) unit for format timingsVictor Stinner2016-10-181-1/+1
| | | | Issue #28240.
* timeit: enhance format of raw timings (in verbose mode)Victor Stinner2016-10-181-2/+2
| | | | Issue #28240.
* timeit: remove --clock and --time optionsVictor Stinner2016-10-181-12/+0
| | | | | Issue #28240: timeit: remove -c/--clock and -t/--time command line options which were deprecated since Python 3.3.
* timeit: change default repeat to 5, instead of 3Victor Stinner2016-10-181-17/+17
| | | | | Issue #28240: timeit now repeats the benchmarks 5 times instead of only 3 to make benchmarks more reliable.
* timeit: start autorange with 1 iteration, not 10Victor Stinner2016-10-181-14/+21
| | | | | | | | Issue #28240: timeit autorange now uses a single loop iteration if the benchmark takes less than 10 seconds, instead of 10 iterations. "python3 -m timeit -s 'import time' 'time.sleep(1)'" now takes 4 seconds instead of 40 seconds.
* Issue6422 add autorange method to timeit.TimerSteven D'Aprano2016-08-141-0/+22
|
* Issue #24631: Fixed regression in the timeit modulu with multyline setup.Serhiy Storchaka2015-07-151-2/+8
|
* Issue #5633: Fixed timeit when the statement is a string and the setup is not.Serhiy Storchaka2015-05-301-0/+7
|\ | | | | | | Refactored timeit.__init__ for unified handling of stmt and setup parameters.
| * Issue #5633: Fixed timeit when the statement is a string and the setup is not.Serhiy Storchaka2015-05-301-0/+7
| |
* | Issue #21741: Update 147 test modules to use test discovery.Zachary Ware2015-04-131-5/+1
| | | | | | | | | | | | | | I have compared output between pre- and post-patch runs of these tests to make sure there's nothing missing and nothing broken, on both Windows and Linux. The only differences I found were actually tests that were previously *not* run.
* | Issue #18983: Allow selection of output units in timeit.Robert Collins2015-03-171-0/+20
| | | | | | | | | | | | | | | | This allows manual selection of a specific unit such as usecs rather than the use of a heuristic. This is intended to aid machine processing of timeit output. Patch by Serhiy Storchaka.
* | Issue #18518: timeit now rejects statements which can't be compiled outsideSerhiy Storchaka2015-01-261-0/+12
|\ \ | |/ | | | | a function or a loop (e.g. "return" or "break").
| * Issue #18518: timeit now rejects statements which can't be compiled outsideSerhiy Storchaka2015-01-261-0/+12
| | | | | | | | a function or a loop (e.g. "return" or "break").
* | Issue #2527: Add a *globals* argument to timeit functions, in order to ↵Antoine Pitrou2014-08-231-2/+14
|/ | | | | | override the globals namespace in which the timed code is executed. Patch by Ben Roberts.
* skip if __doc__ is goneBenjamin Peterson2012-10-121-0/+1
|
* #11578: add unit tests for timeit module.R David Murray2011-03-161-0/+305
Patch by Michael Henry.