3 ms·
>"JS is slow." In comparison to what? JS is one of the faster script languages out there. V8 is way faster that Ruby and outperform python a lot of time as wel
by pmelendez 13y ago
>"JS is slow."
In comparison to what? JS is one of the faster script languages out there. V8 is way faster that Ruby and outperform python a lot of time as well. It's regex is blast fast as well.
- Mikeb85 13y agoIt outperforms Python at everything except where Python just calls a C function. Ruby (especially the recent releases) is on par with Python speed, if not faster. But neither is close to JS.
- oscargrouch 13y ago"My pet is fast because it can beat a turtle and a slug in a race"
- Mikeb85 13y agoLol. Seriously though, show me a dynamic language (other than Lisp) that's even half as fast as Javascript...
- oscargrouch 13y agoWithout Python, Ruby, Javascript and Lisp, we are sort of running out of dinamic languages options.. But the funny thing is the one that got left out, is the one that is faster than Javascript: Lua
- pmelendez 13y agoIs it really faster than Javascript though? http://benchmarksgame.alioth.debian.org/u32/benchmark.php?test=all&lang=v8&lang2=lua&data=u32 http://benchmarksgame.alioth.debian.org/u32/benchmark.php?te...
- oscargrouch 13y agoThis is for the lua interpreter. aka the PUC-Lua You should compare it to Luajit, wich is a proper JIT compiler as V8.. The benchmark game used to have Luajit, but they take it out for no reason.. You can download the scripts and run in you local machine against V8, using Luajit for real comparison.. http://luajit.org/ http://luajit.org/ Also this link compare a lot of language implementations in different benchmarks than the ones in shootout http://attractivechaos.github.io/plb/ http://attractivechaos.github.io/plb/ edit: also see this blog post about benchmarks; if i am not mistaken, this guy is behind V8 and Dart VM's implementations http://mrale.ph/blog/2011/05/12/dangers-of-cross-language-benchmark-games.html http://mrale.ph/blog/2011/05/12/dangers-of-cross-language-be...