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/7 | 1/4 | ± | |
| spectral-norm | 1/6 | ± | ± | |
| mandelbrot | 1/6 | ± | ± | |
| fasta | 1/4 | 1/3 | ± | |
| nsieve | 1/3 | ± | ± | |
| n-body | 1/3 | 4 | ± | |
| partial-sums | 1/3 | 1/4 | ± | |
| fannkuch | 1/2 | ± | ± | |
| nsieve-bits | ± | 2 | 2 | |
| k-nucleotide | ± | ± | 2 | |
| sum-file | ± | ± | ± | |
| reverse-complement | 4 | ± | 2 | |
| pidigits | 25 | 1/2 | 3 | |
± look at the measurements
| Program & Logs | CPU secs | Memory KB | Size B | Elapsed secs | ~ CPU Load |
|---|---|---|---|---|---|
| recursive | |||||
| Lua | 129.12 | 2,840 | 330 | ||
| Perl #2 | 956.31 | 10,812 | 380 | ||
| spectral-norm | |||||
| Lua #3 | 698.85 | 18,520 | 328 | ||
| Perl #2 | 3,943.63 | 18,536 | 334 | ||
| mandelbrot | |||||
| Lua #2 | 69.06 | 3,332 | 367 | ||
| Perl #2 | 382.65 | 3,388 | 311 | ||
| fasta | |||||
| Lua #2 | 199.74 | 1,236 | 993 | ||
| Perl #4 | 850.67 | 3,156 | 934 | ||
| nsieve | |||||
| Lua #3 | 21.39 | 197,520 | 258 | ||
| Perl #2 | 60.70 | 242,316 | 290 | ||
| n-body | |||||
| Lua #2 | 561.39 | 8,296 | 1265 | ||
| Perl | 1,567.73 | 1,904 | 1140 | ||
| partial-sums | |||||
| Lua #2 | 5.50 | 868 | 437 | ||
| Perl #3 | 14.23 | 3,156 | 389 | ||
| fannkuch | |||||
| Lua #3 | 404.07 | 3,136 | 469 | ||
| Perl | 728.50 | 3,144 | 348 | ||
| nsieve-bits | |||||
| Lua | 94.57 | 7,072 | 426 | ||
| Perl | 93.55 | 4,024 | 253 | ||
| k-nucleotide | |||||
| Lua #2 | 29.73 | 36,680 | 613 | ||
| Perl #2 | 27.54 | 42,836 | 359 | ||
| sum-file | |||||
| Lua | 18.49 | 14,900 | 82 | ||
| Perl | 15.55 | 14,916 | 84 | ||
| reverse-complement | |||||
| Lua | 7.06 | 30,828 | 538 | ||
| Perl #2 | 1.99 | 38,356 | 298 | ||
| pidigits | |||||
| Lua #2 | 152.24 | 1,428 | 1005 | ||
| Perl #2 | 6.21 | 3,144 | 385 | ||
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