AryaWu/sqlite
0
1#!/bin/sh2#3# This script runs the wordcount program in different ways and generates4# an output useful for performance comparisons.5#6 7# Select the source text to be analyzed.8#9if test "x$1" = "x";10then echo "Usage: $0 FILENAME [ARGS...]"; exit 1;11fi12 13# Do test runs14#15rm -f wcdb1.db16./wordcount --tag A: --timer --summary wcdb1.db $* --insert17rm -f wcdb2.db18./wordcount --tag B: --timer --summary wcdb2.db $* --insert --without-rowid19rm -f wcdb1.db20./wordcount --tag C: --timer --summary wcdb1.db $* --replace21rm -f wcdb2.db22./wordcount --tag D: --timer --summary wcdb2.db $* --replace --without-rowid23rm -f wcdb1.db24./wordcount --tag E: --timer --summary wcdb1.db $* --select25rm -f wcdb2.db26./wordcount --tag F: --timer --summary wcdb2.db $* --select --without-rowid27./wordcount --tag G: --timer --summary wcdb1.db $* --query28./wordcount --tag H: --timer --summary wcdb1.db $* --query --without-rowid29./wordcount --tag I: --timer --summary wcdb1.db $* --delete30./wordcount --tag J: --timer --summary wcdb2.db $* --delete --without-rowid31 32# Clean up temporary files created.33#34rm -f wcdb1.db wcdb2.db35 