-
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: COPY benchmark roachtest #82348
Conversation
c, | ||
c.All(), | ||
"install dependencies", | ||
`sudo apt-get install -qq postgresql`, |
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.
do you think it's worth using a stable postgresql version?
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.
I can't think of a reason why, ubuntu LTS should be stable enough no? Open to suggestions...
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.
In the past we've found that the package archive updates the versions if you do sudo apt-get install and then you get result changes that don't correlate.
If you wanted to be a bit more particular I'd install from source, but I am not going to hold this pr down for it.
pkg/cmd/roachtest/tests/copyfrom.go
Outdated
t.L().Printf("%v\n", det.Stderr) | ||
t.Fatal(err) | ||
} | ||
dur := time.Since(start) |
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.
should this line live above if err != nil
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.
Why? I like the err handling cuddled as close to source of error as possible.
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.
Doesn't it add extra duration time technically :P? The if err! =nil adds an extra nanosecond or two, haha
Simple roachtest benchmark performing a single node copy of a 750k line CSV (TPCH lineitem table). On my gceworker CRDB does it in 5773 rows/s and PG does it in 36945 rows/s. Fixes: cockroachdb#81725 Release note: none
TFTR! bors r+ |
Build succeeded: |
Simple roachtest benchmark performing a single node copy of a 750k line
CSV (TPCH lineitem table). On my gceworker CRDB does it in 5773 rows/s
and PG does it in 36945 rows/s.
Fixes: #82348
Release note: none