4 ms·
Personally, I would hav just done Lua vs Ruby instead of LuaJIT vs Ruby. Results look almost the same ;-) http://shootout.alioth.debian.org/u32/benchmark.php?
by brianm 18y ago
Personally, I would hav just done Lua vs Ruby instead of LuaJIT vs Ruby.
Results look almost the same ;-)
http://shootout.alioth.debian.org/u32/benchmark.php?test=all&lang=lua&lang2=ruby http://shootout.alioth.debian.org/u32/benchmark.php?test=all...
Lua is generally the fastest scripty language, ruby is generally the slowest. Ruby is much more general purpose though -- Lua is very optimized for embedding.
- palish 18y agoLuaJIT makes the Lua mandelbrot program run 95 times faster than Ruby's, whereas the stock Lua interpreter is only 17 times faster. Better yet, LuaJIT is a drop-in replacement. There's no reason not to use it, as far as I know.
- LogicHoleFlaw 18y agoWell, LuaJIT only runs on x86, and only in 32-bit mode. Though, the work-in-progress LuaJIT 2 is supposed to be easily portable to ARM or other architectures.
- brianm 18y agoI love the "only 17 times faster" bit ;-)
- lliiffee 18y agoTry comparing ruby to c++!