4 ms·
No. NodeJS (V8) is slower than Racket in many benchmarks: https://benchmarksgame.alioth.debian.org/u64q/measurements.php?lang=node https://benchmarksgame.alio
by sedachv 10y ago
No.
NodeJS (V8) is slower than Racket in many benchmarks:
https://benchmarksgame.alioth.debian.org/u64q/measurements.php?lang=node https://benchmarksgame.alioth.debian.org/u64q/measurements.p...
https://benchmarksgame.alioth.debian.org/u64q/measurements.php?lang=racket https://benchmarksgame.alioth.debian.org/u64q/measurements.p...
Note that Racket is not even in the top 5 for most Scheme compiler benchmarks:
https://ecraven.github.io/r7rs-benchmarks/benchmark.html https://ecraven.github.io/r7rs-benchmarks/benchmark.html
There are a bunch of Scheme implementations in JS, none of them are benchmarked in the previous link: https://github.com/jashkenas/coffeescript/wiki/List-of-languages-that-compile-to-JS#scheme-like https://github.com/jashkenas/coffeescript/wiki/List-of-langu...
JavaScript is a really shitty language to target because it has very few performant control structures and terrible data types (you need ints and good arrays). Scheme also has first-class continuations, which cannot be implemented efficiently in JavaScript. Even if you leave out continuations IMO it is impossible to make a performant transpiler for most languages that targets JavaScript.
- igouy 10y agoLet me help you with a benchmarks game URL -- http://benchmarksgame.alioth.debian.org/u64q/compare.php?lang=node&lang2=racket http://benchmarksgame.alioth.debian.org/u64q/compare.php?lan...