mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add performance test
This commit is contained in:
parent
ed7dc1f901
commit
cb5d191d2f
1 changed files with 12 additions and 0 deletions
12
dev/tests/perftest.lua
Normal file
12
dev/tests/perftest.lua
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
app.set_setting("chunks.load-distance", 3)
|
||||
app.set_setting("chunks.load-speed", 16)
|
||||
|
||||
app.reconfig_packs({"base"}, {})
|
||||
app.new_world("demo", "2019", "core:default")
|
||||
|
||||
local pid = player.create("A")
|
||||
assert(player.get_name(pid) == "A")
|
||||
app.tick()
|
||||
|
||||
timeit(1e7, block.get, 0, 0, 0)
|
||||
timeit(1e7, block.set, 0, 0, 0, 6)
|
||||
Loading…
Add table
Add a link
Reference in a new issue