Change keyword to use storages
All checks were successful
Deploy datapack to dev / Build (push) Successful in 7s
All checks were successful
Deploy datapack to dev / Build (push) Successful in 7s
This commit is contained in:
parent
2d3d2abe33
commit
1784e8fcd5
@ -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();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user