set testdir
source $testdir/tester.tcl
ifcapable !rtree
set NROW 10000
set NQUERY 500
puts "Generating $NROW rows of data..."
set data
for
puts "Finished generating data"
set sql1
set sql2
puts "Creating tables:"
puts " $sql1"
puts " $sql2"
db eval $sql1
db eval $sql2
db eval "pragma cache_size=100"
puts -nonewline "Inserting into btree... "
flush stdout
set btree_time
puts "$btree_time"
puts -nonewline "Inserting into rtree... "
flush stdout
set rtree_time
puts "$rtree_time"
puts -nonewline "Selecting from btree... "
flush stdout
set btree_select_time
puts "$btree_select_time"
puts -nonewline "Selecting from rtree... "
flush stdout
set rtree_select_time
puts "$rtree_select_time"