1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Adjust the test/speedtest.tcl script so that it uses an on-disk database

rather than an in-memory database.

FossilOrigin-Name: e93d7aa1db9bdbf1996c4c168e67284177e384b7acf176d74a0458258faab05c
This commit is contained in:
drh
2025-02-06 17:29:14 +00:00
parent 65552a7ae1
commit 038424727b
3 changed files with 12 additions and 7 deletions

View File

@ -174,9 +174,14 @@ if {!$dryrun} {
}
lappend speedtestflags --testset $testset
set stcmd [list valgrind --tool=cachegrind ./speedtest1 {*}$speedtestflags]
lappend stcmd speedtest1.db
lappend stcmd >valgrind-out.txt 2>valgrind-err.txt
puts $stcmd
if {!$dryrun} {
foreach file {speedtest1.db speedtest1.db-journal speedtest1.db-wal
speedtest1.db-shm} {
if {[file exists $file]} {file delete $file}
}
exec {*}$stcmd
}