/mobile Handheld Friendly website
x64 Ubuntu : Intel® Q6600® quad-core |
This chart shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.
Each chart bar shows, for one unidentified benchmark, how much the fastest Perl program used compared to the fastest Java 7 -server program.
Look at speed another way - look at a box plot of Time-used data.
This table shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.
Each table row shows, for one named benchmark, how much the fastest Perl program used compared to the fastest Java 7 -server program.
| Perl used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | |
| regex-dna | 2× | 1/5 | 1/3 | |
| reverse-complement | 2× | ± | 1/6 | |
| k-nucleotide | 9× | 4× | 1/4 | |
| fasta | 55× | 1/8 | 1/2 | |
| spectral-norm | 57× | 1/2 | ± | |
| n-body | 63× | 1/7 | ± | |
| binary-trees | 71× | ± | 1/2 | |
| mandelbrot | 112× | 2× | ± | |
| fannkuch-redux | 208× | 1/10 | 1/3 | |
| Perl used what fraction? used how many times more? | |||||||
|---|---|---|---|---|---|---|---|
| Time-used | |- | |--- | 25% | median | 75% | ---| | -| |
| (Elapsed secs) | 2× | 2× | 9× | 57× | 71× | 163× | 208× |
± read the measurements and then read the program source code.
This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ≈ CPU Load ~ speed and size.
For each named benchmark, measurements of the fastest Perl program are shown for comparison against measurements of the fastest Java 7 -server program.
| Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ≈ CPU Load |
|---|---|---|---|---|---|
| regex-dna | |||||
| Perl | 31.08 | 10.40 | 139,676 | 527 | 69% 71% 71% 90% |
| Java 7 -server | 23.36 | 6.63 | 636,924 | 1410 | 92% 87% 88% 86% |
| reverse-complement | |||||
| Perl | 2.88 | 2.89 | 374,612 | 284 | 0% 0% 0% 100% |
| Java 7 -server | 2.74 | 1.31 | 298,220 | 1661 | 45% 54% 37% 79% |
| k-nucleotide | |||||
| Perl | 250.41 | 75.64 | 1,921,476 | 648 | 80% 82% 83% 90% |
| Java 7 -server | 29.23 | 8.03 | 463,516 | 2431 | 90% 98% 89% 89% |
| fasta | |||||
| Perl | 281.22 | 281.35 | 2,356 | 934 | 0% 0% 1% 100% |
| Java 7 -server | 5.22 | 5.14 | 18,176 | 1507 | 0% 100% 1% 1% |
| spectral-norm | |||||
| Perl | 1,011.88 | 254.15 | 9,672 | 846 | 100% 100% 100% 100% |
| Java 7 -server | 17.62 | 4.50 | 17,716 | 950 | 98% 99% 98% 98% |
| n-body | |||||
| Perl | 1,418.35 | 1,418.84 | 2,356 | 1140 | 0% 0% 100% 0% |
| Java 7 -server | 22.52 | 22.50 | 16,920 | 1424 | 0% 100% 0% 0% |
| binary-trees | |||||
| Perl | 666.30 | 666.87 | 480,460 | 448 | 0% 0% 0% 100% |
| Java 7 -server | 22.86 | 9.41 | 516,144 | 1007 | 83% 41% 64% 57% |
| mandelbrot | |||||
| Perl | 2,711.31 | 681.93 | 150,300 | 592 | 100% 99% 100% 99% |
| Java 7 -server | 23.97 | 6.10 | 69,360 | 796 | 98% 99% 98% 98% |
| fannkuch-redux | |||||
| Perl | 2,802.73 | 2,803.75 | 1,832 | 457 | 88% 12% 0% 0% |
| Java 7 -server | 53.19 | 13.47 | 17,416 | 1282 | 98% 100% 98% 100% |
| pidigits | |||||
| Perl | |||||
| Java 7 -server | 1.58 | 0.54 | 33,628 | 1826 | 69% 79% 75% 81% |
| fasta-redux | |||||
| Java 7 -server | 0.13 | 0.11 | ? | 1443 | 0% 92% 9% 11% |
Remember - those are just the fastest Perl and Java 7 -server 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 Java 7 -server 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 14, subversion 1 (v5.14.1) built for x86_64-linux-thread-multi
Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP PERL_PRESERVE_IVUV USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF USE_REENTRANT_API
optimize='-O2'
Compare to built for x86_64-linux
Home Page: http://www.perl.org/
Download: http://www.cpan.org/src/5.0/