Simplify "for" loop to try to get it running
All checks were successful
Deploy datapack to dev / Build (push) Successful in 6s
All checks were successful
Deploy datapack to dev / Build (push) Successful in 6s
This commit is contained in:
parent
3b7fcca6f3
commit
5e44a9eb28
@ -27,9 +27,7 @@ class database.benchmark {
|
|||||||
function arrayTest1.setup() {
|
function arrayTest1.setup() {
|
||||||
::database.test.arrayTest1.array = [];
|
::database.test.arrayTest1.array = [];
|
||||||
for ($i=0;$i<=500;$i++) {
|
for ($i=0;$i<=500;$i++) {
|
||||||
$thisI = $i;
|
::database.test.arrayTest1.array << {id: "n", string: "array item &<$i>"};
|
||||||
$thisI += 1;
|
|
||||||
::database.test.arrayTest1.array << {id: $thisI, string: "array item &<$i>"};
|
|
||||||
logger(1, database.benchmark.arrayTest1.setup, "Loop ran");
|
logger(1, database.benchmark.arrayTest1.setup, "Loop ran");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user