Benchmarking Ruby 2.6 to 3.2

The yearly benchmarking Ruby post

It’s this time of the year again where Ruby is released and everyone asks: Is it faster? You will find out below! And if you are interested, you can compare the results to the previous installations of this post for the years 2016, 2017, 2020 and 2021.

This christmas Ruby 3.2.0 was released, featuring improvements across the board. The YJIT just in time compiler has been ported to Rust and can now be used on ARM machines. And variable width allocation (VWA) has been enabled by default. Let’s see how fast Ruby got in the past year!

An Unusual Performance Optimization

How wondering about an odd benchmark result led to better performance

I regularly run the HexaPDF benchmarks to make sure that HexaPDF gets faster and not slower. One of the benchmarks, the “raw_text” benchmark, always had me wondering why using TrueType fonts was visibly slower. So I decided to investigate.

Benchmarking Ruby 2.4 to 3.0

Benchmarking Ruby version with three different benchmarks

I ran some benchmarks using HexaPDF after Ruby 2.4 was released in 2016 and again after Ruby 2.5 was releasd in 2017. Since Ruby 3.0.0 was released this Christmas, I think this warrants another round of benchmarks. And this time three different real-world benchmarks are used to evaluate relative Ruby performance.

On maintaining webgen

Why I still maintain my static website generator webgen

My static website generator webgen has been around for a long time. Though there are now many other static website generators written in Ruby, I still maintain webgen because some of its functionality is unique.