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
binary-treesNo program
chameneos-reduxNo program
regex-dnaNo program
recursive1/71/4±
spectral-norm1/6±±
mandelbrot1/6±±
fasta1/41/3±
nsieve1/3±±
n-body1/34±
partial-sums1/31/4±
fannkuch1/2±±
nsieve-bits±22
k-nucleotide±±2
sum-file±±±
reverse-complement4±2
pidigits251/23

± look at the measurements

 Lua comparison measurements

Program & Logs CPU secs Memory KB Size B Elapsed secs ~ CPU Load
 recursive 
Lua129.122,840330  
Perl #2956.3110,812380  
 spectral-norm 
Lua #3698.8518,520328  
Perl #23,943.6318,536334  
 mandelbrot 
Lua #269.063,332367  
Perl #2382.653,388311  
 fasta 
Lua #2199.741,236993  
Perl #4850.673,156934  
 nsieve 
Lua #321.39197,520258  
Perl #260.70242,316290  
 n-body 
Lua #2561.398,2961265  
Perl1,567.731,9041140  
 partial-sums 
Lua #25.50868437  
Perl #314.233,156389  
 fannkuch 
Lua #3404.073,136469  
Perl728.503,144348  
 nsieve-bits 
Lua94.577,072426  
Perl93.554,024253  
 k-nucleotide 
Lua #229.7336,680613  
Perl #227.5442,836359  
 sum-file 
Lua18.4914,90082  
Perl15.5514,91684  
 reverse-complement 
Lua7.0630,828538  
Perl #21.9938,356298  
 pidigits 
Lua #2152.241,4281005  
Perl #26.213,144385  

 about Lua

online book "Programming in Lua" by Roberto Ierusalimschy

"the evolution of Lua" (pdf slides)

Lua 5.1.3

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

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

Revised BSD license