Ruby's Open Struct's Slow Performance

Ruby’s OpenStruct is slow, but convenient. I wanted something similar. My requirements:

Fast

The conclusion is that OpenStruct is really slow, but it’s possible to to create a similar object with really good perf. Here's a gist of my tests/results:

{% gist fb1ea90afdb226e28b6d7b984acbc727 %}