move c benchmarks to own directory

This commit is contained in:
Torsten Ruger
2015-11-21 14:22:53 +02:00
parent d0b655d05f
commit 9eab4b7f67
5 changed files with 0 additions and 0 deletions

19
test/bench/c/calls.c Normal file
View 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);
}
}