Last active
October 16, 2024 18:13
-
-
Save nightcycle/3ecee1b598c4e1d26acd7a2899ff4350 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--!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