Commit 806920d4 authored by tibbe's avatar tibbe

Add the k-nucleotide shootout benchmark

parent 7c56e6fd
...@@ -58,6 +58,11 @@ shootout/fasta/fasta-c ...@@ -58,6 +58,11 @@ shootout/fasta/fasta-c
shootout/fasta/fasta.faststdout shootout/fasta/fasta.faststdout
shootout/fasta/fasta.slowstdout shootout/fasta/fasta.slowstdout
shootout/fasta/fasta.stdout shootout/fasta/fasta.stdout
shootout/k-nucleotide/fasta-c
shootout/k-nucleotide/k-nucleotide
shootout/k-nucleotide/knucleotide-input250000.txt
shootout/k-nucleotide/knucleotide-input2500000.txt
shootout/k-nucleotide/knucleotide-input25000000.txt
shootout/n-body/n-body shootout/n-body/n-body
shootout/pidigits/pidigits shootout/pidigits/pidigits
shootout/reverse-complement/fasta-c shootout/reverse-complement/fasta-c
......
...@@ -15,7 +15,4 @@ Notes: ...@@ -15,7 +15,4 @@ Notes:
which requires C libraries that aren't installed by default on many which requires C libraries that aren't installed by default on many
platforms. platforms.
* The k-nucleotide benchmark wasn't included as it segfaults on my
64-bit OS X 10.8.2 machine.
1. http://benchmarksgame.alioth.debian.org/ 1. http://benchmarksgame.alioth.debian.org/
This diff is collapsed.
TOP = ../..
include $(TOP)/mk/boilerplate.mk
# These values are only used in this file. They are ignored by the
# executable itself.
FAST_OPTS = 250000
NORM_OPTS = 2500000
SLOW_OPTS = 25000000 # official shootout setting
# The benchmark game also uses -fllvm, which we can't since it might
# not be available on the developer's machine.
HC_OPTS += -O2 -XBangPatterns -package bytestring
#------------------------------------------------------------------
# Create input
fasta-c : ../fasta/fasta-c.o
gcc $< -o $@
knucleotide-input250000.txt : fasta-c
./fasta-c $(FAST_OPTS) > $@
knucleotide-input2500000.txt : fasta-c
./fasta-c $(NORM_OPTS) > $@
knucleotide-input25000000.txt : fasta-c
./fasta-c $(SLOW_OPTS) > $@
ifeq "$(mode)" "slow"
INPUT_FILE = knucleotide-input25000000.txt
else
ifeq "$(mode)" "fast"
INPUT_FILE = knucleotide-input250000.txt
else
INPUT_FILE = knucleotide-input2500000.txt
endif
endif
SRC_RUNTEST_OPTS += -i $(INPUT_FILE)
all boot :: $(INPUT_FILE)
include $(TOP)/mk/target.mk
A 30.298
T 30.157
C 19.793
G 19.752
AA 9.177
TA 9.137
AT 9.136
TT 9.094
AC 6.000
CA 5.999
GA 5.986
AG 5.985
TC 5.970
CT 5.970
GT 5.957
TG 5.956
CC 3.915
CG 3.910
GC 3.908
GG 3.902
14717 GGT
4463 GGTA
472 GGTATT
9 GGTATTTTAATT
9 GGTATTTTAATTTATAGT
A 30.295
T 30.151
C 19.800
G 19.754
AA 9.177
TA 9.132
AT 9.131
TT 9.091
CA 6.002
AC 6.001
AG 5.987
GA 5.984
CT 5.971
TC 5.971
GT 5.957
TG 5.956
CC 3.917
GC 3.911
CG 3.909
GG 3.902
1471758 GGT
446535 GGTA
47336 GGTATT
893 GGTATTTTAATT
893 GGTATTTTAATTTATAGT
A 30.297
T 30.151
C 19.798
G 19.755
AA 9.177
TA 9.133
AT 9.131
TT 9.091
CA 6.002
AC 6.001
AG 5.987
GA 5.984
CT 5.971
TC 5.971
GT 5.957
TG 5.956
CC 3.917
GC 3.910
CG 3.909
GG 3.903
147166 GGT
44658 GGTA
4736 GGTATT
89 GGTATTTTAATT
89 GGTATTTTAATTTATAGT
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment