The Computer Language
Benchmarks Game

Perl programs versus Python 3

by benchmark task performance

spectral-norm
secs KB gz cpu cpu load
Perl 54.41 6,644 551 211.80 97% 98% 96% 98%
Python 3 282.36 47,144 437 1,119.57 99% 99% 99% 99%
reverse-complement
secs KB gz cpu cpu load
Perl 2.94 375,804 284 2.93 1% 1% 0% 100%
Python 3 3.92 262,588 800 5.69 24% 6% 45% 73%
k-nucleotide
secs KB gz cpu cpu load
Perl 65.84 1,012,832 648 240.84 90% 93% 93% 91%
Python 3 83.25 163,092 1937 320.96 98% 96% 96% 97%
fannkuch-redux
secs KB gz cpu cpu load
Perl 598.62 12,380 565 2,380.95 100% 100% 99% 99%
Python 3 638.70 44,820 944 2,512.66 96% 99% 99% 100%
regex-dna
secs KB gz cpu cpu load
Perl 10.63 142,432 527 27.62 77% 61% 80% 44%
Python 3 11.15 252,032 478 24.90 48% 40% 47% 89%
n-body
secs KB gz cpu cpu load
Perl 1,230.00 2,552 1401 1,229.65 1% 0% 0% 100%
Python 3 1,005.92 6,444 1228 1,005.65 100% 1% 0% 1%
pidigits
secs KB gz cpu cpu load
Perl 4.50 3,684 261 4.49 1% 0% 1% 100%
Python 3 2.74 8,432 335 2.74 100% 1% 1% 1%
binary-trees
secs KB gz cpu cpu load
Perl 268.79 1,018,156 706 895.62 90% 95% 73% 76%
Python 3 136.58 478,168 596 510.34 93% 96% 96% 93%
fasta
secs KB gz cpu cpu load
Perl 113.72 51,420 838 113.68 1% 0% 0% 100%
Python 3 56.91 2,483,536 1933 149.79 62% 77% 52% 78%
mandelbrot
secs KB gz cpu cpu load
Perl 931.48 44,184 579 3,720.50 100% 100% 100% 100%
Python 3 306.32 41,240 686 1,222.44 100% 100% 100% 100%
fasta-redux
secs KB gz cpu cpu load
Perl 0.92 2,704 854 0.90 6% 1% 2% 100%
  No program contribute your program
Perl

This is perl 5, version 20, subversion 2 (v5.20.2) built for i686-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_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, 09:36:50) [GCC 4.9.2] on linux