updating benchmarks

on the new machine, consistent
not rubyx yet
This commit is contained in:
2019-07-23 20:14:28 +03:00
parent 861fa3203f
commit 00bf38a0e6
17 changed files with 47 additions and 56 deletions

View File

@ -17,11 +17,10 @@ int fibo(int n){
int main(void)
{
int counter = 100352 - 352;
int counter2 = counter;
int level = 40;
int counter = 100000;
int fib ;
while(counter--) {
fib = fibo(level);
while(counter) {
fib += fibo(20);
counter -= 1;
}
}

View File

@ -10,10 +10,9 @@ int fibo_r(int n)
int main(void)
{
int counter = 1000;
int counter2 = counter;
int counter = 100000;
int fib ;
while(counter--) {
fib = fibo_r(20);
fib += fibo_r(10);
}
}

View File

@ -2,8 +2,7 @@
int main(void)
{
setbuf(stdout, NULL); /* to make it equivalent to the typed version, otherwise it caches */
int counter = 100352 - 352;
int counter = 100000;
while(counter--) {
printf("Hello there\n");
}

View File

@ -3,9 +3,9 @@
int main(void)
{
char stringa[20] ;
int counter = 100352 - 352;
int counter = 1000;
while(counter--) {
sprintf(stringa, "%i\n" , counter);
sprintf(stringa, "%i\n" , counter);
}
}

View File

@ -1,9 +0,0 @@
#include<stdio.h>
int main(void)
{
int counter = 100352 - 352;
while(counter) {
counter = counter - 1;
}
}

5
test/bench/c/noop.c Normal file
View File

@ -0,0 +1,5 @@
int main(void)
{
return 0;
}