Kotlin / kotlinx-benchmark

Kotlin multiplatform benchmarking toolkit
Apache License 2.0
499 stars 40 forks source link

#130: Support benchmarks having @State annotations in parent classes #193

Open 07jasjeet opened 6 months ago

07jasjeet commented 6 months ago

Targets #130

Changelog

  1. Whenever a parent of a child class is directly or indirectly annotated with @State annotation, our child class will also be considered when generating benchmarks.
  2. Supplimentary annotations like @Measurement @Warmup @OutputTime @BenchmarkMode are considered in this order: child -> top most annotated parent

Note: This is a phase-1 implementation, with just the basic idea laid out.

qurbonzoda commented 6 months ago

Note: This is a phase-1 implementation, with just the basic idea laid out.

I would appreciate it if you could clarify what exactly you think should be included in phase 1.