Lua VS Acton benchmarks

Current benchmark data was generated on Thu May 04 2023, full log can be found HERE

CONTRIBUTIONS are WELCOME!

[x86_64][2 cores] Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz (Model 85)

* -m in a file name stands for multi-threading or multi-processing

* -i in a file name stands for direct intrinsics usage. (Usage of simd intrinsics via libraries is not counted)

* -ffi in a file name stands for non-stdlib FFI usage

* (You may find time < time(user) + time(sys) for some non-parallelized programs, the overhead is from GC or JIT compiler, which are allowed to take advantage of multi-cores as that's more close to real-world scenarios.)

binarytrees

Input: 18

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
lua 1.lua timeout 0.0ms 119.6MB 4937ms 47ms lua 5.4.4
lua 1.lua timeout 0.0ms 177.7MB 4913ms 70ms luajit 2.1.0-beta3

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
lua 1.lua 516ms 1.1ms 24.9MB 490ms 10ms luajit 2.1.0-beta3
lua 1.lua 1211ms 16ms 17.3MB 1193ms 0ms lua 5.4.4

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
lua 1.lua 2.0ms 0.6ms 1.5MB 0ms 0ms lua 5.4.4
lua 1.lua 2.9ms 1.3ms 2.2MB 0ms 0ms luajit 2.1.0-beta3
acton 1.act 5.1ms 2.3ms 7.6MB 0ms 0ms actonc 0.15.0

merkletrees

Input: 17

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
lua 1.lua timeout 0.0ms 159.1MB 4920ms 63ms lua 5.4.4
lua 1.lua timeout 0.0ms 183.3MB 4907ms 73ms luajit 2.1.0-beta3

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
lua 1.lua 1989ms 8.8ms 40.6MB 1953ms 17ms luajit 2.1.0-beta3
lua 1.lua 3267ms 64ms 41.6MB 3230ms 17ms lua 5.4.4

nbody

Input: 5000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
lua 4.lua 1119ms 3.1ms 1.4MB 1107ms 0ms luajit 2.1.0-beta3
lua 4.lua timeout 0.0ms 1.5MB 4987ms 0ms lua 5.4.4

Input: 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
lua 4.lua 117ms 2.1ms 1.4MB 103ms 0ms luajit 2.1.0-beta3
lua 4.lua 1614ms 90ms 1.4MB 1603ms 0ms lua 5.4.4

spectral-norm

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
lua 1.lua timeout 0.0ms 2.3MB 4987ms 0ms lua 5.4.4
lua 1.lua timeout 0.0ms 2.5MB 4987ms 0ms luajit 2.1.0-beta3

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
lua 1.lua 1406ms 0.9ms 2.5MB 1390ms 0ms luajit 2.1.0-beta3
lua 1.lua timeout 0.0ms 2.2MB 4987ms 0ms lua 5.4.4

Input: 2000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
lua 1.lua 355ms 1.0ms 1.5MB 347ms 0ms luajit 2.1.0-beta3
lua 1.lua timeout 0.0ms 1.4MB 4990ms 0ms lua 5.4.4