tokfit/bench

A fixed workload for external timing.

time gleam run -m tokfit/bench

Not a test. gleam_stdlib 1.0.5 exposes no clock, so the timing is done by the shell. This prints the input size and the token count; the wall clock covers the one-off vocabulary load plus the tokenizing, and no CLI path loads without tokenizing, so the two cannot be split from outside.

The vocabulary is loaded once and reused, which is the point: the same run with a fresh handle per pass would measure the 199,998-entry parse instead of the tokenizing.

Values

pub fn main() -> Nil

Load the vocabulary, build the fixed input, and print its size and count.

✨ Search Document