SQLite/benchmarks/run_hashtable.sh

22 lines
708 B
Bash
Raw Normal View History

2021-03-31 12:37:15 +02:00
#!/bin/bash
# script for executing benchmark for hashtable
# create/clear benchmark subdirectory
mkdir -p hashtable
rm -rf hashtable/*
# copy raw files to correct location
cp /home/kreft/benchmark/benchmarks/fill_hash_sqlite ./fill.txt
cp /home/kreft/benchmark/benchmarks/mixed_hash_sqlite ./mixed.txt
echo "Executing hashtable benchmark"
for run in 1 2 3 4 5
do
echo "Executing run $run"
cat benchmark_run.txt | ../sqlite_binary >> ./hashtable/messung.txt
echo "Executing run $run with hashtable"
cat benchmark_run_hash.txt | ../sqlite_binary >> ./hashtable/messung_hash.txt
echo "Executing run $run with btree"
cat benchmark_run_btree.txt | ../sqlite_binary >> ./hashtable/messung_btree.txt
done