add ruby bench programs and numbers
This commit is contained in:
16
test/bench/ruby/calls.rb
Normal file
16
test/bench/ruby/calls.rb
Normal file
@ -0,0 +1,16 @@
|
||||
|
||||
def fibo_r( n )
|
||||
if( n < 2 )
|
||||
return n
|
||||
else
|
||||
return fibo_r(n - 1) + fibo_r(n - 2)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
counter = 1000
|
||||
|
||||
while(counter > 0) do
|
||||
fibo_r(20)
|
||||
counter -= 1
|
||||
end
|
Reference in New Issue
Block a user