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 3 #5 0.060.06?524  0% 100% 0% 0%
1.0Python 3 #5 0.060.06?524  0% 83% 0% 0%
1.0Python 3 #5 0.060.06?524  57% 33% 0% 0%
1.0Cython #5 0.060.06?524  86% 0% 14% 0%
1.0Cython #5 0.060.06?524  0% 100% 0% 0%
1.0Cython #5 0.060.06?524  0% 100% 0% 0%
1.0Python development version #5 0.060.06?524  100% 14% 0% 0%
1.0Python development version #5 0.060.06?524  0% 0% 0% 100%
1.2Python development version #5 0.060.07?524  33% 67% 0% 13%
1.2Nuitka #5 0.070.07?524  88% 13% 0% 0%
1.2Nuitka #5 0.070.07?524  0% 0% 100% 0%
1.2Nuitka #5 0.070.07?524  0% 100% 0% 0%
1.7PyPy 3 #5 0.100.10?524  0% 0% 100% 0%
1.8PyPy 3 #5 0.100.11?524  100% 9% 0% 9%
1.8PyPy 3 #5 0.110.11?524  31% 60% 45% 8%
2.3Python 2 0.090.14?612  8% 8% 31% 23%
2.4Python 2 0.090.14?612  33% 25% 7% 13%
2.4Python 2 0.090.14?612  29% 14% 27% 7%
2.8Python 3 0.110.17?573  18% 18% 19% 41%
2.8Cython 0.120.17?573  12% 18% 53% 18%
2.8Python development version 0.120.17?573  17% 12% 41% 6%
2.9Python 3 0.120.17?573  18% 6% 41% 6%
2.9Python development version 0.120.17?573  44% 18% 6% 6%
2.9Python 3 0.120.17?573  31% 12% 11% 28%
2.9Cython 0.120.17?573  44% 13% 6% 12%
3.0Cython 0.120.18?573  28% 53% 16% 18%
3.0Nuitka 0.130.18?573  12% 16% 11% 44%
3.0PyPy 2 0.200.18?612  58% 26% 11% 22%
3.1PyPy 2 0.200.19?612  21% 22% 58% 17%
3.2PyPy 3 0.220.19?573  25% 21% 24% 60%
3.2PyPy 3 0.210.19?573  10% 21% 70% 20%
3.3Nuitka 0.150.20?573  33% 14% 10% 32%
3.4Nuitka 0.140.20?573  5% 47% 19% 10%
3.5PyPy 2 0.220.211,512612  15% 16% 64% 18%
3.7PyPy 3 0.230.221,432573  55% 27% 29% 14%
3.7Python development version 0.140.221,644573  43% 19% 9% 14%
5.0Pyston 0.280.3097,692612  16% 13% 67% 10%
5.2Pyston 0.290.3196,692612  10% 10% 72% 13%
5.2Pyston 0.290.3197,564612  10% 9% 13% 68%
missing benchmark programs
Jython No program
IronPython No program
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