Populate setup and various print functions for test
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
1345fa13c0
commit
a54ff65abe
@ -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() {
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user