I test with this Luavm, Lua 5.4 and LuaJIT :
./run.py -b ./benchmarks/fib.lua -n 2
Running luavm on ./benchmarks/fib.lua
Mean: 1.837, Std.Dev: 0.046, Margin of error: 0.08378932514348113
Running lua on ./benchmarks/fib.lua
Mean: 0.073, Std.Dev: 0.005, Margin of error: 0.009107535341682732
Running luajit on ./benchmarks/fib.lua
Mean: 0.011, Std.Dev: 0.0, Margin of error: 0.0
&$1.8370 \scriptstyle \pm \small{0.0838}$ &$0.0730 \scriptstyle \pm \small{0.0091}$ &$0.0110 \scriptstyle \pm \small{0.0000}$ \\
I actually feel your implementation was pretty nice, but don't know why it's 25X slower than Lua5.4 👍
Does that mean Rust is slower than pure C ? No ?
Anyway, I'm happy to found you guys's work while thinking about a VM in Rust.
I test with this Luavm, Lua 5.4 and LuaJIT :
I actually feel your implementation was pretty nice, but don't know why it's 25X slower than Lua5.4 👍
Does that mean Rust is slower than pure C ? No ?
Anyway, I'm happy to found you guys's work while thinking about a VM in Rust.