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: fix benchmark regressions #117807

Merged
merged 1 commit into from
Jan 16, 2024
Merged

Conversation

mgartner
Copy link
Collaborator

@mgartner mgartner commented Jan 16, 2024

This commit fixes several benchmarks that incorrectly included cluster
shutdown as part of the benchmark timing. This caused major regressions.
See #117542 for more details.

Epic: None

Release note: None

This commit fixes several benchmarks that incorrectly included cluster
shutdown as part of the benchmark timing. This caused major regressions.
See cockroachdb#117542 for more details.

Release note: None
@mgartner mgartner requested a review from a team January 16, 2024 14:47
@mgartner mgartner requested review from a team as code owners January 16, 2024 14:47
@mgartner mgartner requested review from yuzefovich and removed request for a team January 16, 2024 14:47
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@@ -3896,6 +3896,8 @@ func benchUserUpload(b *testing.B, uploadBaseURI string) {
`IMPORT INTO t CSV DATA ('%s%s')`,
uploadBaseURI, testFileBase,
))

b.StopTimer()
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm skeptical of this benchmark. On my M1 Mac it now takes 0.12ns/op. But it looks like it was similarly fast before. The benchmark comparison sheet recorded it at 0.49ns/op before the regression.

@mgartner
Copy link
Collaborator Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Jan 16, 2024

Build succeeded:

@craig craig bot merged commit 0e4adb8 into cockroachdb:master Jan 16, 2024
5 checks passed
@mgartner mgartner deleted the fix-benchmarks branch January 16, 2024 21: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.

3 participants