diff --git a/src/database/database.jmc b/src/database/database.jmc index dce0f74..75edd69 100644 --- a/src/database/database.jmc +++ b/src/database/database.jmc @@ -44,6 +44,7 @@ class database.benchmark { } function arrayTest1.run() { ::temp.arrayTest1 = ::database.test.arrayTest1.array; + ::temp.keyword = "entry500"; Array.forEach( "ferdinland:ferdinland", "temp.arrayTest1", @@ -57,6 +58,7 @@ class database.benchmark { } ); ::temp.arrayTest1.del(); + ::temp.keyword.del(); } @@ -90,8 +92,10 @@ class database.benchmark { $::temp.result = ::database.test.arrayTest2.array[$(index)]; } function arrayTest2.run() { - this.arrayTest2._searchIndex({keyword: "entry500"}); + ::temp.keyword = "entry500"; + this.arrayTest2._searchIndex() with ::temp; this.arrayTest2._searchArray() with ::temp; + ::temp.keyword.del(); ::temp.index.del(); ::temp.result.del(); }