fasta benchmark ≈24MB N=2,500,000

Each chart bar shows how many times slower, one ↓ fasta 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.0PyPy 3 #4 1.941.9669,6601698  7% 4% 2% 96%
1.0PyPy 3 #4 1.971.9969,5521698  10% 99% 7% 7%
1.1PyPy 3 #4 2.052.0869,8561698  12% 7% 98% 6%
1.2PyPy 2 2.362.3880,124900  7% 3% 3% 99%
1.2PyPy 2 2.392.4180,124900  11% 3% 97% 4%
1.2PyPy 2 2.412.4480,120900  6% 6% 5% 96%
1.6PyPy 3 #2 3.023.0473,420889  16% 9% 15% 99%
1.6PyPy 3 #2 3.033.0673,136889  14% 99% 14% 11%
1.6PyPy 3 3.023.0673,088904  20% 10% 94% 9%
1.6PyPy 3 #2 3.063.0873,436889  14% 100% 10% 12%
1.6PyPy 3 3.093.1273,148904  17% 12% 99% 11%
1.6PyPy 3 3.143.1773,004904  21% 76% 42% 16%
1.7PyPy 3 #3 3.283.3070,1201647  11% 99% 7% 7%
1.7PyPy 3 #3 3.293.3270,4521647  10% 2% 97% 2%
1.8PyPy 3 #3 3.523.5570,2561647  19% 14% 38% 78%
2.1Python development version #5 8.824.1477,8922016  67% 71% 34% 45%
2.1Python development version #5 8.704.1872,6362016  65% 67% 46% 36%
2.2Python development version #5 8.784.2689,2882016  61% 72% 37% 43%
2.2PyPy 3 #5 7.024.3184,0242016  23% 81% 75% 24%
2.2PyPy 3 #5 6.914.3384,0282016  45% 47% 55% 45%
2.2PyPy 3 #5 7.074.3484,0322016  24% 64% 86% 33%
2.3Python 3 #5 9.564.5089,2322016  54% 75% 75% 48%
2.3Python 3 #5 9.474.5089,8002016  68% 59% 51% 68%
2.4Pyston 4.614.6132,988900  100% 0% 0% 0%
2.4Pyston 4.624.6333,028900  100% 0% 0% 0%
2.4Pyston 4.634.6332,960900  0% 26% 0% 74%
2.5Python 3 #5 10.174.9090,4482016  70% 79% 66% 51%
3.0Python development version #4 5.945.958,8361698  1% 1% 100% 1%
3.0Python development version #4 5.955.968,8841698  2% 2% 0% 100%
3.1Python development version #4 6.006.018,7681698  2% 100% 4% 1%
3.1Python 3 #4 6.126.138,8801698  11% 7% 11% 100%
3.2Python 3 #4 6.066.198,8761698  47% 5% 61% 6%
3.3Python 3 #4 6.116.408,9601698  92% 14% 5% 8%
3.3Python development version #3 6.446.458,8841647  1% 100% 1% 1%
3.3Python development version #3 6.466.478,8081647  2% 100% 1% 1%
3.3Python development version #3 6.536.548,8641647  3% 1% 100% 1%
3.3Python 2 6.556.5513,516900  2% 3% 2% 100%
3.4Python 3 #3 6.586.598,8081647  8% 5% 100% 6%
3.4Python 2 6.646.6513,444900  3% 100% 4% 4%
3.5Python 3 #3 6.816.828,8761647  12% 100% 10% 11%
3.5Python 2 6.866.8713,316900  15% 2% 88% 3%
3.6Nuitka 7.007.019,580904  22% 10% 87% 5%
3.6Python 3 #3 6.767.018,8281647  74% 7% 39% 8%
3.6Nuitka 7.097.109,988904  6% 15% 8% 100%
3.6Nuitka 7.097.129,796904  35% 14% 76% 10%
3.7Nuitka #2 7.317.329,824889  100% 9% 7% 4%
3.8Python development version 7.427.438,728904  3% 100% 1% 1%
3.8Python development version 7.517.538,776904  24% 2% 23% 57%
3.9Python development version 7.587.598,840904  2% 3% 100% 1%
3.9Nuitka #2 7.277.619,752889  4% 100% 2% 7%
3.9Python development version #2 7.607.618,832889  2% 1% 0% 100%
3.9Python development version #2 7.647.648,704889  2% 1% 100% 1%
3.9Nuitka #2 7.327.669,792889  4% 100% 3% 10%
4.0Python development version #2 7.757.778,828889  6% 2% 99% 2%
4.0Python 3 7.807.818,900904  14% 100% 10% 10%
4.0Python 3 7.777.838,756904  19% 10% 91% 6%
4.1Python 3 8.018.058,820904  22% 20% 15% 93%
4.1Python 3 #2 7.938.128,816889  53% 6% 57% 6%
4.2Python 3 #2 8.208.238,744889  15% 98% 14% 13%
4.3Python 3 #2 8.458.488,748889  24% 63% 19% 55%
5.1Graal #2 12.8510.02548,300889  29% 36% 18% 72%
5.3Graal 13.5110.41578,288904  22% 91% 39% 24%
5.5Graal #2 14.0210.68560,164889  22% 46% 45% 58%
5.6Graal #2 13.9110.95567,248889  18% 24% 96% 17%
5.7Graal 14.5311.12564,812904  26% 42% 91% 30%
5.8Graal 14.5011.38546,936904  23% 23% 44% 86%
11Jython 24.7620.91305,304900  41% 22% 27% 28%
11Jython 25.4021.24316,384900  31% 32% 36% 20%
11Jython 25.9521.93299,620900  21% 45% 29% 24%
11MicroPython 21.9421.964,660904  11% 0% 89% 0%
11MicroPython 21.9822.004,452904  0% 100% 0% 0%
12MicroPython 22.7122.744,516904  0% 0% 22% 78%
12MicroPython #2 23.0823.104,624889  0% 0% 100% 0%
12MicroPython #2 23.1123.134,536889  0% 1% 100% 0%
12MicroPython #2 23.8323.874,608889  0% 15% 0% 85%
missing benchmark programs
IronPython No program
Cython No program
Shedskin No program
Numba No program
Grumpy No program

 fasta benchmark : Generate and write random DNA sequences

diff program output N = 1000 with this 10KB 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.

Each program should

We'll use the generated FASTA file as input for other benchmarks (reverse-complement, k-nucleotide).

Random DNA sequences can be based on a variety of Random Models (554KB pdf). You can use Markov chains or independently distributed nucleotides to generate random DNA sequences online.

Revised BSD license

  Home   Conclusions   License   Play