rubyx/test/bench/c/hello.c
Torsten 6273ab769c redid the old benchmarks
With #26 out of the way, was able to get meaningful rubyx benchmarks. Meaning loops large enough for the exec time to go significantly over the noop.
Did mruby too and as expected got much lower noop
2019-07-30 13:55:29 +03:00

11 lines
209 B
C

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