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

 reverse-complement benchmark N=1,000

Each chart bar shows how many times slower, one ↓ reverse-complement 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
 Python 2 #3 0.01?431  
 Python 2 #4 0.010.01?432  0% 0% 0% 50%
 Python 2 #5 0.010.01?455  0% 0% 100% 0%
 Python development version #6 0.020.02?878  0% 100% 0% 0%
 Python development version #4 0.010.02?449  0% 0% 0% 100%
 Python development version #5 0.020.02?458  0% 0% 50% 0%
 Python 3 #6 0.020.02?878  0% 100% 0% 0%
 Cython #5 0.020.02?458  0% 100% 0% 0%
 Python 3 #4 0.020.02?449  33% 0% 0% 100%
 Python 3 #5 0.020.02?458  33% 0% 0% 100%
 Cython #4 0.020.02?449  100% 0% 0% 0%
 Python development version #3 0.020.03?410  0% 0% 0% 100%
 Python 3 #3 0.030.03?410  0% 0% 100% 0%
 Cython #3 0.030.03?410  0% 0% 0% 100%
 Nuitka #6 0.030.03?878  33% 100% 0% 0%
 Nuitka #4 0.030.03?449  80% 25% 0% 0%
 Nuitka #5 0.030.03?458  100% 0% 0% 0%
 Nuitka #3 0.030.03?410  0% 0% 100% 0%
 Pyston #5 0.060.06?455  17% 86% 0% 0%
 Pyston #4 0.060.06?432  100% 0% 0% 14%
 Pyston #3 0.060.06?431  100% 14% 0% 0%
 PyPy 2 #3 0.080.08?431  0% 0% 0% 100%
 PyPy 2 #5 0.080.09?455  18% 0% 89% 0%
 PyPy 2 #4 0.080.09?432  0% 0% 0% 89%
 PyPy 3 #6 0.080.10?878  10% 0% 0% 80%
 PyPy 3 #5 0.080.10?458  0% 10% 82% 0%
 PyPy 3 #4 0.080.10?449  88% 0% 0% 0%
 Graal #6 0.170.18?878  17% 94% 0% 6%
 PyPy 3 #3 0.160.18?410  89% 0% 0% 0%
 Graal #3 1.020.92456,500410  17% 15% 38% 55%
 Jython #4 5.462.493,440432  48% 66% 40% 74%
 Jython #5 5.702.593,560455  72% 58% 49% 49%
 Jython #3 5.922.623,440431  55% 57% 51% 73%
missing benchmark programs
IronPython No program
Shedskin No program
Numba No program
MicroPython No program
Grumpy No program
RustPython No program

 reverse-complement benchmark : Read DNA sequences - write their reverse-complement

diff program output for this 10KB input file (generated with the fasta program N = 1000) 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 the FASTA file generated by the fasta benchmark as input for this benchmark. Note: the file may include both lowercase and uppercase codes.

Each program should

We use these code complements:

code  meaning   complement
A    A                   T
C    C                   G
G    G                   C
T/U  T                   A
M    A or C              K
R    A or G              Y
W    A or T              W
S    C or G              S
Y    C or T              R
K    G or T              M
V    A or C or G         B
H    A or C or T         D
D    A or G or T         H
B    C or G or T         V
N    G or A or T or C    N

"by knowing the sequence of bases of one strand of DNA we immediately know the sequence of the DNA strand which will bind to it, this strand is called the reverse complement"
DNA: Structure and Function

Revised BSD license

  Home   Conclusions   License   Play