5bcf89d0dcfc629b45351b85c936759898d407ab,mathics/benchmark.py,,timeit,#Any#Any#,84
Before Change
times.append(time.clock())
average_time = format_time_units((times[-1] - times[0]) / repeats)
best_time = format_time_units(
min([times[i + 1] - times[i] for i in range(repeats)]))
print(" {0:5n} loops, avg: {1} per loop, best: {2} per loop".format(
After Change
average_time = format_time_units(statistics.mean(times))
best_time = format_time_units(min(times))
median_time = format_time_units(statistics.median(times))
print(" {0:5n} loops, avg: {1}, best: {2}, median: {3} per loop".format(
repeats, average_time, best_time, median_time))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: mathics/Mathics
Commit Name: 5bcf89d0dcfc629b45351b85c936759898d407ab
Time: 2016-08-05
Author: 16sn6uv@gmail.com
File Name: mathics/benchmark.py
Class Name:
Method Name: timeit
Project Name: WheatonCS/Lexos
Commit Name: 3227c2ed4ae92c6b9ecfc1b2c614ff4c36bd9fd0
Time: 2017-07-21
Author: weltch1997@gmail.com
File Name: lexos/processors/analyze/information.py
Class Name: FileInformation
Method Name: __init__
Project Name: danforthcenter/plantcv
Commit Name: 533ff301b693aaae8d0e525bafc4d83101fe0d13
Time: 2019-04-11
Author: noahfahlgren@gmail.com
File Name: plantcv/plantcv/analyze_color.py
Class Name:
Method Name: analyze_color