aboutsummaryrefslogtreecommitdiff
path: root/test/speedtest.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'test/speedtest.tcl')
-rwxr-xr-xtest/speedtest.tcl15
1 files changed, 12 insertions, 3 deletions
diff --git a/test/speedtest.tcl b/test/speedtest.tcl
index 1ad92d9ab..7cd3b5fa1 100755
--- a/test/speedtest.tcl
+++ b/test/speedtest.tcl
@@ -25,6 +25,7 @@ Other options include:
--help Show this help screen.
--lean "Lean" mode.
--lookaside N SZ Lookahead uses N slots of SZ bytes each.
+ --osmalloc Use the OS native malloc() instead of MEMSYS5
--pagesize N Use N as the page size.
--quiet | -q "Quite". Put results in file but don't pop up editor
--size N Change the test size. 100 means 100%. Default: 5.
@@ -40,7 +41,8 @@ set cc gcc
set testset mix1
set dryrun 0
set quiet 0
-set speedtestflags {--shrink-memory --reprepare --stats --heap 40000000 64}
+set osmalloc 0
+set speedtestflags {--shrink-memory --reprepare --stats}
lappend speedtestflags --journal wal --size 5
for {set i 0} {$i<[llength $argv]} {incr i} {
@@ -92,6 +94,10 @@ for {set i 0} {$i<[llength $argv]} {incr i} {
--dryrun {
set dryrun 1
}
+ -osmalloc -
+ --osmalloc {
+ set osmalloc 1
+ }
-? -
-help -
--help {
@@ -139,10 +145,13 @@ for {set i 0} {$i<[llength $argv]} {incr i} {
if {[lsearch -glob $cflags -O*]<0} {
lappend cflags -Os
}
-if {[lsearch -glob $cflags -DSQLITE_ENABLE_MEMSYS*]<0} {
+if {!$osmalloc} {
+ append speedtestflags { --heap 40000000 64}
+}
+if {!$osmalloc && [lsearch -glob $cflags {-DSQLITE_ENABLE_MEMSYS*}]<0} {
lappend cflags -DSQLITE_ENABLE_MEMSYS5
}
-if {[lsearch -glob $cflags -DSQLITE_ENABLE_RTREE*]<0} {
+if {[lsearch -glob $cflags {-DSQLITE_ENABLE_RTREE*}]<0} {
lappend cflags -DSQLITE_ENABLE_RTREE
}
if {$srcfile==""} {