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

sql/tests: reduce variance in BenchmarkKV #131711

Merged

Conversation

nvanbenschoten
Copy link
Member

This commit disables timeseries and auto SQL stats collection in the BenchmarkKV test suite. This reduces the variance in the benchmark results, allowing us to run fewer iterations to get stable results.

name                  old time/op    new time/op    delta
KV/Update/SQL/rows=1     219µs ± 9%     207µs ± 5%  -5.36%  (p=0.000 n=19+18)

name                  old alloc/op   new alloc/op   delta
KV/Update/SQL/rows=1    57.0kB ± 1%    56.9kB ± 0%  -0.22%  (p=0.002 n=19+20)

name                  old allocs/op  new allocs/op  delta
KV/Update/SQL/rows=1       553 ± 0%       553 ± 0%    ~     (p=0.555 n=19+17)

Epic: None
Release note: None

This commit disables timeseries and auto SQL stats collection in the BenchmarkKV
test suite. This reduces the variance in the benchmark results, allowing us to run
fewer iterations to get stable results.

```
name                  old time/op    new time/op    delta
KV/Update/SQL/rows=1     219µs ± 9%     207µs ± 5%  -5.36%  (p=0.000 n=19+18)

name                  old alloc/op   new alloc/op   delta
KV/Update/SQL/rows=1    57.0kB ± 1%    56.9kB ± 0%  -0.22%  (p=0.002 n=19+20)

name                  old allocs/op  new allocs/op  delta
KV/Update/SQL/rows=1       553 ± 0%       553 ± 0%    ~     (p=0.555 n=19+17)
```

Epic: None
Release note: None
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@sambhav-jain-16 sambhav-jain-16 left a comment

Choose a reason for hiding this comment

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

Thanks @nvanbenschoten for the changes.
LGTM !

@nvanbenschoten
Copy link
Member Author

TFTR!

bors r+

@craig craig bot merged commit 2f28660 into cockroachdb:master Oct 4, 2024
23 checks passed
@nvanbenschoten nvanbenschoten deleted the nvanbenschoten/kvtestVariance branch October 16, 2024 03:52
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.

3 participants