Python Interpreters Benchmarks
x64 ArchLinux : Intel® i5-7200U®

 regex-dna benchmark N=10,000

Each chart bar shows how many times more Memory, one ↓ regex-dna program used, compared to the program that used least Memory.

These are not the only programs that could be written. These are not the only compilers and interpreters. These are not the only programming languages.

Column × shows how many times more each program used compared to the benchmark program that used least.

    sortsort sort
  ×   Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 Python 3 0.110.07?573  14% 29% 86% 25%
 Python development version 0.110.08?573  29% 33% 29% 89%
 Python 2 0.080.14?612  21% 13% 14% 31%
 Python 2 #5 0.040.04?501  0% 0% 75% 0%
 Pyston #5 0.080.09?501  11% 0% 100% 0%
 Cython #5 0.050.05?524  0% 0% 100% 0%
 PyPy 2 #5 0.150.17?501  6% 6% 6% 88%
 Nuitka 0.110.08?573  14% 71% 38% 0%
 Python 3 #5 0.050.05?524  0% 0% 100% 0%
 Python development version #5 0.050.05?524  0% 0% 86% 0%
 Nuitka #5 0.060.06?524  0% 100% 0% 0%
 PyPy 3 #5 0.210.231,036524  5% 0% 4% 95%
 PyPy 2 0.340.361,044612  59% 24% 11% 14%
 Pyston 0.230.272,460612  15% 61% 21% 8%
 Jython #5 6.182.673,500501  57% 77% 51% 57%
 PyPy 3 0.540.5270,988573  15% 69% 27% 10%
missing benchmark programs
IronPython No program
Shedskin No program
Numba No program
MicroPython No program
Grumpy No program
Graal No program
RustPython No program

 regex-dna benchmark : Match DNA 8-mers and substitute nucleotides for IUB codes

diff program output for this 100KB input file (generated with the fasta program N = 10000) with this output file to check your program is correct before contributing.

We are trying to show the performance of various programming language implementations - so we ask that contributed programs not only give the correct result, but also use the same algorithm to calculate that result.

We use FASTA files generated by the fasta benchmark as input for this benchmark. Note: the file may include both lowercase and uppercase codes.

Each program should

Revised BSD license

  Home   Conclusions   License   Play