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

 reverse-complement benchmark N=1,000

Each chart bar shows how many times more Memory, one ↓ reverse-complement 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.020.02?458  0% 0% 0% 100% 0% 0% 0% 0%
 Python development version #6 0.010.01?878  0% 33% 0% 0% 0% 0% 100% 0%
 PyPy 2 #5 0.060.06?455  0% 25% 0% 0% 0% 0% 100% 0%
 RustPython #5 0.010.02?458  50% 0% 0% 0% 0% 0% 0% 0%
 Python development version #4 0.010.01?449  50% 50% 0% 100% 0% 0% 0% 50%
 Python 2 #5 0.010.01?455  100% 0% 0% 0% 0% 0% 0% 0%
 Python 3 #5 0.020.02?458  0% 100% 0% 0% 50% 100% 33% 0%
 Python development version #3 0.020.02?410  0% 0% 0% 67% 0% 0% 0% 0%
 Pyston #6 0.010.02?878  0% 33% 0% 0% 0% 0% 0% 67%
 Python 2 #4 0.01?432  
 PyPy 2 #4 0.060.08?432  0% 86% 0% 0% 11% 0% 0% 0%
 Cython #4 0.020.02?449  0% 0% 0% 100% 0% 0% 0% 0%
 Python 2 #3 0.010.01?431  100% 0% 33% 0% 0% 0% 0% 0%
 PyPy 2 #3 0.060.08?431  0% 0% 0% 0% 0% 0% 86% 0%
 Cython #3 0.020.02?410  0% 0% 0% 0% 0% 0% 0% 100%
 Python development version #5 0.010.01?458  0% 0% 50% 100% 0% 0% 0% 0%
 Python 3 #3 0.030.04?410  25% 50% 33% 50% 0% 33% 100% 0%
 PyPy 3 #6 0.060.07?878  0% 0% 0% 0% 0% 0% 0% 71%
 PyPy 3 #4 0.060.07?449  0% 0% 67% 14% 0% 0% 0% 0%
 Python 3 #6 0.020.02?878  0% 0% 100% 0% 100% 0% 0% 0%
 Python 3 #4 0.020.02?449  33% 100% 33% 50% 0% 0% 33% 100%
 PyPy 3 #5 0.060.07?458  0% 0% 12% 0% 86% 0% 0% 0%
 PyPy 3 #3 0.120.13?410  0% 0% 7% 0% 86% 0% 0% 0%
 Graal #5 0.500.281,008458  72% 24% 0% 28% 7% 29% 4% 25%
 Graal #4 0.490.281,012449  26% 0% 25% 0% 11% 7% 21% 89%
 Jython #3 4.281.943,360431  19% 35% 30% 31% 62% 10% 26% 13%
 Graal #6 0.520.293,412878  3% 28% 0% 25% 13% 29% 86% 4%
 Jython #5 4.252.033,544455  28% 27% 44% 4% 30% 24% 32% 22%
 Jython #4 4.202.003,600432  30% 17% 18% 14% 25% 28% 18% 60%
 Graal #3 1.840.73655,756410  56% 11% 0% 46% 92% 0% 51% 1%
missing benchmark programs
IronPython No program
Nuitka No program
Shedskin No program
Numba No program
MicroPython No program
Grumpy 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