summaryrefslogtreecommitdiff
path: root/jni/ruby/benchmark/bm_app_fib.rb
blob: 34a7b2e7250efe9dd0454819731b201b904cc40f (plain)
1
2
3
4
5
6
7
8
9
10
def fib n
  if n < 3
    1
  else
    fib(n-1) + fib(n-2)
  end
end

fib(34)