OUT-OF-DATE! Read http://shootout.alioth.debian.org/ |
This chart shows 3 comparisons - Time-used, Memory-used and Code-used.
Each chart bar shows, for one unidentified benchmark, how much the fastest Lua program used compared to the fastest Perl program.
This table shows 3 comparisons - Time-used, Memory-used and Code-used.
Each table row shows, for one named benchmark, how much the fastest Lua program used compared to the fastest Perl program.
| Lua used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | Reduced N |
| 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× | |
± read the measurements and then read the program source code.
This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ~ CPU Load.
For each named benchmark, measurements of the fastest Lua program are shown for comparison against measurements of the fastest Perl program.
| Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ~ CPU Load |
|---|---|---|---|---|---|
| recursive | |||||
| Lua | 129.12 | 2,840 | 330 | ||
| Perl | 956.31 | 10,812 | 380 | ||
| spectral-norm | |||||
| Lua | 698.85 | 18,520 | 328 | ||
| Perl | 3,943.63 | 18,536 | 334 | ||
| mandelbrot | |||||
| Lua | 69.06 | 3,332 | 367 | ||
| Perl | 382.65 | 3,388 | 311 | ||
| fasta | |||||
| Lua | 199.74 | 1,236 | 993 | ||
| Perl | 850.67 | 3,156 | 934 | ||
| nsieve | |||||
| Lua | 21.39 | 197,520 | 258 | ||
| Perl | 60.70 | 242,316 | 290 | ||
| n-body | |||||
| Lua | 561.39 | 8,296 | 1265 | ||
| Perl | 1,567.73 | 1,904 | 1140 | ||
| partial-sums | |||||
| Lua | 5.50 | 868 | 437 | ||
| Perl | 14.23 | 3,156 | 389 | ||
| fannkuch | |||||
| Lua | 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 | 29.73 | 36,680 | 613 | ||
| Perl | 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 | 1.99 | 38,356 | 298 | ||
| pidigits | |||||
| Lua | 152.24 | 1,428 | 1005 | ||
| Perl | 6.21 | 3,144 | 385 | ||
| binary-trees | |||||
| chameneos-redux | |||||
| regex-dna | |||||
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