kotlinx-benchmark icon indicating copy to clipboard operation
kotlinx-benchmark copied to clipboard

State annotation should not be mandatory for benchmark class

Open Munzey opened this issue 4 years ago • 1 comments

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.

Munzey avatar Feb 08 '21 17:02 Munzey