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.030.03?501  100% 0% 0% 0%
1.0Python 2 #5 0.030.03?501  0% 100% 0% 0%
1.3Python 2 #5 0.040.04?501  80% 0% 20% 0%
1.5Python development version #5 0.050.05?524  0% 0% 0% 100%
1.5Python development version #5 0.050.05?524  0% 100% 0% 0%
1.6Python development version #5 0.050.05?524  0% 0% 50% 67%
1.6Cython #5 0.050.05?524  0% 0% 0% 100%
1.6Cython #5 0.050.05?524  0% 0% 0% 100%
1.6Python 3 #5 0.050.05?524  0% 0% 100% 0%
1.6Cython #5 0.050.05?524  100% 17% 0% 17%
1.6Python 3 #5 0.050.05?524  0% 0% 100% 0%
1.7Python 3 #5 0.050.05?524  0% 0% 0% 100%
2.4Pyston #5 0.080.08?501  0% 0% 0% 100%
2.4Pyston #5 0.080.08?501  13% 0% 0% 100%
2.5Pyston #5 0.080.08?501  11% 13% 0% 89%
2.5PyPy 2 #5 0.080.08?501  13% 13% 22% 100%
2.6PyPy 2 #5 0.080.08?501  13% 11% 100% 11%
2.7PyPy 3 #5 0.080.09?524  0% 0% 100% 0%
2.7PyPy 3 #5 0.080.09?524  0% 0% 89% 0%
3.3PyPy 2 #5 0.100.10?501  17% 100% 9% 10%
3.5PyPy 3 #5 0.110.11?524  10% 17% 100% 0%
4.8Python 2 0.100.16?612  24% 13% 25% 27%
5.1Python 2 0.110.16?612  31% 6% 13% 6%
5.2Python 2 0.110.17?612  13% 35% 12% 19%
5.3Python development version 0.120.17?573  17% 18% 24% 29%
5.3Cython 0.110.17?573  6% 47% 11% 0%
5.4Python 3 0.120.17?573  47% 6% 6% 11%
5.7Python development version 0.130.18?573  11% 17% 50% 6%
5.7Python development version 0.130.18?573  12% 39% 11% 15%
5.7Nuitka 0.130.18?573  11% 39% 11% 17%
5.8Python 3 0.120.18?573  24% 22% 41% 16%
5.8Cython 0.130.19?573  11% 39% 12% 16%
6.0PyPy 2 0.190.19?612  11% 16% 55% 16%
6.1Python 3 0.140.19?573  25% 11% 14% 42%
6.1Cython 0.140.20?573  5% 50% 15% 10%
6.3Nuitka 0.140.20?573  45% 10% 25% 5%
6.4Nuitka 0.150.21?573  48% 14% 10% 20%
7.0PyPy 2 0.210.221,508612  23% 55% 19% 26%
7.1PyPy 2 0.220.231,472612  57% 17% 23% 14%
7.7Pyston 0.200.2594,660612  71% 21% 35% 27%
7.8Pyston 0.210.2594,996612  12% 23% 16% 60%
7.9PyPy 3 0.290.25197,760573  17% 16% 65% 22%
7.9PyPy 3 0.280.25197,148573  12% 73% 16% 16%
8.1PyPy 3 0.290.26197,656573  27% 19% 73% 26%
8.3Pyston 0.220.2694,520612  15% 62% 11% 12%
22IronPython #5 0.700.7046,832501  3% 29% 44% 32%
23IronPython #5 0.730.7344,844501  8% 3% 100% 5%
23IronPython #5 0.730.7345,660501  5% 100% 3% 6%
44Jython #5 3.401.41173,756501  50% 56% 52% 96%
44Jython #5 3.351.42176,284501  46% 92% 52% 57%
49Jython #5 3.701.57190,872501  69% 52% 72% 64%
missing benchmark programs
Shedskin No program
Numba No program
MicroPython No program
Grumpy 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