Ubuntu : Intel® Q6600® one core |
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 |
| mandelbrot | 1/10 | 1/3 | ± | |
| fasta | 1/6 | 1/2 | ± | |
| spectral-norm | 1/5 | 1/7 | 1/3 | |
| n-body | 1/4 | 1/2 | ± | |
| binary-trees | 1/3 | ± | ± | |
| pidigits | 1/2 | 1/2 | ± | |
| fannkuch | 1/2 | 1/2 | ± | |
| k-nucleotide | ± | ± | 2× | |
| reverse-complement | 4× | 4× | 2× | |
± 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 |
|---|---|---|---|---|---|
| mandelbrot | |||||
| Lua | 512.60 | 512.57 | 1,072 | 353 | 0% 0% 0% 100% |
| Perl | 5,268.13 | 5,267.81 | 3,032 | 311 | 0% 0% 0% 100% |
| fasta | |||||
| Lua | 58.65 | 58.65 | 1,148 | 1039 | 0% 0% 0% 100% |
| Perl | 349.59 | 349.57 | 2,112 | 934 | 0% 1% 0% 100% |
| spectral-norm | |||||
| Lua | 262.93 | 262.91 | 1,136 | 329 | 0% 0% 0% 100% |
| Perl | 1,184.33 | 1,184.26 | 7,792 | 846 | 0% 0% 0% 100% |
| n-body | |||||
| Lua | 537.00 | 536.97 | 928 | 1197 | 0% 0% 0% 100% |
| Perl | 1,911.92 | 1,911.80 | 2,128 | 1140 | 0% 0% 0% 100% |
| binary-trees | |||||
| Lua | 517.99 | 517.96 | 815,620 | 443 | 0% 0% 0% 100% |
| Perl | 1,297.73 | 1,297.68 | 643,488 | 541 | 0% 0% 0% 100% |
| pidigits | |||||
| Lua | 3.87 | 3.87 | 1,776 | 479 | 0% 0% 0% 100% |
| Perl | 7.04 | 7.05 | 3,284 | 385 | 0% 0% 0% 100% |
| fannkuch | |||||
| Lua | 2,014.12 | 2,013.99 | 904 | 492 | 0% 0% 0% 100% |
| Perl | 3,160.50 | 3,160.31 | 1,692 | 391 | 0% 0% 0% 100% |
| k-nucleotide | |||||
| Lua | 217.60 | 217.59 | 675,524 | 601 | 0% 0% 0% 100% |
| Perl | 249.61 | 252.46 | 709,264 | 359 | 0% 0% 0% 100% |
| reverse-complement | |||||
| Lua | 21.58 | 21.58 | 532,160 | 538 | 0% 0% 0% 100% |
| Perl | 5.80 | 5.80 | 124,036 | 237 | 0% 0% 1% 100% |
| chameneos-redux | |||||
| regex-dna | |||||
online book "Programming in Lua" by Roberto Ierusalimschy
"the evolution of Lua" (pdf slides)
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
Home Page: http://www.lua.org/
Download: http://www.lua.org/download.html