x64 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/21 | 5× | 2× | |
| fasta | 1/6 | 1/2 | ± | |
| n-body | 1/3 | 1/2 | ± | |
| binary-trees | 1/2 | 2× | ± | |
| spectral-norm | ± | 1/7 | 1/3 | |
| pidigits | ± | 1/2 | ± | |
| fannkuch | 2× | 1/8 | ± | |
| k-nucleotide | 3× | 1/4 | ± | |
| 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 | 739.60 | 199.78 | 20,712 | 607 | 83% 100% 87% 100% |
| Perl | 4,226.42 | 4,226.21 | 4,136 | 311 | 0% 0% 100% 0% |
| fasta | |||||
| Lua | 51.72 | 51.72 | 1,448 | 1039 | 0% 0% 100% 0% |
| Perl | 314.46 | 314.46 | 2,548 | 934 | 100% 0% 0% 0% |
| n-body | |||||
| Lua | 506.52 | 506.49 | 1,096 | 1265 | 0% 0% 0% 100% |
| Perl | 1,665.13 | 1,665.14 | 2,568 | 1140 | 0% 0% 100% 0% |
| binary-trees | |||||
| Lua | 657.04 | 657.00 | 1,688,964 | 443 | 0% 1% 0% 100% |
| Perl | 1,276.89 | 1,276.85 | 1,091,276 | 541 | 0% 0% 100% 0% |
| spectral-norm | |||||
| Lua | 190.68 | 190.70 | 1,492 | 329 | 61% 38% 0% 0% |
| Perl | 1,137.10 | 285.55 | 10,976 | 846 | 100% 100% 100% 100% |
| pidigits | |||||
| Lua | 5.14 | 5.15 | 1,728 | 477 | 0% 0% 100% 0% |
| Perl | 7.46 | 7.46 | 3,868 | 385 | 100% 0% 0% 0% |
| fannkuch | |||||
| Lua | 1,858.61 | 1,858.51 | 1,076 | 492 | 0% 0% 0% 100% |
| Perl | 3,749.89 | 942.90 | 8,808 | 471 | 99% 100% 100% 100% |
| k-nucleotide | |||||
| Lua | 204.16 | 204.16 | 670,800 | 613 | 0% 0% 0% 100% |
| Perl | 256.15 | 78.58 | 2,883,780 | 648 | 81% 71% 88% 84% |
| reverse-complement | |||||
| Lua | 19.17 | 19.17 | 538,784 | 538 | 0% 0% 100% 0% |
| Perl | 5.25 | 5.25 | 431,496 | 298 | 100% 0% 0% 0% |
| 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