Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (13 sloc) 243 Bytes
require 'rubygems'
require 'rbench'
FooBar = "foobar"
RBench.run(10_000_000) do
column :literal
column :symbol
column :constant
report "init" do
literal { "foobar" }
symbol { :foobar }
constant { FooBar }
end
end