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
1
u/thedeemon Mar 05 '26
On my machine the C++ version runs in 18 seconds when compiled with
-O3by gcc, 10% faster than when compiled with-Ofast.Racket version runs in 1m18s, just 4.3x slower than C++. Internally Racket compiles to native code.
https://gist.github.com/thedeemon/290d156bc8cd89c27d7413a6a72de7cb (translated directly by Codex; I'm using Racket 9.0)
Btw on a different test I saw Python 3.14 running twice faster than 3.12. Worth checking here.