Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (13 sloc) 0.232 kb
require 'rubygems'
require 'rbench'
TIMES = 1_000
SYM = {:foo => "bar"}
STR = {"foo" => "bar"}
RBench.run(TIMES) do
column :sym
column :str
report "hash lookup" do
sym { SYM[:foo] }
str { STR["foo"] }
end
end
Jump to Line
Something went wrong with that request. Please try again.