Scala
Scala 3 compiled to JVM bytecode by scalac and run on the HotSpot JVM (tiered JIT, generational garbage collector). The programs use while loops and arrays in the hot paths. Versions are Scala CLI releases, each with its default Scala 3 compiler.
www.scala-lang.org ↗- Overall speed rank
- -
- no data yet
- Latest release
- 1.19.0
- 5 tracked releases
- Strongest on
- -
- Weakest on
- -
Performance by problem
Newest release (1.19.0), default build (scala-cli package --assembly, java -jar). The index is how many times slower this language is than the fastest entry on that problem (1.00× = fastest); rank is among all languages.
The first scheduled GitHub Actions run will publish real measurements here. Everything on this page is computed from raw iterations in data/.
Build settings
scala-cli package --assembly, java -jar default
Assembly jar run with the default JVM settings (G1 garbage collector). Compile time is not measured; the JIT warm-up is.
mkdir -p {bin}.src && cp {harness}/Harness.scala {bin}.src/Harness.scala && cp {src}/Main.scala {bin}.src/Problem.scala && scala-cli --power package --server=false --assembly -f -o {bin}.jar {bin}.src/Harness.scala {bin}.src/Problem.scalajava -jar {bin}.jarjava -XX:+UseParallelGC -jar
Throughput-oriented collector with less barrier overhead than G1.
mkdir -p {bin}.src && cp {harness}/Harness.scala {bin}.src/Harness.scala && cp {src}/Main.scala {bin}.src/Problem.scala && scala-cli --power package --server=false --assembly -f -o {bin}.jar {bin}.src/Harness.scala {bin}.src/Problem.scalajava -XX:+UseParallelGC -jar {bin}.jarEvery release (default build)
The first scheduled GitHub Actions run will publish real measurements here. Everything on this page is computed from raw iterations in data/.
Speed across releases
Did Scala get faster? Every tracked release plotted at its release date, one line per build setting. Shows time, memory or binary size over all problems by default.
The first scheduled GitHub Actions run will publish real measurements here. Everything on this page is computed from raw iterations in data/.
Release highlights
- Scala 1.19.0 2026-11-10
- Scala 1.18.0
- Scala 1.12.0
- Scala 1.9.0
- Scala 1.6.0
Badge
Show this language's overall rank in your README or website:
[](https://stijnris.github.io/language-bench/languages/scala/)<a href="https://stijnris.github.io/language-bench/languages/scala/"><img src="https://stijnris.github.io/language-bench/badges/scala.svg" alt="Scala on language-bench"></a>