Some more fun with Scala3

2021-05-15 Software-Craftsmanship Advent-of-Code Functional-Programming Nerdy Scala

Scala3 is officially released.

In my earlier post I saw some weird performance differences between Scala2 and Scala3 (RC3) and felt (obviously) compelled to run the benchmark again against 3.0.0.

Bar chart comparing per-day percentage performance difference for Scala 3.0.0-RC3 and the final Scala 3.0.0 release
Bar chart comparing per-day percentage performance difference for Scala 3.0.0-RC3 and the final Scala 3.0.0 release — Photo: Roland Tritsch

And … big surprise: Everything is back to normal. Scala3 is as fast as Scala2.

The big differences come from very small numbers (e.g. Day13). The biggest (reproducible) differences is on Day3(part1): 112 msecs vs. 255 msecs. If I am getting really bored one day I might take a look at it.