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: COPY benchmark roachtest #82348

Merged
merged 1 commit into from
Jun 7, 2022
Merged

Conversation

cucaroach
Copy link
Contributor

@cucaroach cucaroach commented Jun 2, 2022

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

@cockroach-teamcity
Copy link
Member

This change is Reviewable

pkg/cmd/roachtest/tests/copyfrom.go Outdated Show resolved Hide resolved
c,
c.All(),
"install dependencies",
`sudo apt-get install -qq postgresql`,
Copy link
Contributor

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?

Copy link
Contributor Author

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...

Copy link
Contributor

@otan otan Jun 3, 2022

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 Show resolved Hide resolved
t.L().Printf("%v\n", det.Stderr)
t.Fatal(err)
}
dur := time.Since(start)
Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor

@otan otan Jun 3, 2022

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

pkg/cmd/roachtest/tests/copyfrom.go Show resolved Hide resolved
@blathers-crl blathers-crl bot requested a review from otan June 3, 2022 18:02
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
@cucaroach
Copy link
Contributor Author

TFTR!

bors r+

@craig craig bot closed this in abc8afd Jun 7, 2022
@craig craig bot merged commit abc8afd into cockroachdb:master Jun 7, 2022
@craig
Copy link
Contributor

craig bot commented Jun 7, 2022

Build succeeded:

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