4 ms·
Java is very fast: https://github.com/gunnarmorling/1brc https://github.com/gunnarmorling/1brc
by ludovicianul 2y ago
Java is very fast: https://github.com/gunnarmorling/1brc https://github.com/gunnarmorling/1brc
- austin-cheney 2y agoSo... about performance. Performance is the difference between two or more measures. When not compared against something everything is itself fast. Out of a list of 1 item that one item will always be the 100% fastest item in the list. So, what's really important is not whether something is fast, but whether that thing is faster than something else and by how much. I suspect Java is fast. JavaScript is also fast. They are both fast. Without comparing measures the only significant distinction between the two is the time to compile. In that case Java is slow, or at least just substantially slower than JavaScript. Fortunately there are comparative benchmarks: The Programming Benchmark Games. It is not always the best, but it is certainly better than naught. https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/java-node.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...