benchmark Skripte angepasst

This commit is contained in:
Martin Farenholtz 2021-04-07 14:42:24 +02:00
parent 3f9c0a0ca2
commit 6f5cbb6971
9 changed files with 16 additions and 23 deletions

View File

@ -1,5 +1,4 @@
CREATE TABLE benchmarktable(ID long, STR char(32)) CREATE TABLE benchmarktable(ID long, STR char(32))
load fill load fill
load mixed load mixed
select * from benchmarktable
quit quit

View File

@ -1,5 +0,0 @@
CREATE TABLE benchmarktable(ID long, STR char(32))
CREATE INDEX idx ON benchmarktable(ID) USING HASHTABLE
load fill
load mixed
quit

View File

@ -1,5 +1,5 @@
CREATE TABLE benchmarktable(ID long, STR char(32)) CREATE TABLE benchmarktable(ID long, STR char(32))
CREATE INDEX idx ON benchmarktable(ID) USING BTREE CREATE UNIQUE INDEX idx ON benchmarktable(ID)
load fill load fill
load mixed load mixed
quit quit

View File

@ -19,6 +19,8 @@ do
esac esac
done done
echo "Started at $(date -I'seconds')"
# High contention, high conflict # High contention, high conflict
# ~5h runtime # ~5h runtime
#./run_hchc.sh #./run_hchc.sh
@ -37,4 +39,6 @@ done
# Hashtable # Hashtable
# ~2h runtime # ~2h runtime
#./run_hashtable.sh #./run_hashtable.sh
echo "Ended at $(date -I'seconds')"

View File

@ -15,8 +15,6 @@ for run in 1 2 3 4 5
do do
echo "Executing run $run" echo "Executing run $run"
cat benchmark_run.txt | ../sqlite_binary >> ./hashtable/messung.txt cat benchmark_run.txt | ../sqlite_binary >> ./hashtable/messung.txt
echo "Executing run $run with hashtable" echo "Executing run $run with index"
cat benchmark_run_hash.txt | ../sqlite_binary >> ./hashtable/messung_hash.txt cat benchmark_run_index.txt | ../sqlite_binary >> ./hashtable/messung_index.txt
echo "Executing run $run with btree"
cat benchmark_run_btree.txt | ../sqlite_binary >> ./hashtable/messung_btree.txt
done done

View File

@ -25,9 +25,7 @@ do
do do
echo "Executing run $run" echo "Executing run $run"
cat benchmark_run.txt | ../sqlite_binary >> ./hchc/$dir_name/messung.txt cat benchmark_run.txt | ../sqlite_binary >> ./hchc/$dir_name/messung.txt
echo "Executing run $run with hashtable" echo "Executing run $run with index"
cat benchmark_run_hash.txt | ../sqlite_binary >> ./hchc/$dir_name/messung_hash.txt cat benchmark_run_index.txt | ../sqlite_binary >> ./hchc/$dir_name/messung_index.txt
echo "Executing run $run with btree"
cat benchmark_run_btree.txt | ../sqlite_binary >> ./hchc/$dir_name/messung_btree.txt
done done
done done

View File

@ -15,6 +15,6 @@ for run in 1 2 3 4 5
do do
echo "Executing run $run" echo "Executing run $run"
cat benchmark_run.txt | ../sqlite_binary >> ./hclc/messung.txt cat benchmark_run.txt | ../sqlite_binary >> ./hclc/messung.txt
#cat benchmark_run_hash.txt | ../sqlite_binary >> ./lclc/messung_hash.txt echo "Executing run $run with index"
#cat benchmark_run_btree.txt | ../sqlite_binary >> ./lclc/messung_btree.txt cat benchmark_run_index.txt | ../sqlite_binary >> ./hclc/messung_index.txt
done done

View File

@ -15,6 +15,6 @@ for run in 1 2 3 4 5
do do
echo "Executing run $run" echo "Executing run $run"
cat benchmark_run.txt | ../sqlite_binary >> ./lclc/messung.txt cat benchmark_run.txt | ../sqlite_binary >> ./lclc/messung.txt
#cat benchmark_run_hash.txt | ../sqlite_binary >> ./lclc/messung_hash.txt echo "Executing run $run with index"
#cat benchmark_run_btree.txt | ../sqlite_binary >> ./lclc/messung_btree.txt cat benchmark_run_index.txt | ../sqlite_binary >> ./lclc/messung_index.txt
done done

View File

@ -15,7 +15,6 @@ for run in 1 2 3 4 5
do do
echo "Executing run $run" echo "Executing run $run"
cat benchmark_run.txt | ../sqlite_binary >> ./rangequeries/messung.txt cat benchmark_run.txt | ../sqlite_binary >> ./rangequeries/messung.txt
#cat benchmark_run_hash.txt | ../sqlite_binary >> ./rangequeries/messung_hash.txt echo "Executing run $run with index"
echo "Executing run $run with btree" cat benchmark_run_index.txt | ../sqlite_binary >> ./rangequeries/messung_index.txt
cat benchmark_run_btree.txt | ../sqlite_binary >> ./rangequeries/messung_btree.txt
done done