Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting timeUnit in build.gradle.kts always overrides @OutputTimeUnit annotations #258

Open
felldo opened this issue Nov 16, 2023 · 0 comments

Comments

@felldo
Copy link
Contributor

felldo commented Nov 16, 2023

Describe the bug
When setting the timeUnit configuration, it always overrides any other setup OutputTimeUnit. For example you set the gradle configuration timeUnit to ms, you can no longer use the @OutputTimeUnit annotation to change it for a specific class or method. When removing the configurations, the annotations start working again.

To Reproduce
Steps to reproduce the behavior:

  1. Add timeUnit = "ms" to your jmh configuration in the build.gradle.kts file
  2. Add a @OutputTimeUnit(TimeUnit.NANOSECONDS) to a method or class benchmark.
  3. The result output is alway set to the value defined in the gradle configuration. When removing the configuration, setting it on the class and method level works with different values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant