/mobile Handheld Friendly website
Ubuntu : Intel® Q6600® one core |
Each chart bar shows, for one unidentified benchmark, how much the fastest Perl program used compared to the fastest Lua program.
These are not the only compilers and interpreters. These are not the only programs that could be written. These are not the only tasks that could be solved. These are just 10 tiny examples.
Each table row shows, for one named benchmark, how much the fastest Perl program used compared to the fastest Lua program.
| Perl used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | |
| reverse-complement | 1/7 | 1/2 | 1/2 | |
| regex-dna | ± | 1/4 | ± | |
| spectral-norm | ± | 4× | ± | |
| k-nucleotide | ± | ± | 1/2 | |
| fannkuch-redux | ± | 2× | ± | |
| binary-trees | ± | 1/4 | ± | |
| fasta | 2× | 90× | ± | |
| pidigits | 2× | 2× | 1/2 | |
| n-body | 2× | 2× | ± | |
| mandelbrot | 4× | 2× | ± | |
| Perl used what fraction? used how many times more? | |||||||
|---|---|---|---|---|---|---|---|
| Time-used | |- | |--- | 25% | median | 75% | ---| | -| |
| (Elapsed secs) | 1/7 | 1/7 | ± | ± | 2× | 4× | 4× |
± read the measurements and then read the program source code.
These are not the only tasks that could be solved. These are just 10 tiny examples. These are not the only compilers and interpreters. These are not the only programs that could be written.
For each named benchmark, measurements of the fastest Perl program are shown for comparison against measurements of the fastest Lua program.
| Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ≈ CPU Load |
|---|---|---|---|---|---|
| reverse-complement | |||||
| Perl | 3.02 | 3.03 | 374,264 | 284 | 1% 0% 0% 100% |
| Lua | 22.49 | 22.51 | 724,576 | 555 | 0% 0% 0% 100% |
| regex-dna | |||||
| Perl | 30.88 | 30.92 | 140,068 | 527 | 0% 0% 0% 100% |
| Lua | 43.90 | 43.94 | 494,992 | 437 | 0% 0% 0% 100% |
| spectral-norm | |||||
| Perl | 216.22 | 216.31 | 3,640 | 333 | 0% 0% 0% 100% |
| Lua | 243.58 | 243.64 | 940 | 329 | 0% 0% 0% 100% |
| k-nucleotide | |||||
| Perl | 206.30 | 209.52 | 707,940 | 359 | 0% 0% 0% 100% |
| Lua | 220.11 | 220.81 | 707,928 | 613 | 0% 0% 0% 100% |
| fannkuch-redux | |||||
| Perl | 2,428.62 | 2,429.61 | 1,464 | 457 | 0% 0% 0% 100% |
| Lua | 2,131.11 | 2,131.55 | 820 | 462 | 0% 0% 0% 100% |
| binary-trees | |||||
| Perl | 602.63 | 603.14 | 289,324 | 448 | 0% 0% 0% 100% |
| Lua | 449.99 | 450.48 | 1,033,624 | 446 | 0% 14% 4% 100% |
| fasta | |||||
| Perl | 92.55 | 92.59 | 99,672 | 838 | 0% 0% 0% 100% |
| Lua | 49.71 | 49.72 | 1,112 | 1049 | 0% 1% 0% 100% |
| pidigits | |||||
| Perl | 5.23 | 5.24 | 3,296 | 261 | 1% 0% 0% 100% |
| Lua | 2.51 | 2.52 | 1,460 | 479 | 0% 1% 1% 100% |
| n-body | |||||
| Perl | 1,137.10 | 1,137.56 | 1,992 | 1401 | 0% 0% 0% 100% |
| Lua | 461.37 | 461.47 | 836 | 1193 | 0% 0% 0% 100% |
| mandelbrot | |||||
| Perl | 3,144.22 | 3,145.53 | 1,992 | 370 | 0% 1% 0% 100% |
| Lua | 786.43 | 786.61 | 1,044 | 353 | 0% 0% 0% 100% |
| fasta-redux | |||||
| Perl | 1.81 | 1.82 | 2,252 | 1112 | 1% 0% 0% 100% |
Remember - those are just the fastest Perl and Lua programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Perl.
Maybe one of those other Perl programs is fastest on a different OS/machine.
Remember - those are just the fastest Perl and Lua programs measured on this OS/machine. Check if there are faster implementations of these benchmark programs for other programming languages.
Maybe one of those other programs is fastest on a different OS/machine.
This is perl 5, version 18, subversion 0 (v5.18.0) built for i686-linux
Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_WRAP
PERL_PRESERVE_IVUV PERL_SAWAMPERSAND USE_LARGE_FILES
USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
Home Page: http://www.perl.org/
Download: http://www.cpan.org/src/5.0/