lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I found a matrix multiplication benchmark which I adapted for Ravi.
The original benchmark is from:

C:\github\ravi\ravi-tests>\luajit\luajit.exe matmul2.lua 1000
time taken      0.968

C:\github\ravi\ravi-tests>..\build\Release\lua.exe  matmul1.ravi 1000
time taken      4.2

C:\github\ravi\ravi-tests>\lua-5.3.0\src\build\Release\lua.exe matmul1.lua 1000
time taken      34.604

The Ravi version uses array slices that I have been playing around
with. The idea is to allow more efficient [] operator access.

For the source code for above benchmarks see:

For a full list of benchmarks and Ravi's performance at present, please see: