#!/bin/bash
#
# This is a template for a script used for day-to-day size and
# performance monitoring of SQLite. Typical usage:
#
# sh speed-check.sh trunk # Baseline measurement of trunk
# sh speed-check.sh x1 # Measure some experimental change
# fossil xdiff --tk jout-trunk.txt jout-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
# jout-$BASE.txt # cachegrind output
# explain-$BASE.txt # EXPLAIN listings (only with --explain)
#
if
then
fi
NAME=
#CC_OPTS="-DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_MEMSYS5"
CC_OPTS="-DSQLITE_ENABLE_MEMSYS5"
CC=gcc
LEAN_OPTS="-DSQLITE_THREADSAFE=0"
LEAN_OPTS=" -DSQLITE_DEFAULT_MEMSTATUS=0"
LEAN_OPTS=" -DSQLITE_DEFAULT_WAL_SYNCHRONOUS=1"
LEAN_OPTS=" -DSQLITE_LIKE_DOESNT_MATCH_BLOBS"
LEAN_OPTS=" -DSQLITE_MAX_EXPR_DEPTH=0"
LEAN_OPTS=" -DSQLITE_OMIT_DECLTYPE"
LEAN_OPTS=" -DSQLITE_OMIT_DEPRECATED"
LEAN_OPTS=" -DSQLITE_OMIT_PROGRESS_CALLBACK"
LEAN_OPTS=" -DSQLITE_OMIT_SHARED_CACHE"
LEAN_OPTS=" -DSQLITE_USE_ALLOCA"
BASELINE="trunk"
doExplain=0
doCachegrind=1
doVdbeProfile=0
doWal=1
doDiff=1
while ; do
case in
--nodiff)
doDiff=0
;;
--lean)
CC_OPTS=" "
;;
--clang)
CC=clang
;;
--gcc7)
CC=gcc-7
;;
-*)
CC_OPTS=" "
;;
*)
BASELINE=
;;
esac
done
|
|
|
home=
|
if ; then
fi