#!/bin/bash
#
# This is a template for a script used for day-to-day size and
# performance monitoring of SQLite. Typical usage:
#
# sh run-speed-test.sh trunk # Baseline measurement of trunk
# sh run-speed-test.sh x1 # Measure some experimental change
# fossil test-diff --tk cout-trunk.txt cout-x1.txt # View chanages
#
# There are multiple output files, all with a base name given by
# the first argument:
#
# summary-$BASE.txt # Copy of standard output
# cout-$BASE.txt # cachegrind output
# explain-$BASE.txt # EXPLAIN listings (only with --explain)
#
if
then
fi
NAME=
CC_OPTS="-DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_MEMSYS5"
SPEEDTEST_OPTS="--shrink-memory --reprepare --heap 10000000 64"
SIZE=5
doExplain=0
while ; do
case in
--reprepare)
SPEEDTEST_OPTS=" "
;;
--autovacuum)
SPEEDTEST_OPTS=" "
;;
--utf16be)
SPEEDTEST_OPTS=" "
;;
--stats)
SPEEDTEST_OPTS=" "
;;
--without-rowid)
SPEEDTEST_OPTS=" "
;;
--nomemstat)
SPEEDTEST_OPTS=" "
;;
--wal)
SPEEDTEST_OPTS=" --journal wal"
;;
--size)
; SIZE=
;;
--explain)
doExplain=1
;;
--heap)
CC_OPTS=" -DSQLITE_ENABLE_MEMSYS5"
;
SPEEDTEST_OPTS=" --heap 64"
;;
*)
CC_OPTS=" "
;;
esac
done
SPEEDTEST_OPTS=" --size "
|
|
|
|
if ; then
fi
SRC=./speedtest1.c
|
|
|
if ; then
|
fi