SQLite/benchmarks/run_hchc.sh

32 lines
924 B
Bash
Raw Normal View History

2021-03-31 12:37:15 +02:00
#!/bin/bash
# script for executing benchmark for high contention, high conflict
# create/clear benchmark subdirectory
mkdir -p hchc
rm -rf hchc/*
# copy raw file to correct location
cp /home/kreft/benchmark/benchmarks/fill_hchc_sqlite ./fill.txt
echo "Executing hchc benchmark"
for updates in 1 2 3 4 5 6 7 8 9 10
do
# create/clear subdirectories for different parameters
dir_name="upd_$updates"
mkdir -p ./hchc/$dir_name
rm -f ./hchc/$dir_name/*.txt
# copy raw file to correct location
2021-04-01 15:25:35 +02:00
cp /home/kreft/benchmark/benchmarks/mixed_hchc_$((updates))_sqlite ./mixed.txt
2021-03-31 12:37:15 +02:00
echo "Executing runs for $updates updates"
for run in 1 2 3 4 5
do
echo "Executing run $run"
cat benchmark_run.txt | ../sqlite_binary ":memory:" >> ./hchc/$dir_name/messung.txt
2021-04-07 14:42:24 +02:00
echo "Executing run $run with index"
cat benchmark_run_index.txt | ../sqlite_binary ":memory:" >> ./hchc/$dir_name/messung_index.txt
2021-03-31 12:37:15 +02:00
done
2021-04-01 15:25:35 +02:00
done