Enhancements to the pagecache malloc test configuration. Changes to the

speed test scripts to use the new test enhancements. (CVS 5494)

FossilOrigin-Name: 0ce39c21f32958ae53c00dc8bbf8cdd453f2d90e
This commit is contained in:
drh
2008-07-29 14:29:06 +00:00
parent 4f8e6aa087
commit 5f4bcf15d1
6 changed files with 27 additions and 22 deletions
+2 -1
View File
@@ -11,12 +11,13 @@
# This file implements regression tests for SQLite library. The
# focus of this script is measuring executing speed.
#
# $Id: speed1.test,v 1.7 2008/07/28 19:34:54 drh Exp $
# $Id: speed1.test,v 1.8 2008/07/29 14:29:07 drh Exp $
#
sqlite3_shutdown
sqlite3_config_scratch 29000 1
sqlite3_config_lookaside 1000 300
sqlite3_config_pagecache 1024 10000
set testdir [file dirname $argv0]
source $testdir/tester.tcl
speed_trial_init speed1
+4 -2
View File
@@ -13,11 +13,13 @@
#
# This is a copy of speed1.test modified to user prepared statements.
#
# $Id: speed1p.test,v 1.3 2008/07/24 23:34:07 drh Exp $
# $Id: speed1p.test,v 1.4 2008/07/29 14:29:07 drh Exp $
#
sqlite3_shutdown
sqlite3_config_scratch 29000 1
sqlite3_config_lookaside 2048 300
sqlite3_config_pagecache 1024 11000
set testdir [file dirname $argv0]
source $testdir/tester.tcl
speed_trial_init speed1
@@ -64,7 +66,7 @@ proc number_name {n} {
do_test speed1p-1.0 {
execsql {
PRAGMA page_size=1024;
PRAGMA cache_size=8192;
PRAGMA cache_size=500;
PRAGMA locking_mode=EXCLUSIVE;
CREATE TABLE t1(a INTEGER, b INTEGER, c TEXT);
CREATE TABLE t2(a INTEGER, b INTEGER, c TEXT);