Add main to ProtobufObjectBench#852
Closed
ldintr wants to merge 1 commit into
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
Adds main to ProtobufObjectBench, to run actions using com.hedera.pbj.integration.jmh.ProtobufObjectBench
Example result:
https://github.com/hashgraph/pbj/actions/runs/26979231408/job/79613976276
Benchmark Mode Cnt Score Error Units JsonBench.EverythingBench.parsePbj avgt 5 724808.315 ± 3938.258 ns/op JsonBench.EverythingBench.parseProtoC avgt 5 154841.062 ± 2530.080 ns/op JsonBench.EverythingBench.writeProtoC avgt 5 128727.369 ± 6846.019 ns/op ProtobufObjectBench.EverythingBench.parsePbjByteArray avgt 7 38302.416 ± 251.353 ns/op ProtobufObjectBench.EverythingBench.parsePbjByteBuffer avgt 7 37975.583 ± 171.749 ns/op ProtobufObjectBench.EverythingBench.parsePbjByteBufferDirect avgt 7 54718.479 ± 237.438 ns/op ProtobufObjectBench.EverythingBench.parsePbjInputStream avgt 7 42724.794 ± 245.429 ns/op ProtobufObjectBench.EverythingBench.parseProtoCByteArray avgt 7 18673.640 ± 122.797 ns/op ProtobufObjectBench.EverythingBench.parseProtoCByteBuffer avgt 7 18561.728 ± 96.832 ns/op ProtobufObjectBench.EverythingBench.parseProtoCByteBufferDirect avgt 7 19004.189 ± 244.949 ns/op ProtobufObjectBench.EverythingBench.parseProtoCInputStream avgt 7 19004.539 ± 212.926 ns/op ProtobufObjectBench.EverythingBench.writePbjByteArray avgt 7 14435.173 ± 250.567 ns/op ProtobufObjectBench.EverythingBench.writePbjByteBuffer avgt 7 14453.549 ± 334.121 ns/op ProtobufObjectBench.EverythingBench.writePbjByteDirect avgt 7 10273.071 ± 60.202 ns/op ProtobufObjectBench.EverythingBench.writePbjOutputStream avgt 7 15834.433 ± 84.341 ns/op ProtobufObjectBench.EverythingBench.writeProtoCByteArray avgt 7 10161.016 ± 54.200 ns/op ProtobufObjectBench.EverythingBench.writeProtoCByteBuffer avgt 7 9655.258 ± 47.309 ns/op ProtobufObjectBench.EverythingBench.writeProtoCByteBufferDirect avgt 7 13428.888 ± 97.163 ns/op ProtobufObjectBench.EverythingBench.writeProtoCOutputStream avgt 7 14106.541 ± 79.359 ns/op