Skip to content

Instantly share code, notes, and snippets.

@rdp
Created June 11, 2010 22:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rdp/435159 to your computer and use it in GitHub Desktop.
Save rdp/435159 to your computer and use it in GitHub Desktop.
start = Time.now
a = Thread.new { for i in 1..100000000 do; end; puts 't1d'}
for i in 1..100000000 do; end
puts 't2d'
a.join
puts Time.now - start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment