5 ms·
> 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 tho
by masklinn 9y 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.
- avar 9y agoThe 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.
- emj 9y agoI must say even 2 ms feels rather slow just to execute something hot in cache.