x64 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/8 | 1/3 | ± | |
| fasta | 1/6 | 1/2 | ± | |
| spectral-norm | 1/6 | 1/7 | 1/3 | |
| n-body | 1/3 | 1/2 | ± | |
| binary-trees | 1/2 | 2× | ± | |
| pidigits | ± | 1/2 | ± | |
| fannkuch | ± | 1/2 | ± | |
| k-nucleotide | ± | ± | 2× | |
| reverse-complement | 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 | 578.91 | 578.88 | 1,324 | 353 | 0% 1% 0% 100% |
| Perl | 4,387.61 | 4,387.50 | 4,132 | 311 | 0% 0% 0% 100% |
| fasta | |||||
| Lua | 51.73 | 51.73 | 1,448 | 1039 | 0% 0% 0% 100% |
| Perl | 311.00 | 310.98 | 2,548 | 934 | 1% 1% 1% 100% |
| spectral-norm | |||||
| Lua | 190.54 | 190.54 | 1,492 | 329 | 0% 0% 0% 100% |
| Perl | 1,094.72 | 1,094.65 | 11,060 | 846 | 0% 0% 0% 100% |
| n-body | |||||
| Lua | 504.91 | 504.88 | 1,108 | 1197 | 1% 0% 0% 100% |
| Perl | 1,639.61 | 1,639.53 | 2,572 | 1140 | 0% 0% 0% 100% |
| binary-trees | |||||
| Lua | 658.80 | 658.79 | 1,688,960 | 443 | 0% 0% 1% 100% |
| Perl | 1,490.64 | 1,490.58 | 1,091,276 | 541 | 0% 0% 0% 100% |
| pidigits | |||||
| Lua | 5.14 | 5.14 | 1,728 | 477 | 0% 0% 0% 100% |
| Perl | 7.47 | 7.48 | 3,884 | 385 | 0% 0% 0% 100% |
| fannkuch | |||||
| Lua | 1,859.94 | 1,859.83 | 1,068 | 492 | 0% 0% 0% 100% |
| Perl | 2,660.57 | 2,660.43 | 2,060 | 391 | 0% 0% 0% 100% |
| k-nucleotide | |||||
| Lua | 221.06 | 221.05 | 600,988 | 601 | 0% 0% 0% 100% |
| Perl | 225.09 | 228.97 | 780,228 | 359 | 0% 0% 0% 100% |
| reverse-complement | |||||
| Lua | 19.16 | 19.16 | 497,128 | 538 | 0% 1% 0% 100% |
| Perl | 5.30 | 5.30 | 433,056 | 298 | 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.2 Copyright (C) 1994-2007 Lua.org, PUC-Rio
Home Page: http://www.lua.org/
Download: http://www.lua.org/download.html