PLEASE CHOOSE THE UP-TO-DATE MEASUREMENTS INSTEAD OF THESE! (Read the FAQ!) |
Compare the performance of Lua programs against some other language implementation.
For more information about the Lua implementation we measured see ↓ about Lua.
| 1/2 1/3 1/4 Lua is better | ||||
|---|---|---|---|---|
| Programs | Time | Memory Use | Source Size | Reduced N |
| binary-trees | ||||
| chameneos-redux | ||||
| regex-dna | ||||
| recursive | 1/8 | 1/5 | ± | |
| spectral-norm | 1/6 | 1/2 | ± | |
| mandelbrot | 1/5 | 1/2 | ± | |
| fasta | 1/4 | 1/2 | ± | |
| n-body | 1/3 | 1/2 | ± | |
| partial-sums | 1/2 | 1/2 | ± | |
| nsieve | 1/2 | ± | ± | |
| fannkuch | 1/2 | 1/2 | ± | |
| nsieve-bits | ± | 2 | 2 | |
| k-nucleotide | ± | ± | 2 | |
| sum-file | ± | 1/2 | ± | |
| reverse-complement | 4 | ± | 2 | |
| pidigits | 11 | 1/2 | 3 | |
± look at the measurements
| Program & Logs | CPU secs | Memory KB | Size B | Elapsed secs | ~ CPU Load |
|---|---|---|---|---|---|
| recursive | |||||
| Lua | 114.38 | 2,280 | 330 | ||
| Perl #2 | 898.78 | 10,836 | 380 | ||
| spectral-norm | |||||
| Lua #3 | 727.88 | 1,100 | 328 | ||
| Perl #2 | 4,089.08 | 2,468 | 334 | ||
| mandelbrot | |||||
| Lua #2 | 83.21 | 864 | 367 | ||
| Perl #2 | 403.20 | 1,724 | 311 | ||
| fasta | |||||
| Lua #2 | 213.66 | 904 | 993 | ||
| Perl #4 | 950.04 | 1,872 | 934 | ||
| n-body | |||||
| Lua #2 | 586.85 | 872 | 1265 | ||
| Perl | 1,697.59 | 1,936 | 1140 | ||
| partial-sums | |||||
| Lua #2 | 7.45 | 900 | 437 | ||
| Perl #3 | 17.41 | 1,476 | 389 | ||
| nsieve | |||||
| Lua #3 | 10.93 | 99,276 | 258 | ||
| Perl #2 | 25.45 | 121,904 | 290 | ||
| fannkuch | |||||
| Lua #3 | 508.06 | 864 | 469 | ||
| Perl | 855.72 | 1,492 | 348 | ||
| nsieve-bits | |||||
| Lua | 99.67 | 7,120 | 426 | ||
| Perl | 100.18 | 4,004 | 253 | ||
| k-nucleotide | |||||
| Lua #2 | 35.43 | 38,248 | 613 | ||
| Perl #2 | 32.07 | 42,816 | 359 | ||
| sum-file | |||||
| Lua | 21.84 | 840 | 82 | ||
| Perl | 18.17 | 1,468 | 84 | ||
| reverse-complement | |||||
| Lua | 8.85 | 43,000 | 538 | ||
| Perl #2 | 1.99 | 38,360 | 298 | ||
| pidigits | |||||
| Lua #2 | 41.43 | 1,148 | 1005 | ||
| Perl #2 | 3.61 | 2,532 | 385 | ||
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