4 ms·
It seems like this is just measuring a single pass at reading a file with about 100k words in it. I ran the benchmark and it finished almost instantly. So langu
by zmmmmm 4y ago
It seems like this is just measuring a single pass at reading a file with about 100k words in it. I ran the benchmark and it finished almost instantly. So languages with startup overhead and warmup time (eg: JIT etc) will totally underperform here. Makes sense then why Java is almost identical between optimised and non-optimised versions.
- pjmlp 4y agoIn what concerns Java, using AOT or JIT caches is also an option, however all these kind of benchmarks tend to reveal lack of knowledge of the Java ecosystem. Same applies to .NET by the way.
- igouy 4y agootoh the similar k-nucleotide program in the benchmarks game processes bigger files to amortize any startup overhead — https://benchmarksgame-team.pages.debian.net/benchmarksgame/measurements/java.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/... otoh instead of asserting "will totally underperform" please measure and share your measurements! Sometimes "startup overhead" turns-out to be insignificant. https://benchmarksgame-team.pages.debian.net/benchmarksgame/sometimes-people-just-make-up-stuff.html#jvm-startup-time https://benchmarksgame-team.pages.debian.net/benchmarksgame/...