Can be used instead of python’s timeit.
Benchmark-IT supports also timing of only selected code parts within a function using Comment lines with a START/END TAG.
START-TAG: # ::SPEEDIT::
END-TAG: # **SPEEDIT**
Important
Only functions within one module can be compared to each other for ranking
- multiple modules can be run at once just ranking is restricted to functions within one module
For usage see PySpeedIT.speed_it
OUTPUT HTML
Returns 2 times the smallest difference of calling perf_counter() immediately after each other a couple of times.
Returns: | (float) 2 times the smallest difference of calling perf_counter() immediately after each other a couple of times. |
---|
Writes the results for one loaded_module for all defined functions to a html files overwriting them if they existed.
SeeAlso
for the meaning of the parameters speed_it