rubyx/test/bench/c/hello.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

11 lines
208 B
C

#include<stdio.h>
int main(void)
{
setbuf(stdout, NULL); /* to make it equivalent to the other versions, otherwise it caches */
int counter = 10000;
while(counter--) {
printf("Hello there\n");
}
}