[benchmark] Request for call-path / fairness review (GLD.SerializerBenchmark)
Hello,
I'm Leonid Ganeline. We maintain an open multi-language serializer benchmark:
https://github.com/leo-gan/GLD.SerializerBenchmark
Your library is included in the suite (language: kotlin, harness name: fory).
Implementation we use:
https://github.com/leo-gan/GLD.SerializerBenchmark/blob/master/kotlin/src/main/kotlin/benchmark/serializers/ForySer.kt
We would value a short review of whether our measurement is fair and idiomatic:
- Does our call pattern match how you recommend using the library in performance-sensitive code?
- Should we change options, encoder/decoder reuse, types, or buffer handling?
- Is there a better API (or a second entry point worth a separate row in the suite)?
Concrete notes or a small PR against that wrapper would help a lot. We are happy to credit you in the docs.
The repo also includes a short Serialization course (101–401). If something important about your design is easy to misstate, a pointer is welcome—we can update the docs ourselves.
Thank you for maintaining this library.
Best regards, Leonid Ganeline
You should use ForyKotlin.builder() instead.
Thanks — ForyKotlin.builder() is the right Kotlin API.
I tried adding fory-kotlin at our current 1.3.0 pin. It pulls Kotlin 2.3 metadata into a 2.1 toolchain, so the row still uses Fory.builder() + Language.JAVA for now. I will switch to ForyKotlin.builder() (native / withXlang(false), same registration + codegen) when we bump Fory and the Kotlin compiler together.
Hi! I’d like to look into this issue and review the Kotlin benchmark implementation, particularly the migration to ForyKotlin.builder() and the current Kotlin/toolchain compatibility. I’ll investigate the existing wrapper and see if a small PR is feasible.
Hi, I'm interested in contributing to this benchmark review. I noticed that someone has already expressed interest in investigating the Kotlin API migration. Is that work currently underway, or is there another part of the benchmark review that would be useful for me to take on?