Here are benchmarking results for «Optimizing Performance of Simple Version Parsing in Scala» blog post.
The performance tests are performed via JMH. The configuration of a hardware is Intel® Core™ i7-1165G7 @ 2.80GHz × 8 (4 core + 4 HT) with 16 GB RAM. Scala version: 2.13.6.
avg - average, min - minimal, p50 - percentile 50 (median), p95 - percentile 95, p99 - percentile 99, max - maximum
All charts below show normalized allocation rate -- how many bytes were allocated for a single call.
Full JMH logs:openjdk-11, openjdk-17.