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

Regenerate protoboeuf benchmark #295

Merged
merged 1 commit into from
May 3, 2024
Merged

Conversation

XrXr
Copy link
Contributor

@XrXr XrXr commented May 2, 2024

There has been a bunch of generator changes since the benchmark was
added.

Generated using Shopify/protoboeuf@9c97773

@@ -7,5 +7,5 @@
fake_msg_bins = Marshal.load(File.binread('encoded_msgs.bin'))

run_benchmark(20) do
fake_msg_bins.each { |bin| ProtoBoeuf::ParkingLot.decode bin }
fake_msg_bins.each { |bin| Upstream::ParkingLot.decode bin }
Copy link
Contributor

Choose a reason for hiding this comment

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

You can't use upstream here? You'd be benchmarking Google's protobuf?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, this is pretty confusing. The name is actually from package upstream; in the .proto file and in the protoboeuf repo it's generating with a namespace override:

https://github.com/Shopify/protoboeuf/blob/9c97773fa74a544aff1b6c83a7acc4834987d7e5/Rakefile#L58-L62

It's just the name, though. Nothing loads google-protobuf in this benchmark. Anyways, fixed.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok. Maybe we should remove package upstream; from the .proto file.

There has been a bunch of generator changes since the benchmark was
added.

Generated using Shopify/protoboeuf@9c97773
@XrXr XrXr force-pushed the regen-protoboeuf branch from ba2a2d7 to 40601ce Compare May 2, 2024 22:19
@maximecb maximecb merged commit f18b3d2 into Shopify:main May 3, 2024
4 checks passed
@XrXr XrXr deleted the regen-protoboeuf branch May 3, 2024 18:59
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.

2 participants