Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-40670: More reliable validation of statements in timeit.Timer. (GH-22358) | Serhiy Storchaka | 2020-09-22 | 1 | -0/+9 |
| | | | | | It now accepts "empty" statements (only whitespaces and comments) and rejects misindentent statements. | ||||
* | Remove unused imports. | Serhiy Storchaka | 2016-12-16 | 1 | -1/+0 |
| | |||||
* | Issue #28469: timeit now uses the sequence 1, 2, 5, 10, 20, 50,... instead | Serhiy Storchaka | 2016-10-23 | 1 | -25/+38 |
| | | | | of 1, 10, 100,... for autoranging. | ||||
* | timeit: add newlines to output for readability | Victor Stinner | 2016-10-18 | 1 | -0/+4 |
| | | | | Issue #28240. | ||||
* | timeit: add nsec (nanosecond) unit for format timings | Victor Stinner | 2016-10-18 | 1 | -1/+1 |
| | | | | Issue #28240. | ||||
* | timeit: enhance format of raw timings (in verbose mode) | Victor Stinner | 2016-10-18 | 1 | -2/+2 |
| | | | | Issue #28240. | ||||
* | timeit: remove --clock and --time options | Victor Stinner | 2016-10-18 | 1 | -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 3 | Victor Stinner | 2016-10-18 | 1 | -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 10 | Victor Stinner | 2016-10-18 | 1 | -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.Timer | Steven D'Aprano | 2016-08-14 | 1 | -0/+22 |
| | |||||
* | Issue #24631: Fixed regression in the timeit modulu with multyline setup. | Serhiy Storchaka | 2015-07-15 | 1 | -2/+8 |
| | |||||
* | Issue #5633: Fixed timeit when the statement is a string and the setup is not. | Serhiy Storchaka | 2015-05-30 | 1 | -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 Storchaka | 2015-05-30 | 1 | -0/+7 |
| | | |||||
* | | Issue #21741: Update 147 test modules to use test discovery. | Zachary Ware | 2015-04-13 | 1 | -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 Collins | 2015-03-17 | 1 | -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 outside | Serhiy Storchaka | 2015-01-26 | 1 | -0/+12 |
|\ \ | |/ | | | | | a function or a loop (e.g. "return" or "break"). | ||||
| * | Issue #18518: timeit now rejects statements which can't be compiled outside | Serhiy Storchaka | 2015-01-26 | 1 | -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 Pitrou | 2014-08-23 | 1 | -2/+14 |
|/ | | | | | | override the globals namespace in which the timed code is executed. Patch by Ben Roberts. | ||||
* | skip if __doc__ is gone | Benjamin Peterson | 2012-10-12 | 1 | -0/+1 |
| | |||||
* | #11578: add unit tests for timeit module. | R David Murray | 2011-03-16 | 1 | -0/+305 |
Patch by Michael Henry. |