They say OpenStruct is slow, but I guess it can still beat Rspec's double in lots of scenarios where you need a quick throwaway object. 🤔

https://gist.github.com/oz/671878115e04e1f80fe23400a1423e4c

(🗯️ Yes, please do tell me about how Struct is better.)

Quick bench of Rspec's double vs openstruct

Quick bench of Rspec's double vs openstruct. GitHub Gist: instantly share code, notes, and snippets.

Gist