benchmarks/hash_vs_openstruct.rb in utopia-2.11.1 vs benchmarks/hash_vs_openstruct.rb in utopia-2.12.0

- old
+ new

@@ -1,4 +1,6 @@ +# frozen_string_literal: true + require 'benchmark/ips' require 'ostruct' # This benchmark compares accessing an instance variable vs accessing a struct member (via a function). The actual method dispatch is about 25% slower.