kevin.cianfarini
08/21/2020, 3:30 AM@Fork(1)
@Warmup(iterations = 5, time = 2)
@Measurement(iterations = 5, time = 2)
@State(Scope.Benchmark)
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
open class Sha1Benchmark {
}
produces the corresponding error?
> Task :okio:jvm:jmh:jmhRunBytecodeGenerator FAILED
Processing 15 classes from /home/kevin/code/okio/okio/jvm/jmh/build/classes/java/jmh with "reflection" generator
Processing 2 classes from /home/kevin/code/okio/okio/jvm/jmh/build/classes/kotlin/jmh with "reflection" generator
Writing out Java source to /home/kevin/code/okio/okio/jvm/jmh/build/jmh-generated-sources and resources to /home/kevin/code/okio/okio/jvm/jmh/build/jmh-generated-resources
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':okio:jvm:jmh:jmhRunBytecodeGenerator'.
> A failure occurred while executing me.champeau.gradle.JmhBytecodeGeneratorRunnable
> Generation of JMH bytecode failed with 1 errors:
- Benchmark classes should not be final.
[com.squareup.okio.benchmarks.Sha1Benchmark]
kevin.cianfarini
08/21/2020, 3:31 AMopen
.
https://github.com/Kotlin/kotlin-benchmarks/blob/master/src/main/kotlin/org/jetbrains/ClassArrayBenchmark.kt