What's the best way to benchmark a change in the A...
# arrow-contributors
y
What's the best way to benchmark a change in the Arrow codebase? Is kotlinx benchmark the way to go? I've restarted work on
value class Option
and I think it's ready for me to benchmark and present the results in a PR.
s
I don't have a lot of experience with benchmarking Kotlin, but I think KotlinX Benchmark is the way to go yes. In the passed I've only benchmarked some stuff on Kotlin JVM using JMH.
I haven't looked at KotlinX benchmark in a couple of years, it looks really neat! I guess this is what they also used to benchmark https://github.com/Kotlin/kotlinx.coroutines/issues/3621
y
Yeah it turns out Kotlinx benchmark basically acts as a wrapper on the JVM for JMH, but it does the heavy lifting on other platforms. Ended up using it for simplicity of setup. Will make a new PR soon for
value class Option
alongside the benchmark results and commentary about the impacts of the refactoring