Skip to content

Instantly share code, notes, and snippets.

@rhiroyuki
Last active February 2, 2019 14:11
Show Gist options
  • Save rhiroyuki/3753aade1e6a666eaaff093bfb801662 to your computer and use it in GitHub Desktop.
Save rhiroyuki/3753aade1e6a666eaaff093bfb801662 to your computer and use it in GitHub Desktop.
def main
CYCLES_COUNT = 1_000_000_000
start = Time.now
CYCLES_COUNT.times do
end
end_time = Time.now
duration = (end_time - start)
puts("Ruby looped #{CYCLES_COUNT} times in #{duration} seconds")
end
main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment