The Computer Language
Benchmarks Game

Perl programs versus Python 3

by benchmark task performance

spectral-norm
secs KB gz cpu cpu load
Perl 49.43 9,540 551 190.77 96% 96% 99% 96%
Python 3 250.12 58,892 437 932.41 94% 95% 92% 93%
reverse-complement
secs KB gz cpu cpu load
Perl 2.74 375,760 284 2.74 1% 0% 0% 100%
Python 3 3.11 266,972 800 4.56 20% 99% 2% 29%
k-nucleotide
secs KB gz cpu cpu load
Perl 68.00 1,067,916 472 221.43 69% 68% 97% 92%
Python 3 76.50 162,004 1937 297.12 97% 97% 97% 99%
regex-dna
secs KB gz cpu cpu load
Perl 9.70 142,492 527 27.16 76% 75% 77% 54%
Python 3 10.58 266,312 478 23.44 49% 39% 68% 68%
fasta
secs KB gz cpu cpu load
Perl 105.83 52,320 838 105.80 1% 1% 0% 100%
Python 3 111.44 8,276 977 111.40 28% 0% 0% 73%
fannkuch-redux
secs KB gz cpu cpu load
Perl 577.70 10,976 565 2,297.64 100% 99% 100% 99%
Python 3 567.35 55,368 944 2,220.71 98% 96% 100% 99%
n-body
secs KB gz cpu cpu load
Perl 1,080.34 3,452 1401 1,080.05 1% 0% 100% 1%
Python 3 923.74 8,040 1181 923.49 44% 13% 0% 44%
binary-trees
secs KB gz cpu cpu load
Perl 238.05 1,708,468 706 791.14 92% 80% 89% 73%
Python 3 152.06 804,624 596 516.24 94% 92% 95% 91%
pidigits
secs KB gz cpu cpu load
Perl 3.48 4,392 261 3.48 1% 0% 100% 1%
Python 3 2.20 10,248 335 2.20 1% 0% 0% 100%
mandelbrot
secs KB gz cpu cpu load
Perl 769.00 43,400 579 3,071.86 100% 100% 100% 100%
Python 3 293.92 55,392 686 1,171.64 100% 100% 100% 100%
fasta-redux
secs KB gz cpu cpu load
Perl 0.80 3,456 854 0.79 4% 0% 0% 100%
  No program contribute your program
Perl

This is perl 5, version 20, subversion 2 (v5.20.2) built for x86_64-linux-thread-multi

Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS PERL_DONT_CREATE_GVSV PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF USE_REENTRANT_API

Python 3

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