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

 k-nucleotide benchmark N=10,000

Each chart bar shows how many times slower, one ↓ k-nucleotide 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.0Pyston #2 0.070.05?801  0% 20% 0% 100% 20% 0% 17% 20%
1.1Python development version #2 0.070.05?801  0% 0% 80% 0% 20% 20% 33% 0%
1.2Pyston #3 0.110.05?2011  40% 60% 0% 17% 33% 43% 0% 33%
1.2Pyston #8 0.120.05?777  43% 17% 17% 33% 33% 33% 0% 60%
1.3Python development version #3 0.120.06?2011  80% 17% 17% 29% 29% 40% 17% 33%
1.3Python development version #8 0.120.06?777  67% 20% 20% 17% 29% 33% 20% 43%
1.3Nuitka #2 0.080.06?801  14% 71% 14% 17% 0% 17% 17% 0%
1.3Python development version 0.060.06?594  25% 14% 14% 14% 0% 100% 14% 0%
1.3Python 3 #2 0.080.06?801  57% 50% 14% 0% 25% 17% 29% 17%
1.5Nuitka #3 0.120.07?2011  29% 17% 0% 0% 86% 14% 14% 29%
1.5Python 3 #8 0.140.07?777  14% 0% 0% 71% 29% 17% 17% 29%
1.5Nuitka #8 0.130.07?777  33% 14% 14% 14% 86% 17% 17% 0%
1.5Python 3 #3 0.130.07?2011  0% 0% 25% 14% 17% 29% 86% 17%
1.5Cython 0.070.07?618  100% 22% 0% 0% 0% 0% 0% 0%
1.6Python 2 0.070.07?593  100% 0% 0% 0% 0% 0% 0% 0%
1.7Nuitka 0.080.08?594  0% 89% 0% 0% 0% 0% 0% 0%
1.7Python 3 0.080.08?594  100% 0% 11% 20% 22% 0% 0% 12%
2.0PyPy 2 0.090.09?593  22% 18% 0% 100% 0% 0% 0% 0%
2.2PyPy 3 0.100.10?594  0% 100% 0% 0% 0% 9% 0% 0%
2.8Python 2 #8 0.130.13?777  8% 21% 8% 0% 7% 21% 38% 8%
2.8Python 2 #2 0.060.13?801  0% 23% 0% 13% 0% 8% 0% 0%
6.2PyPy 2 #8 0.290.28492,196777  7% 13% 4% 10% 4% 10% 71% 11%
6.2PyPy 2 #2 0.230.28526,016801  4% 0% 66% 4% 3% 3% 7% 3%
7.3PyPy 3 #2 0.380.342,348801  11% 3% 0% 97% 6% 6% 3% 9%
7.8PyPy 3 #3 0.460.361,8562011  3% 8% 91% 8% 8% 6% 8% 11%
8.0PyPy 3 #8 0.450.371,016777  0% 92% 5% 8% 3% 8% 8% 3%
14RustPython 0.640.6415,724594  3% 2% 100% 0% 0% 0% 2% 2%
18Graal 2.140.81612,300594  30% 4% 63% 58% 44% 52% 25% 6%
47Jython 4.892.153,448593  34% 52% 20% 30% 23% 31% 21% 16%
missing benchmark programs
IronPython No program
Shedskin No program
Numba No program
MicroPython No program
Grumpy No program

 k-nucleotide benchmark : Hashtable update and k-nucleotide strings

diff program output for this 250KB input file (generated with the fasta program N = 25000) 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

In practice, less brute-force would be used to calculate k-nucleotide frequencies, for example Virus Classification using k-nucleotide Frequencies and A Fast Algorithm for the Exhaustive Analysis of 12-Nucleotide-Long DNA Sequences. Applications to Human Genomics (105KB pdf).

Revised BSD license

  Home   Conclusions   License   Play