Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

> 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.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: