Skip to content

Instantly share code, notes, and snippets.

# Generate 1GB of random numbers and write them to a file
perl -e 'print STDERR "Grenerating data...\n"; while (1) { print rand() }' | \
dd count=41943040 bs=512 | perl -e '
# Accumulate and then Measure with dd
@all = ();
binmode(STDIN);
while (read(STDIN, $b, 1048576)) { # Read in 1 MB chunks
push(@all, $b);
# Generate 1GB of random numbers and write them to a file
perl -e 'print STDERR "Grenerating data...\n"; while (1) { print rand() }' | \
dd count=20971520 bs=512 | perl -e '
# Accumulate and then Measure with dd
@all = ();
binmode(STDIN);
while (read(STDIN, $b, 1048576)) { # Read in 1 MB chunks
push(@all, $b);
make
g++ -static -DMAXGAP=3 -DMAXHITS=10000 -DTHREAD -O3 -funroll-loops -DDB_CHR -D
READ_36 -c align.cpp -o align.a.o
g++ -static -DMAXGAP=3 -DMAXHITS=10000 -DTHREAD -O3 -funroll-loops -DDB_CHR -D
READ_36 -c dbseq.cpp -o dbseq.a.o
g++ -static -DMAXGAP=3 -DMAXHITS=10000 -DTHREAD -O3 -funroll-loops -DDB_CHR -D
READ_36 -c main.cpp -o main.a.o
g++ -static -DMAXGAP=3 -DMAXHITS=10000 -DTHREAD -O3 -funroll-loops -DDB_CHR -D
READ_36 -c pairs.cpp -o pairs.a.o
g++ -static -DMAXGAP=3 -DMAXHITS=10000 -DTHREAD -O3 -funroll-loops -DDB_CHR -D