The Computer Language
Benchmarks Game

Perl programs versus Python 3

by benchmark task performance

spectral-norm
source secs KB gz cpu cpu load
Perl 153.68 5,152 340 153.63 1% 0% 1% 100%
Python 3 1,105.41 7,120 328 1,105.02 1% 0% 0% 100%
reverse-complement
source secs KB gz cpu cpu load
Perl 2.84 377,584 284 2.83 0% 1% 0% 100%
Python 3 5.54 262,360 800 5.53 1% 1% 1% 100%
k-nucleotide
source secs KB gz cpu cpu load
Perl 203.61 466,864 359 200.59 1% 1% 1% 100%
Python 3 317.42 219,028 1937 317.16 0% 1% 1% 100%
fannkuch-redux
source secs KB gz cpu cpu load
Perl 1,697.45 3,240 427 1,696.90 1% 1% 1% 100%
Python 3 2,464.08 44,564 944 2,463.20 1% 0% 0% 100%
n-body
source secs KB gz cpu cpu load
Perl 717.07 3,992 1401 716.84 1% 1% 1% 100%
Python 3 1,024.87 6,324 1228 1,024.54 1% 0% 1% 100%
fasta
source secs KB gz cpu cpu load
Perl 93.46 52,992 838 93.42 1% 1% 1% 100%
Python 3 122.25 6,508 977 122.19 1% 1% 1% 100%
binary-trees
source secs KB gz cpu cpu load
Perl 488.62 209,208 448 488.38 1% 1% 1% 100%
Python 3 497.80 482,656 596 497.40 1% 1% 1% 100%
regex-dna
source secs KB gz cpu cpu load
Perl 26.01 144,068 527 25.98 1% 1% 1% 100%
Python 3 25.11 249,088 478 24.98 1% 0% 1% 100%
pidigits
source secs KB gz cpu cpu load
Perl 0.29 548 261 0.29 10% 0% 0% 100%
  No program contribute your program
mandelbrot
source secs KB gz cpu cpu load
Perl   Failed
Python 3 5.31 44,896 686 5.28 1% 0% 1% 100%
Perl

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

Python 3

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