The Computer Language
Benchmarks Game

Perl programs versus Python 3

by benchmark task performance

spectral-norm
source secs KB gz cpu cpu load
Perl 41.10 10,800 551 156.09 98% 94% 94% 94%
Python 3 250.12 58,892 437 932.41 94% 95% 92% 93%
n-body
source secs KB gz cpu cpu load
Perl 758.94 5,052 1401 758.74 1% 1% 100% 1%
Python 3 923.74 8,040 1181 923.49 44% 13% 0% 44%
k-nucleotide
source secs KB gz cpu cpu load
Perl 63.38 1,131,644 648 230.49 92% 90% 95% 89%
Python 3 76.50 162,004 1937 297.12 97% 97% 97% 99%
reverse-complement
source secs KB gz cpu cpu load
Perl 2.67 378,924 284 2.67 100% 0% 1% 0%
Python 3 3.11 266,972 800 4.56 20% 99% 2% 29%
fasta
source secs KB gz cpu cpu load
Perl 98.16 53,760 838 98.12 99% 1% 1% 1%
Python 3 111.44 8,276 977 111.40 28% 0% 0% 73%
regex-dna
source secs KB gz cpu cpu load
Perl 9.47 142,584 527 26.69 78% 73% 58% 75%
Python 3 10.58 266,312 478 23.44 49% 39% 68% 68%
fannkuch-redux
source secs KB gz cpu cpu load
Perl 525.84 12,832 565 2,063.84 98% 97% 100% 98%
Python 3 567.35 55,368 944 2,220.71 98% 96% 100% 99%
binary-trees
source secs KB gz cpu cpu load
Perl 213.12 1,385,276 706 716.32 97% 72% 96% 72%
Python 3 152.06 804,624 596 516.24 94% 92% 95% 91%
pidigits
source secs KB gz cpu cpu load
Perl 3.52 6,836 301 3.51 100% 0% 1% 1%
Python 3 2.20 10,248 335 2.20 1% 0% 0% 100%
mandelbrot
source secs KB gz cpu cpu load
Perl 772.49 45,540 579 3,085.63 100% 100% 100% 100%
Python 3 293.92 55,392 686 1,171.64 100% 100% 100% 100%
fasta-redux
source secs KB gz cpu cpu load
Perl 0.79 4,824 854 0.76 0% 0% 100% 3%
  No program contribute your program
Perl

This is perl 5, version 24, subversion 0 (v5.24.0) built for x86_64-linux-thread-multi

Python 3

Python 3.5.0 (default, Sep 14 2015, 08:50:08) [GCC 4.9.2] on linux