Simplify "for" loop to try to get it running
All checks were successful
Deploy datapack to dev / Build (push) Successful in 6s

This commit is contained in:
themodernhakr 2025-03-22 21:35:45 -05:00
parent 3b7fcca6f3
commit 5e44a9eb28

View File

@ -27,9 +27,7 @@ class database.benchmark {
function arrayTest1.setup() {
::database.test.arrayTest1.array = [];
for ($i=0;$i<=500;$i++) {
$thisI = $i;
$thisI += 1;
::database.test.arrayTest1.array << {id: $thisI, string: "array item &<$i>"};
::database.test.arrayTest1.array << {id: "n", string: "array item &<$i>"};
logger(1, database.benchmark.arrayTest1.setup, "Loop ran");
}
}