4 ms·
The answer is, like most things, not simple; it depends on what you are doing and the version of Ruby you are using. I just found this[1] great article by Miko
by Lio 2y ago
The answer is, like most things, not simple; it depends on what you are doing and the version of Ruby you are using.
I just found this[1] great article by Miko Dagatan with loads of benchmarks for Ruby 3.4.2 that goes into a bit of depth.
1. https://reinteractive.com/articles/ruby-performance-structs-classes https://reinteractive.com/articles/ruby-performance-structs-...