Python Interpreters Benchmarks
x64 ArchLinux : AMD® Ryzen 7 4700U®

 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
 Cython #5 0.040.04?524  20% 0% 0% 0% 100% 0% 0% 0%
 Python 3 0.090.06?573  71% 17% 17% 17% 20% 0% 20% 0%
 Python 2 #5 0.030.03?501  100% 0% 0% 0% 0% 0% 0% 33%
 Nuitka #5 0.040.05?524  17% 0% 0% 0% 0% 100% 0% 0%
 Python development version #5 0.030.03?524  0% 0% 100% 0% 25% 0% 0% 0%
 Nuitka 0.090.06?573  75% 17% 0% 0% 0% 0% 29% 17%
 Pyston 0.080.05?612  40% 50% 20% 0% 0% 40% 0% 25%
 Python development version 0.080.05?573  40% 20% 80% 0% 0% 20% 20% 0%
 PyPy 2 #5 0.100.11?501  100% 0% 0% 0% 0% 0% 0% 0%
 PyPy 3 #5 0.160.16?524  100% 6% 0% 0% 12% 0% 6% 0%
 Python 3 #5 0.040.04?524  0% 100% 0% 0% 25% 0% 0% 20%
 Python 2 0.060.13?612  0% 25% 0% 0% 0% 0% 0% 0%
 PyPy 3 0.540.371,020573  8% 8% 92% 13% 11% 5% 5% 13%
 Jython #5 5.592.473,484501  36% 22% 30% 40% 31% 31% 24% 14%
 PyPy 2 0.270.28450,056612  4% 64% 4% 10% 7% 7% 7% 4%
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