Ubuntu : Intel® Q6600® quad-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/7 | 1/15 | ± | |
| fasta | 1/6 | 1/2 | ± | |
| n-body | 1/4 | 1/2 | ± | |
| binary-trees | 1/2 | ± | ± | |
| pidigits | 1/2 | 1/2 | ± | |
| spectral-norm | ± | 1/7 | 1/3 | |
| fannkuch | 2× | 1/7 | ± | |
| k-nucleotide | 2× | 1/4 | ± | |
| 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 | 668.32 | 192.83 | 20,004 | 607 | 81% 95% 84% 85% |
| Perl | 5,578.83 | 1,436.69 | 291,628 | 550 | 97% 97% 97% 97% |
| fasta | |||||
| Lua | 58.63 | 58.63 | 1,148 | 1039 | 0% 100% 0% 0% |
| Perl | 339.78 | 339.76 | 2,112 | 934 | 100% 0% 0% 0% |
| n-body | |||||
| Lua | 539.13 | 539.11 | 928 | 1197 | 1% 0% 0% 99% |
| Perl | 1,914.13 | 1,914.02 | 2,128 | 1140 | 0% 0% 0% 100% |
| binary-trees | |||||
| Lua | 523.78 | 523.76 | 815,616 | 443 | 47% 53% 0% 0% |
| Perl | 1,292.44 | 1,292.38 | 643,488 | 541 | 0% 0% 100% 0% |
| pidigits | |||||
| Lua | 3.88 | 3.88 | 1,772 | 479 | 100% 0% 0% 0% |
| Perl | 7.03 | 7.03 | 3,284 | 385 | 0% 0% 0% 100% |
| spectral-norm | |||||
| Lua | 262.23 | 262.22 | 1,132 | 329 | 0% 0% 100% 0% |
| Perl | 1,212.30 | 304.61 | 7,792 | 846 | 100% 100% 99% 100% |
| fannkuch | |||||
| Lua | 2,010.32 | 2,010.22 | 904 | 492 | 100% 0% 0% 0% |
| Perl | 4,206.05 | 1,062.52 | 6,020 | 471 | 99% 99% 99% 100% |
| k-nucleotide | |||||
| Lua | 216.59 | 216.58 | 619,440 | 601 | 100% 0% 0% 0% |
| Perl | 281.57 | 88.72 | 2,774,904 | 648 | 78% 73% 88% 83% |
| reverse-complement | |||||
| Lua | 21.90 | 21.90 | 517,760 | 538 | 100% 0% 0% 0% |
| Perl | 5.78 | 5.79 | 124,036 | 237 | 0% 0% 0% 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