Skip to content

Commit 3515232

Browse files
committed
Added benchmarks and a space usage test script
1 parent ad25fa6 commit 3515232

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

benchmarks/benchmark.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# rnd: random number generators to use
77
for rnd in `seq -1 -1`; do
88
# alg: algorithms to test
9-
for alg in 0 2 3 4 11 12 13 20 40 41 42 51 100; do
9+
for alg in 0 2 3 4 11 12 13 15 16 17 20 30 40 41 42 51 80 100; do
1010
# m: number of entries
1111
for m in `seq 10 90 100`; do
1212
# test: test id
@@ -17,4 +17,4 @@ for rnd in `seq -1 -1`; do
1717
done;
1818
done;
1919
done;
20-
done > benchmark-results.txt
20+
done > benchmark-results.txt 2>&1

benchmarks/spaceUsage.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/sh
2+
# runs the benchmark program once with all important algorithms,
3+
# in order to get the space overhead for certain sizes
4+
# (not to get timing data)
5+
# for algorithm ids and other parameters, see
6+
# bulk-insert-and-query.cc
7+
#
8+
# rnd: random number generators to use
9+
for rnd in `seq -1 -1`; do
10+
# alg: algorithms to test (not used currently)
11+
for alg in 0; do
12+
# m: number of entries
13+
for m in `seq 10 1 100`; do
14+
# test: test id
15+
for test in `seq 1 1`; do
16+
now=$(date +"%T");
17+
echo ${now} alg ${alg} size ${m} ${rnd};
18+
./bulk-insert-and-query.exe ${m}00000 "0,2,3,4,11,12,13,15,16,17,20,30,40,41,42,51,80" ${rnd};
19+
#./bulk-insert-and-query.exe ${m}00000 "13,15,16,17" ${rnd};
20+
done;
21+
done;
22+
done;
23+
done> spaceUsage-results.txt 2>&1

0 commit comments

Comments
 (0)