Frame Lab: Repeatable Performance Benchmarks and Game Charts
README.md
benchKit.codec
Packs long columns of numbers (every frame's time, every memory sample of a benchmark run) into short base64 strings, so a run's per-frame data fits the player store and replicates cheaply. Each column is quantised to a step (0.01 ms for times, 1 KiB for bytes), delta encoded and varint packed; decode gives the numbers back to that step. Used by benchKit.capture and benchKit.dataset; any script can use it for its own long series.
local Codec = require("benchKit.codec")
local s = Codec.encode({ 16.71, 16.69, 33.4 }, 0.01)
local v = Codec.decode(s, 0.01) -- { 16.71, 16.69, 33.4 }