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

 regex-dna benchmark N=10,000

Each chart bar shows how many times slower, one ↓ regex-dna program was, compared to the fastest program.

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.

    sort sortsort
  ×   Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
1.0Python 2 #5 0.040.04?501  0% 0% 75% 0%
1.5Python development version #5 0.050.05?524  0% 0% 86% 0%
1.5Cython #5 0.050.05?524  0% 0% 100% 0%
1.5Python 3 #5 0.050.05?524  0% 0% 100% 0%
1.6Nuitka #5 0.060.06?524  0% 100% 0% 0%
2.0Python 3 0.110.07?573  14% 29% 86% 25%
2.1Python development version 0.110.08?573  29% 33% 29% 89%
2.2Nuitka 0.110.08?573  14% 71% 38% 0%
2.4Pyston #5 0.080.09?501  11% 0% 100% 0%
4.0Python 2 0.080.14?612  21% 13% 14% 31%
4.7PyPy 2 #5 0.150.17?501  6% 6% 6% 88%
6.3PyPy 3 #5 0.210.231,036524  5% 0% 4% 95%
7.4Pyston 0.230.272,460612  15% 61% 21% 8%
9.9PyPy 2 0.340.361,044612  59% 24% 11% 14%
14PyPy 3 0.540.5270,988573  15% 69% 27% 10%
74Jython #5 6.182.673,500501  57% 77% 51% 57%
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