mirror of https://github.com/tqdm/tqdm.git
update perf tests
This commit is contained in:
parent
b1190235c9
commit
079d71fe2d
|
@ -21,7 +21,7 @@ matrix:
|
|||
env: TOXENV=pypy3
|
||||
- python: 3.6
|
||||
env: TOXENV=flake8
|
||||
- python: 2.7
|
||||
- python: 3.6
|
||||
env: TOXENV=perf
|
||||
# use cache for big builds like pandas (to minimise build time).
|
||||
# If issues, clear cache
|
||||
|
|
|
@ -298,7 +298,7 @@ def test_iter_overhead_simplebar_hard():
|
|||
|
||||
# Compute relative overhead of tqdm against native range()
|
||||
try:
|
||||
assert time_tqdm() < 2.5 * time_bench()
|
||||
assert time_tqdm() < 3 * time_bench()
|
||||
except AssertionError:
|
||||
raise AssertionError('trange(%g): %f, simple_progress(%g): %f' %
|
||||
(total, time_tqdm(), total, time_bench()))
|
||||
|
@ -330,7 +330,7 @@ def test_manual_overhead_simplebar_hard():
|
|||
|
||||
# Compute relative overhead of tqdm against native range()
|
||||
try:
|
||||
assert time_tqdm() < 2.5 * time_bench()
|
||||
assert time_tqdm() < 3 * time_bench()
|
||||
except AssertionError:
|
||||
raise AssertionError('tqdm(%g): %f, simple_progress(%g): %f' %
|
||||
(total, time_tqdm(), total, time_bench()))
|
||||
|
|
Loading…
Reference in New Issue