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

Support debug build configuration for K/N

Open fzhinkin opened this issue 1 year ago • 1 comments
trafficstars

Currently, kotlinx-benchmark implicitly use release configuration for K/N builds. That's absolutely sane and reasonable default. However, in some cases (like this), performance need to be collected and validated for debug builds.

It would be nice to have an option to choose K/N build configuration, with release still being a default.

fzhinkin avatar Feb 15 '24 09:02 fzhinkin

Probably, the build configuration could be configured when a benchmarking target is declared. Something like this:

benchmark {
    targets {
        register("macosArm64") {
             this as NativeBenchmarkTarget
             buildType = NativeBuildType.DEBUG
             // or simply, debug = true
        }
    }
}

fzhinkin avatar Feb 15 '24 09:02 fzhinkin