move c benchmarks to own directory
This commit is contained in:
19
test/bench/c/calls.c
Normal file
19
test/bench/c/calls.c
Normal file
@ -0,0 +1,19 @@
|
||||
#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 = 1000;
|
||||
int counter2 = counter;
|
||||
int fib ;
|
||||
while(counter--) {
|
||||
fib = fibo_r(20);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user