Compare the performance of Lua programs against some other language implementation.

For more information about the Lua implementation we measured see ↓ about Lua.

Compare to:

 Lua comparison summary


1/2 1/3 1/4 … Lua is better
Programs Time Memory Use Source Size Reduced N
chameneos-reduxNo program
regex-dnaNo program
mandelbrot1/71/15±
fasta1/61/2±
spectral-norm1/61/2±
n-body1/31/2±
binary-trees1/3±±
fannkuch1/21/2±
reverse-complement1/2±2
pidigits1/21/2±
k-nucleotide±±2

± look at the measurements

 Lua comparison measurements

Program & Logs CPU secs Memory KB Size B Elapsed secs ~ CPU Load
 mandelbrot 
Lua #6754.5619,996607211.32  100% 80% 96% 81%
Perl5,489.72300,1605501,432.43  96% 95% 96% 95%
 fasta 
Lua62.041,156103962.04  0% 100% 0% 0%
Perl #4347.132,128934347.13  0% 100% 0% 0%
 spectral-norm 
Lua262.651,132329262.63  0% 0% 0% 100%
Perl1,446.022,7963551,445.94  87% 0% 13% 0%
 n-body 
Lua #2563.588961265563.55  0% 0% 0% 100%
Perl1,930.062,14011401,929.94  0% 100% 0% 0%
 binary-trees 
Lua529.96815,608443529.94  100% 0% 0% 0%
Perl #21,343.31643,5045411,343.26  100% 0% 0% 0%
 fannkuch 
Lua2,096.578764922,096.44  0% 100% 0% 0%
Perl4,358.001,6683484,357.75  0% 0% 100% 0%
 reverse-complement 
Lua22.31532,13253822.31  0% 99% 0% 0%
Perl #238.22422,91229838.22  0% 99% 0% 0%
 pidigits 
Lua #55.011,7284795.01  0% 0% 0% 100%
Perl #28.083,3043858.08  100% 0% 0% 0%
 k-nucleotide 
Lua231.08534,340601231.08  0% 0% 0% 100%
Perl #2246.72709,252359249.79  1% 1% 98% 0%

 about Lua

online book "Programming in Lua" by Roberto Ierusalimschy

"the evolution of Lua" (pdf slides)

Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio

Home Page: http://www.lua.org/

Download: http://www.lua.org/download.html

Revised BSD license