1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
prelude: | class Embedded def initialize @a = 1 @b = 1 @c = 1 end end class Extended def initialize @a = 1 @b = 1 @c = 1 @d = 1 @e = 1 @f = 1 end end benchmark: embedded: Embedded.new extended: Extended.new loop_count: 20_000_000