Comment by masklinn
8 years ago
> C (GCC 7.3): 2ms (int main(void) { puts("hi"); })
Not really a fair comparison given the other 3/4 have to do all their parsing and compiling. Unless in those 2ms you include compilation time. Or use tcc -run.
8 years ago
> C (GCC 7.3): 2ms (int main(void) { puts("hi"); })
Not really a fair comparison given the other 3/4 have to do all their parsing and compiling. Unless in those 2ms you include compilation time. Or use tcc -run.
The user doesn't care, they just invoke "hg" or "git", and language is always a choice, so it's valid from that perspective.
But the reason I included it is because it gives a baseline for the overhead of invoking any program, no matter how trivial.
I must say even 2 ms feels rather slow just to execute something hot in cache.