kotlinx-benchmark
kotlinx-benchmark copied to clipboard
State annotation should not be mandatory for benchmark class
Good description of what jmh state is for.
It doesn't seem correct that for the js benchmark to run you must annotate the class with @State(Scope.Benchmark)
.
I believe the only requirement should be for the benchmark functions to be annotated with @Benchmark
.
If it is an intentional requirement, then I think it should be mentioned in the README.