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

Compare the timing to code overhead's min/max range instead of max-only #522

Merged
merged 3 commits into from
Aug 29, 2020

Conversation

nolar
Copy link
Owner

@nolar nolar commented Aug 29, 2020

What do these changes do?

A follow-up for #520: Ensure that the time-based tests also check for a minimum time taken.

Description

This is needed to ensure that if the code overhead happens to be big enough, and the actual time small enough, there is a basic check for unrealistic values: i.e. that the time taken is at least the minimum expected overhead.

In addition, to fight fluctuations of measurements, 10 data samples are taken. Since this takes a little bit of time, the value is cached in session, and is reused in all further tests (it does not depend on the test itself).

Issues/PRs

Issues: #212 #338

Related: #520

Type of changes

  • Mostly CI/CD automation, contribution experience

Checklist

  • The code addresses only the mentioned problem, and this problem only
  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • If you provide code modification, please add yourself to CONTRIBUTORS.txt

nolar added 3 commits August 29, 2020 22:55
This is needed to ensure that, if the code overhead happens to be big enough,
and the actual time small enough, there is a basic check for unrealistic
values: i.e. that the time taken is at least the minimum expected overhead.
@nolar nolar added the automation CI/CD: testing, linting, releasing automatically label Aug 29, 2020
@nolar nolar merged commit 105fa2f into master Aug 29, 2020
@nolar nolar deleted the code-overhead-minmax branch August 29, 2020 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation CI/CD: testing, linting, releasing automatically
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant