Add kyo-schema to serialization benchmarks#101
Merged
Conversation
Upgrade kyo to 1.0.0-RC5, which fixes collection round-tripping in the kyo.Protobuf codec (List/Map were broken through RC4). This lets kyo be benchmarked against the same domain type `A` as the other codecs, so a `kyo` method is added to the Simple/Complex/Large benchmarks alongside a kyo Schema derivation for the domain types in Data.scala. The benchmarks module now uses nextScalaSettings (Scala 3.8.x) since kyo requires it.
kyo 1.0.0-RC5 is compiled for Java 25 (class file 69.0), so kyoGrpc and benchmarks fail to compile under the previous temurin:21 CI runtime.
b637dbc to
fc0874a
Compare
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.
Summary
1.0.0-RC4→1.0.0-RC5, which fixes collection round-tripping in thekyo.Protobufcodec (List/Mapfields were broken through RC4).Schemaderivations for the benchmark domain types inData.scalaand akyobenchmark method toSimpleBenchmark,ComplexBenchmark, andLargeBenchmark, run against the same domain typeAas every other codec.benchmarksmodule now usesnextScalaSettings(Scala 3.8.x), which kyo requires.temurin:25: kyo RC5 is compiled for Java 25, sokyoGrpcandbenchmarksrequire it to compile. The published core library still targets Java 8 bytecode and is unaffected.Results
JMH throughput (ops/ms, higher is better) — JDK 25, 1 fork, 8×1s warmup, 10×1s measurement:
Round-trip correctness verified on all three datasets under RC5.