A Better Way to Explore kotlinx-benchmark Results with Kotlin Notebooks
admin
Thu Dec 18 2025 · 12 min read
Benchmarking is an important part of writing efficient Kotlin code. The kotlinx-benchmark library helps you measure and compare performance across different implementations or hardware configurations.
However, raw text results only take you so far. Sometimes you need to visualize your data, not just read it. That’s where Kotlin notebooks come in.
Kotlin notebooks combine the expressiveness of Kotlin with the interactivity of notebook-style development. They give you one convenient place where you can:
- Load results as structured data.
- Explore results using the DataFrame API.
- Visualize results with charts.
Comparing benchmark results
Kotlin notebooks make it easy to analyze and plot results from one or more benchmark runs.
For example, you can:
- Read benchmark JSON files generated by
kotlinx-benchmark. - Convert the results into typed DataFrames.
- Compute metrics such as percentage improvements.
- Plot the results with Kandy charts.
- Account for confidence intervals to perform statistically rigorous comparisons.
Several benchmark examples are available in the examples folder of the kotlinx-benchmark repository.
Generating and sharing notebooks
Once your notebook is ready, you can:
- Create a GitHub gist to share results quickly.
- Commit the notebook to your project for reproducible performance tracking.
- Publish it with JetBrains Datalore for interactive viewing online.
This workflow makes benchmark results easier to understand and share with your team.
Learn more
1 Comments
hlo

