Populate setup and various print functions for test
All checks were successful
Deploy datapack to dev / Build (push) Successful in 7s

This commit is contained in:
themodernhakr 2025-03-23 01:08:25 -05:00
parent 1345fa13c0
commit a54ff65abe

View File

@ -61,8 +61,23 @@ class database.benchmark {
function arrayTest2.setup() {
::database.test.arrayTest2.arrays = [];
::database.test.arrayTest2.array = [];
::database.test.arrayTest2.index = [];
Hardcode.repeat(
indexString="[index]",
start=0,
stop=500,
function=() => {
::database.test.arrayTest2.array << {id: Hardcode.calc([index]+1), string: "entryHardcode.calc([index]+1)"};
::database.test.arrayTest2.index << {entryHardcode.calc([index]+1): [index]};
}
);
}
function arrayTest2.printArray() {
tellraw @a {"nbt":"database.test.arrayTest2.array","storage":"ferdinland:ferdinland"};
}
function arrayTest2.printIndex() {
tellraw @a {"nbt":"database.test.arrayTest2.index","storage":"ferdinland:ferdinland"};
}
function arrayTest2.clean() {
}