÷

 Are the Lua programs faster?

Do the Lua programs use optimized assembly code libraries? Are they small simple programs or very optimized programs? Do the Lua programs use a fraction of the time used by other programs or do they use several times more?


 Lua used what fraction? used how many times more? 
Programs Time Memory Code Reduced N
↓ 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±
↓ k-nucleotide±±
↓ sum-file±1/2±
↓ reverse-complement±
↓ pidigits11×1/2

± look at the measurements and then look at the programs.

 Are the Lua programs faster?

Program & Logs CPU secs Elapsed secs Memory KB Code B ~ CPU Load
 recursive 
Lua114.382,280330  
Perl898.7810,836380  
 spectral-norm 
Lua727.881,100328  
Perl4,089.082,468334  
 mandelbrot 
Lua83.21864367  
Perl403.201,724311  
 fasta 
Lua213.66904993  
Perl950.041,872934  
 n-body 
Lua586.858721265  
Perl1,697.591,9361140  
 partial-sums 
Lua7.45900437  
Perl17.411,476389  
 nsieve 
Lua10.9399,276258  
Perl25.45121,904290  
 fannkuch 
Lua508.06864469  
Perl855.721,492348  
 nsieve-bits 
Lua99.677,120426  
Perl100.184,004253  
 k-nucleotide 
Lua35.4338,248613  
Perl32.0742,816359  
 sum-file 
Lua21.8484082  
Perl18.171,46884  
 reverse-complement 
Lua8.8543,000538  
Perl1.9938,360298  
 pidigits 
Lua41.431,1481005  
Perl3.612,532385  
 binary-trees
   No program
 chameneos-redux
   No program
 regex-dna
   No program

 Lua : associative arrays for extensible embedded scripting 

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