3 ms·
I use a benchmark that's pretty rough on languages, basically lots of maths and loops. Python 3 and Ruby 3 (with no jit) both take about 90 seconds on my compu
by Mikeb85 5y ago
I use a benchmark that's pretty rough on languages, basically lots of maths and loops.
Python 3 and Ruby 3 (with no jit) both take about 90 seconds on my computer.
Ruby 3.1 with --YJIT takes about 35 seconds.
TruffleRuby takes 9 seconds (!!)
JS (Chrome) takes 8 seconds.
C++ takes just over a second and C is about a second even.
- igouy 5y agoPlease use something "basically lots of maths and loops" where we can see the source code (like the blog post does). n-body https://benchmarksgame-team.pages.debian.net/benchmarksgame/performance/nbody.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/... https://benchmarksgame-team.pages.debian.net/benchmarksgame/program/nbody-node-6.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/... spectral-norm https://benchmarksgame-team.pages.debian.net/benchmarksgame/performance/spectralnorm.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/... https://benchmarksgame-team.pages.debian.net/benchmarksgame/program/spectralnorm-node-6.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...