evanphx (owner)

Revisions

gist: 205453 Download_button fork
public
Public Clone URL: git://gist.github.com/205453.git
Embed All Files: show embed
Text #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
def foo
  raise "you suck"
end
 
def bar(n=5)
  foo if n == 0
  bar(n-1)
end
 
 
require 'benchmark'
 
total = 100000
 
puts Benchmark.measure {
  total.times do
    bar rescue nil
  end
}