| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # | 2 # |
| 3 # This is a template for a script used for day-to-day size and | 3 # This is a template for a script used for day-to-day size and |
| 4 # performance monitoring of SQLite. Typical usage: | 4 # performance monitoring of SQLite. Typical usage: |
| 5 # | 5 # |
| 6 # sh run-speed-test.sh trunk # Baseline measurement of trunk | 6 # sh run-speed-test.sh trunk # Baseline measurement of trunk |
| 7 # sh run-speed-test.sh x1 # Measure some experimental change | 7 # sh run-speed-test.sh x1 # Measure some experimental change |
| 8 # fossil test-diff --tk cout-trunk.txt cout-x1.txt # View chanages | 8 # fossil test-diff --tk cout-trunk.txt cout-x1.txt # View chanages |
| 9 # | 9 # |
| 10 # There are multiple output files, all with a base name given by | 10 # There are multiple output files, all with a base name given by |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 ./shell.c ./sqlite3.c -o sqlite3 -ldl -lpthread | 59 ./shell.c ./sqlite3.c -o sqlite3 -ldl -lpthread |
| 60 SRC=./speedtest1.c | 60 SRC=./speedtest1.c |
| 61 gcc -g -Os -Wall -I. $CC_OPTS $SRC ./sqlite3.o -o speedtest1 -ldl -lpthread | 61 gcc -g -Os -Wall -I. $CC_OPTS $SRC ./sqlite3.o -o speedtest1 -ldl -lpthread |
| 62 ls -l speedtest1 | tee -a summary-$NAME.txt | 62 ls -l speedtest1 | tee -a summary-$NAME.txt |
| 63 valgrind --tool=cachegrind ./speedtest1 speedtest1.db \ | 63 valgrind --tool=cachegrind ./speedtest1 speedtest1.db \ |
| 64 $SPEEDTEST_OPTS 2>&1 | tee -a summary-$NAME.txt | 64 $SPEEDTEST_OPTS 2>&1 | tee -a summary-$NAME.txt |
| 65 size sqlite3.o | tee -a summary-$NAME.txt | 65 size sqlite3.o | tee -a summary-$NAME.txt |
| 66 wc sqlite3.c | 66 wc sqlite3.c |
| 67 cg_anno.tcl cachegrind.out.* >cout-$NAME.txt | 67 cg_anno.tcl cachegrind.out.* >cout-$NAME.txt |
| 68 ./speedtest1 --explain $SPEEDTEST_OPTS | ./sqlite3 >explain-$NAME.txt | 68 ./speedtest1 --explain $SPEEDTEST_OPTS | ./sqlite3 >explain-$NAME.txt |
| OLD | NEW |