Skip to content

Instantly share code, notes, and snippets.

@steverob
Last active February 25, 2017 09:47
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 steverob/1c7679518d0b1a40b5707ee4f0da398d to your computer and use it in GitHub Desktop.
Save steverob/1c7679518d0b1a40b5707ee4f0da398d to your computer and use it in GitHub Desktop.
Simple Ruby Code
class HeavyWorker
def work
500.times {|i| i.times {} }
more_work
end
def more_work
500.times {|i| i.times {} }
end
end
class LightWorker
def work
500.times {|i| i.times {} }
end
end
LightWorker.new.work
HeavyWorker.new.work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment