add simple loop bench
fiddled with run numbers a bit recording times with noop removed results slightly worse than hoped
This commit is contained in:
@ -1,5 +1,3 @@
|
||||
#include<stdio.h>
|
||||
|
||||
int fibo(int n){
|
||||
int result;
|
||||
int a = 0;
|
||||
@ -17,10 +15,10 @@ int fibo(int n){
|
||||
|
||||
int main(void)
|
||||
{
|
||||
int counter = 100000;
|
||||
int counter = 50000;
|
||||
int fib ;
|
||||
while(counter) {
|
||||
fib += fibo(20);
|
||||
fib = fibo(40);
|
||||
counter -= 1;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user