diff --git a/src/database/database.jmc b/src/database/database.jmc index 2887a1b..b8d0ab9 100644 --- a/src/database/database.jmc +++ b/src/database/database.jmc @@ -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() { }