Skip to content
 
 

Repository files navigation

Benchmarking HTML rendering in Ruby

Inspired by the recent blog post and benchmarks published by Sharon Rosner @noteflakes,
I added ViewComponent and memory benchmarks to the mix.

Here are the contestants:

This is my setup:

MacBook Pro, 14-inch, Nov. 2024
Apple M4
16 GB memory
macOS 15.6
Ruby 3.4.4

These are my results as of August 20, 2025:

IPS benchmark

And the memory benchmark:

Memory benchmark

And here's how you can run the benchmarks yourself:

git checkout git@github.com:rubiii/ruby_rendering_benchmarks.git
cd ruby_rendering_benchmarks
bundle
bin/rails benchmark:ips
bin/rails benchmark:memory

If I messed something up, please let me know.

About

Benchmarking HTML rendering in Ruby

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages