Skip to content

Instantly share code, notes, and snippets.

def benchmark
begin_time = Time.now
yield
end_time = Time.now
elapse = end_time - begin_time
end
# Be careful, pasting this into IRB will take a long time to print.
# It's a loooong string. :)
long_string = "apple"*100000000
@shinobcrc
shinobcrc / .rspec
Last active June 27, 2016 00:05 — forked from davidvandusen/.rspec
--color