summaryrefslogtreecommitdiff
path: root/benchmark/bm_app_factorial.rb
blob: cfafd626a806c72dd6c83a34c0f605716b2c06ff (plain)
1
2
3
4
5
6
7
8
9
10
11
def fact(n)
  if(n > 1)
    n * fact(n-1)
  else
    1
  end
end

8.times{
  fact(5000)
}