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/81/5±
spectral-norm1/61/2±
mandelbrot1/51/2±
fasta1/41/2±
n-body1/31/2±
partial-sums1/21/2±
nsieve1/2±±
fannkuch1/21/2±
nsieve-bits±22
k-nucleotide±±2
sum-file±1/2±
reverse-complement4±2
pidigits111/23

± look at the measurements

 Lua comparison measurements

Program & Logs CPU secs Memory KB Size B Elapsed secs ~ CPU Load
 recursive 
Lua114.382,280330  
Perl #2898.7810,836380  
 spectral-norm 
Lua #3727.881,100328  
Perl #24,089.082,468334  
 mandelbrot 
Lua #283.21864367  
Perl #2403.201,724311  
 fasta 
Lua #2213.66904993  
Perl #4950.041,872934  
 n-body 
Lua #2586.858721265  
Perl1,697.591,9361140  
 partial-sums 
Lua #27.45900437  
Perl #317.411,476389  
 nsieve 
Lua #310.9399,276258  
Perl #225.45121,904290  
 fannkuch 
Lua #3508.06864469  
Perl855.721,492348  
 nsieve-bits 
Lua99.677,120426  
Perl100.184,004253  
 k-nucleotide 
Lua #235.4338,248613  
Perl #232.0742,816359  
 sum-file 
Lua21.8484082  
Perl18.171,46884  
 reverse-complement 
Lua8.8543,000538  
Perl #21.9938,360298  
 pidigits 
Lua #241.431,1481005  
Perl #23.612,532385  

 about Lua

online book "Programming in Lua" by Roberto Ierusalimschy

"the evolution of Lua" (pdf slides)

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

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

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

Revised BSD license