Hacker News new | ask | show | jobs
by Sean1708 3185 days ago
Which is great in theory, but what was intending to ask was are there any actual examples of JITed programs which beat C by a large margin? Because, as I say, I've only ever seen ones which are comparable to C.
1 comments

Trouble is, you don't tend to write a big program in two languages the exact same way. The rewrite nearly always wins because of algorithm improvements and cleaning cruft. So it's hard to benchmark.

If two small programs are about the same speed in C vs JITlang, then the theory says the JITted one should take over as the program gets bigger.