Skip to content

Instantly share code, notes, and snippets.

View madeleine68's full-sized avatar
🏠
Working from home

Madeleine madeleine68

🏠
Working from home
View GitHub Profile
def benchmark
start_time = Time.now
yield
end_time = Time.now
x = end_time - start_time
end
# Be careful, pasting this into IRB will take a long time to print.
# It's a loooong string. :)
long_string = "apple"*100000000