Skip to content

Commit

Permalink
Fixing review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dutow committed Oct 29, 2024
1 parent 0432a11 commit b77e9aa
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions perf/seq_read.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,21 @@
cd "$(dirname "$0")"

xz -d pp-2019.csv.xz
RECORDS=`wc -l pp-2019.csv`
echo "CSV entries: $RECORDS"
cp pp-2019.csv /tmp/
createdb seq_read_test
psql seq_read_test < seq_read_prepare.sql > /dev/null
echo "Sequential scan read times"
echo "=========================="
echo -n "HEAP: "
psql seq_read_test < seq_read_run_heap.sql | grep "Execution" | tail -n 10 | cut -d " " -f 4 | paste -sd+ | bc
HEAP=`psql seq_read_test < seq_read_run_heap.sql | grep "Execution" | tail -n 10 | cut -d " " -f 4 | paste -sd+ | bc`
echo $HEAP
echo -n "TDE: "
psql seq_read_test < seq_read_run_tde.sql | grep "Execution" | tail -n 10 | cut -d " " -f 4 | paste -sd+ | bc
TDE=`psql seq_read_test < seq_read_run_tde.sql | grep "Execution" | tail -n 10 | cut -d " " -f 4 | paste -sd+ | bc`
TDE_PERC=`bc <<< "$TDE*100/$HEAP"`
echo "$TDE ($TDE_PERC%)"
echo -n "TDE_BASIC: "
psql seq_read_test < seq_read_run_tde_basic.sql | grep "Execution" | tail -n 10 | cut -d " " -f 4 | paste -sd+ | bc
TDE_BASIC=`psql seq_read_test < seq_read_run_tde_basic.sql | grep "Execution" | tail -n 10 | cut -d " " -f 4 | paste -sd+ | bc`
TDE_BASIC_PERC=`bc <<< "$TDE_BASIC*100/$HEAP"`
echo "$TDE ($TDE_BASIC_PERC%)"

0 comments on commit b77e9aa

Please sign in to comment.