fury icon indicating copy to clipboard operation
fury copied to clipboard

[benchmark] Request for call-path / fairness review (GLD.SerializerBenchmark)

Open leo-gan opened this issue 2 months ago • 4 comments

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:

  1. Does our call pattern match how you recommend using the library in performance-sensitive code?
  2. Should we change options, encoder/decoder reuse, types, or buffer handling?
  3. 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

leo-gan avatar Sep 04 '26 16:09 leo-gan

You should use ForyKotlin.builder() instead.

chaokunyang avatar Sep 07 '26 05:09 chaokunyang

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.

leo-gan avatar Sep 12 '26 00:09 leo-gan

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.

alisha-1000 avatar Sep 14 '26 10:09 alisha-1000

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?

codewithsinchana avatar Oct 27 '26 03:10 codewithsinchana