5 ms·
racket compiled binaries are not "native", they are bytecodes jitted during runtime, and jvm's jit is highly performant.
by xfer 8y ago
racket compiled binaries are not "native", they are bytecodes jitted during runtime, and jvm's jit is highly performant.
- dorfsmay 8y agoOh, so like python. Explains the poor performance. I did not know that. thanks.
- gameswithgo 8y agono, python isn't jitted.
- gus_massa 8y agoAs a broad approximation from the results of The Computer Language Benchmarks Game, Racket is 5 times faster than Python and 5 times slower than C. https://benchmarksgame-team.pages.debian.net/benchmarksgame/which-programs-are-fast.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/... (I can't find a direct comparison of Python-vs-Racket in the site.) The difference with Python is probably bigger in programs with a big numeric part, and much smaller in programs with a lot of string. Take that number just as a general guide, not as a precise scaling factor.
- igouy 8y ago> I can't find a direct comparison of Python-vs-Racket in the site Now you will.
- gus_massa 8y agoWhy is not everything-vs-everything available? Racket vs Python is a "common" comparison. I write the same comment once or twice per year :). (Probably because both are high level and have the batteries included. (The syntax is slightly different :) ))
- igouy 8y ago1) Everything-vs-everything is available, here — https://salsa.debian.org/benchmarksgame-team/benchmarksgame/tree/master/public/data https://salsa.debian.org/benchmarksgame-team/benchmarksgame/... 2) People show interest in just a few comparisons (much much fewer than are currently shown). 3a) Everything-vs-everything is available, here — https://benchmarksgame-team.pages.debian.net/benchmarksgame/performance/nbody.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/... 3b) Everything-vs-everything is available, here — https://benchmarksgame-team.pages.debian.net/benchmarksgame/which-programs-are-fast.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...