update perf tests

This commit is contained in:
Casper da Costa-Luis 2019-02-04 00:18:14 +00:00
parent b1190235c9
commit 079d71fe2d
No known key found for this signature in database
GPG Key ID: 986B408043AE090D
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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()))