-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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: benchmark the pgbench tcp-b batch #4602
Conversation
} | ||
|
||
func BenchmarkPgbenchQuery_Cockroach(b *testing.B) { | ||
benchmarkCockroach(b, runBenchmarkBank) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are you running the right thing there?
Unrelated, but do we know where we're losing the time? What happens if you enable the switch in |
b25ba39
to
5239110
Compare
I had to rebase this on top of #4605 so that one will need to land first. Review status: 0 of 7 files reviewed at latest revision, 1 unresolved discussion. sql/pgbench_test.go, line 63 [r1] (raw file): Comments from the review on Reviewable.io |
@tschottdorf I think we should make enable local calls the default. Keep having that thought and then forgetting to do so. @dt Definitely test this with Review status: 0 of 7 files reviewed at latest revision, 1 unresolved discussion, some commit checks failed. Comments from the review on Reviewable.io |
Review status: 0 of 7 files reviewed at latest revision, 2 unresolved discussions, some commit checks failed. sql/pgbench/query.go, line 34 [r3] (raw file): Comments from the review on Reviewable.io |
Review status: 0 of 7 files reviewed at latest revision, 5 unresolved discussions, some commit checks failed. sql/bench_test.go, line 51 [r3] (raw file): sql/pgbench/query.go, line 26 [r3] (raw file): sql/pgbench/query.go, line 34 [r3] (raw file):
testutils/sqlutils/pg_url.go, line 68 [r3] (raw file): Comments from the review on Reviewable.io |
c339fde
to
e16fcf6
Compare
Agreed on default change, though I usually don't pass any flags when running numbers for commit messages unless specifically looking at the code the flag changes. Review status: 0 of 5 files reviewed at latest revision, 5 unresolved discussions. sql/bench_test.go, line 51 [r3] (raw file): sql/pgbench/query.go, line 26 [r3] (raw file): sql/pgbench/query.go, line 34 [r3] (raw file): testutils/sqlutils/pg_url.go, line 68 [r3] (raw file): Comments from the review on Reviewable.io |
Review status: 0 of 5 files reviewed at latest revision, 4 unresolved discussions. sql/bench_test.go, line 51 [r3] (raw file): sql/pgbench/setup.go, line 78 [r6] (raw file): Comments from the review on Reviewable.io |
Review status: 0 of 5 files reviewed at latest revision, 4 unresolved discussions. sql/bench_test.go, line 51 [r3] (raw file): Comments from the review on Reviewable.io |
Review status: 0 of 5 files reviewed at latest revision, 4 unresolved discussions. sql/bench_test.go, line 51 [r3] (raw file): Comments from the review on Reviewable.io |
Review status: 0 of 5 files reviewed at latest revision, 4 unresolved discussions. sql/bench_test.go, line 51 [r3] (raw file): sql/pgbench/setup.go, line 78 [r6] (raw file): Comments from the review on Reviewable.io |
LGTM Review status: 0 of 5 files reviewed at latest revision, 2 unresolved discussions. Comments from the review on Reviewable.io |
standalone pgbench still provides more detailed instrumentation and more configurable options, but a pure-go benchmark is useful too, since its easier to run and integrate with out existing benchmarks. ``` name time/op PgbenchQuery_Cockroach-8 3.16ms ± 1% PgbenchQuery_Postgres-8 407µs ± 8% ParallelPgbenchQuery_Cockroach-8 2.45ms ± 9% ParallelPgbenchQuery_Postgres-8 188µs ±17% name alloc/op PgbenchQuery_Cockroach-8 230kB ± 0% ParallelPgbenchQuery_Cockroach-8 246kB ±11% name allocs/op PgbenchQuery_Cockroach-8 3.48k ± 0% ParallelPgbenchQuery_Cockroach-8 3.90k ± 7% ```
sql: benchmark the pgbench tcp-b batch
standalone
pgbench
still provides more detailed instrumentation and more configurable options, but a pure-go benchmark is useful too, since its easier to run and integrate with out existing benchmarks.