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.0Cython #5 0.060.06?524  0% 100% 0% 0%
1.0Cython #5 0.060.06?524  0% 100% 0% 0%
1.0Cython #5 0.060.06?524  86% 0% 14% 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.0Python 3 #5 0.060.06?524  0% 0% 0% 100%
1.0Python 3 #5 0.060.06?524  14% 0% 0% 88%
1.1Python 3 #5 0.060.07?524  100% 0% 0% 0%
1.1Python development version #5 0.060.07?524  33% 67% 0% 13%
1.2Nuitka #5 0.070.08?524  0% 100% 0% 0%
1.2Nuitka #5 0.070.08?524  0% 0% 0% 100%
1.3Nuitka #5 0.080.08?524  0% 0% 100% 0%
2.2Python 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.8Cython 0.120.17?573  12% 18% 53% 18%
2.8Python development version 0.120.17?573  17% 12% 41% 6%
2.8Python development version 0.120.17?573  44% 18% 6% 6%
2.8Python 3 0.120.17?573  16% 6% 6% 50%
2.8Cython 0.120.17?573  44% 13% 6% 12%
2.9Python 3 0.120.18?573  13% 12% 44% 11%
2.9Cython 0.120.18?573  28% 53% 16% 18%
2.9Python 3 0.120.18?573  17% 56% 16% 16%
2.9PyPy 3 #5 0.180.18?524  5% 0% 0% 100%
3.0PyPy 3 #5 0.180.18?524  0% 100% 0% 0%
3.0Nuitka 0.140.18?573  15% 44% 11% 11%
3.0Nuitka 0.140.18?573  6% 44% 11% 11%
3.0PyPy 3 #5 0.180.19?524  0% 95% 0% 0%
3.2Nuitka 0.150.20?573  44% 16% 10% 10%
3.6Python development version 0.140.221,644573  43% 19% 9% 14%
4.9Pyston 0.280.3097,692612  16% 13% 67% 10%
5.1Pyston 0.290.3196,692612  10% 10% 72% 13%
5.1Pyston 0.290.3197,564612  10% 9% 13% 68%
5.5PyPy 2 0.360.331,572612  15% 12% 76% 12%
5.5PyPy 2 0.370.341,576612  12% 15% 12% 76%
5.8PyPy 2 0.370.351,568612  11% 41% 36% 29%
10PyPy 3 0.680.6271,268573  7% 5% 90% 5%
10PyPy 3 0.680.6271,312573  89% 8% 8% 11%
10PyPy 3 0.680.6371,400573  41% 11% 52% 6%
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