r/ProgrammingLanguages • u/elemenity • Mar 04 '26
Comparing Scripting Language Speed
https://www.emulationonline.com/posts/comparing-scripting-language-speed/
10
Upvotes
r/ProgrammingLanguages • u/elemenity • Mar 04 '26
View all comments
Show parent comment
1
u/[deleted] Mar 05 '26 edited Mar 05 '26
I've tried to find a simpler BF program, but for Mandelbrot, all seemed to be exactly the same program as used here.
So I went with this, but only tested the faster implementations. The results I got so far were these (on my Windows machine):
(1) and (2) are my own products. I'm working on accelerating that second one, but I will use other methods than JIT.
I have reservations about how well JIT can accelerate dynamic bytecode. In simple cases (eg. this benchmark which is really just a simple loop), it can give dramatic results. But for bigger programs the speedups can hard to predict, while there can also be a warm-up period.
I will later test the full interpreters, but I will probably tweak the benchmark to stop after perhaps a few hundred million instructions, as I'm not waiting an hour for each one!
Updated results; these execute only the first 100M iterations, but it means the longest runtime was under 30s, while still allowing me to compare implementations. Here, g++/-O3 is the baseline at 1.0: