better fix for db.tester

db4
Doug Coleman 2009-04-20 21:47:16 -05:00
parent 687190bbee
commit 706fb78d5b
1 changed files with 6 additions and 4 deletions

View File

@ -56,6 +56,10 @@ test-2 "TEST2" {
{ "z" "Z" { VARCHAR 256 } +not-null+ }
} define-persistent
: test-1-tuple ( -- tuple )
f 100 random 100 random 100 random [ number>string ] tri@
test-1 boa ;
: db-tester ( test-db -- )
[
[
@ -67,8 +71,7 @@ test-2 "TEST2" {
drop
10 [
dup [
f 100 random 100 random 100 random [ number>string ] tri@
test-1 boa insert-tuple yield
test-1-tuple insert-tuple yield
] with-db
] times
] with parallel-each
@ -84,8 +87,7 @@ test-2 "TEST2" {
<db-pool> [
10 [
10 [
f 100 random 100 random 100 random test-1 boa
insert-tuple yield
test-1-tuple insert-tuple yield
] times
] parallel-each
] with-pooled-db