rubyx/test/bench/c/calls.c
Torsten 6b1c316f04 add simple loop bench
fiddled with run numbers a bit
recording times with noop removed
results slightly worse than hoped
2019-07-31 21:18:03 +03:00

19 lines
221 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 = 100;
int fib ;
while(counter--) {
fib += fibo_r(20);
}
}