Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust timing benchmarking #698

Merged
merged 3 commits into from
Aug 18, 2018
Merged

Adjust timing benchmarking #698

merged 3 commits into from
Aug 18, 2018

Conversation

pv
Copy link
Collaborator

@pv pv commented Aug 15, 2018

Change default for sample_time to 10ms. This is sufficiently long for
obtaining accurate measurements with most timers, with reasonable
accuracy retained (in practice). Since asv runs a large number
of benchmarks, it is important that the measurement times are kept short.

Make 'repeat' determination to work on the basis of a given range
(min_repeat, max_repeat) and a maximum allocated time max_time.

Change min_timeit_count to min_run_count. This is retained separately
from min_repeat, as its purpose is different (e.g. deal with numba jit
compilation) and it is counted also during warmup, unlike min_repeat.

Closes gh-653

TODO:

  • some more practical verification of the smaller sample_time

pv added 3 commits August 15, 2018 23:41
…ample_time'

Change default for sample_time to 10ms. This is sufficiently long for
obtaining accurate measurements with most timers, with reasonable
accuracy retained.  Since asv runs a large number of benchmarks, it is
important that the measurement times are kept short.

Make 'repeat' determination to work on the basis of a given range
(min_repeat, max_repeat) and a maximum allocated time max_time.

Change min_timeit_count to min_run_count. This is retained separately
from min_repeat, as its purpose is different (e.g. deal with numba jit
compilation) and it is counted also during warmup.
@pv pv merged commit f363a22 into airspeed-velocity:master Aug 18, 2018
@pv pv deleted the measurement-1 branch August 19, 2018 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant