rubyx/test/bench/c/calls.c
Torsten 00bf38a0e6 updating benchmarks
on the new machine, consistent
not rubyx yet
2019-07-23 20:14:28 +03:00

19 lines
224 B
C

#include<stdio.h>
int fibo_r(int n)
{
if ( n < 2 )
return n;
else
return ( fibo_r(n-1) + fibo_r(n-2) );
}
int main(void)
{
int counter = 100000;
int fib ;
while(counter--) {
fib += fibo_r(10);
}
}