Log inGet started
World

Kit Speed Lab: Repeatable Benchmarks for Kits and Games

README.md

speedLabSpawner.placement

Times spawnerKit's path placement, placement.solve("path", ctx): the work the Spawner does once for every enemy it spawns on a path. It uses S-shaped roads like Hold the Line's, in four shapes:

shapecontrol pointsplayers
light81
typical201
stress401
2p202

It runs against whichever spawnerKit the world has installed. The code is pure maths, so it runs in edit or play, on desktop or in a browser client.

local Pl = require("speedLabSpawner.placement")
print(Pl.format(Pl.runAll()))   -- median ms per spawn for every shape, and the spawnerKit version

run(shape) answers one shape: the median of five batches of 40 calls. The set's spawner.pathSpawn benchmarks spawn on the same roads at a steady rate, so the board shows the same cost as frame time.