Files
RubyMotion/test/Benchmark/app/benchmark/module/class_variable_get.rb
2014-01-27 09:37:38 +09:00

15 lines
264 B
Ruby

def module_class_variable_get(x)
x.report "class_variable_get" do
1000000.times do
Foo.class_variable_get(:@@foo)
end
end
x.report "class_variable_get (included)" do
1000000.times do
Bar.class_variable_get(:@@baz)
end
end
end