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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmark: use a histogram to store batch timings #1388

Merged
merged 1 commit into from Dec 22, 2023
Merged

Conversation

cb22
Copy link
Contributor

@cb22 cb22 commented Dec 21, 2023

Previously, we required as much memory as transfers to store the timing of each one - to log out the deciles at the end. Switch this to using a histogram, with an upper limit of 10000ms. Now the benchmark uses a fixed amount of memory regardless of how many transfers we do.

If a percentile takes longer than 10000ms, we print a warning with it. There are more advanced ways to do this, but this shouldn't be a problem for now.

(This was causing annoyances when running larger scale tests.)

Also adds a missing deinit(), removes transfer timings (no one was looking at them 馃憖) and adds p95 and p99.

Previously, we required as much memory as transfers to store the result of each
one to log out the deciles at the end. Switch this to using a histogram, with
an upper limit of 10000ms, so now we use a fixed amount of memory regardless
of how many transfers we do.

If a percentile takes longer than 10000ms, we print a warning with it.

(This was causing annoyances when running larger scale tests.)

Also adds a missing deinit(), removes transfer timings and adds p95 and p99.
Copy link
Contributor

@brson brson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks right to me.

@cb22 cb22 added this pull request to the merge queue Dec 22, 2023
Merged via the queue into main with commit e62bb1d Dec 22, 2023
27 checks passed
@cb22 cb22 deleted the cb22/count-von-count branch December 22, 2023 07:30
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

2 participants