Kit Speed Lab: Repeatable Benchmarks for Kits and Games
README.md
speedLabPrefixKit
Version 0.1.2.
The speedLab benchmark set for prefixKit's nameplates, the name tags drawn over prefixed enemies
("Watercolor Ink Goblin"). It lays a path lane in front of the active camera, spawns spawnerKit
enemies that walk it, puts prefixes on each with prefixKit.apply and draws the brush plates Arts TD
uses. It runs in any world that installs prefixKit and spawnerKit, on desktop or in a browser client.
| shape | enemies | lanes |
|---|---|---|
| light | 10 | 1 |
| typical | 40 | 1 |
| stress | 120 | 1 |
| 2p | 2 x 40 | 2 (two players' waves on screen together) |
-- from edit mode: enters play, runs every shape, leaves play
local N = require("speedLabPrefixKit.nameplates")
print(N.format(N.measure()))
The lab benchmarks (zero speedLab run speedLabPrefixKit.set) run the same four shapes at a fixed camera
far from the scene, so the board can show them:
Each shape reports:
- the median nameplate rebuild time (prefixKit's own clock);
- plate trees sent per second (prefixKit 1.0.8 and later count them);
- the engine's UI preparation time (
profiler frame, theprepare_uirows); - the median whole frame.
The 2p shape puts two lanes of enemies on one screen: the plate load two players' waves make. It does not run two engines.
Version history
- 0.1.2: a set (
speedLabPrefixKit.set, id prefixKit) with the four shapes as lab benchmarks, and the round 15 before and after table (prefixKit 1.0.7 and 1.0.8, desktop x2 and browser x2) on the board. - 0.1.1: the lane faces the camera through its near plane (0.1.0 read a
forwardthatcamera.viewData()does not give); the lab runs prefixKit 1.0.8; round 15 before rows (prefixKit 1.0.7) inresults15/. - 0.1.0: the nameplate benchmark, four shapes.