Skip to content

Instantly share code, notes, and snippets.

@nightcycle
Last active October 16, 2024 18:13
Show Gist options
  • Save nightcycle/3ecee1b598c4e1d26acd7a2899ff4350 to your computer and use it in GitHub Desktop.
Save nightcycle/3ecee1b598c4e1d26acd7a2899ff4350 to your computer and use it in GitHub Desktop.
--!nocheck
export type Profiler = {
start: (label: string) -> (),
stop: (t: number?) -> (),
}
export type BenchFunction<Parameter> = (
profiler: Profiler,
parameter: Parameter
) -> ()
export type BenchModule<Parameter> = {
ParameterGenerator: (() -> Parameter)?,
Functions: { [string]: BenchFunction<Parameter> },
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment