Skip to content

Provide a way to setup JVM args for a task generating JMH benchmarks #305

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

Open
fzhinkin opened this issue May 2, 2025 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@fzhinkin
Copy link
Collaborator

fzhinkin commented May 2, 2025

There's no way to specify JVM args for JmhBytecodeGeneratorTask (or, to be more precise, for its worker). As a result, it's kinda problematic to benchmark JVM-specific code that requires additional flags to work (like, --enable-preview).

Currently, benchmark generation fails with something like:

Execution failed for task ':mainBenchmarkGenerate'.
> There was a failure while executing work items
   > A failure occurred while executing kotlinx.benchmark.gradle.JmhBytecodeGeneratorWorker
      > Preview features are not enabled for org/example/PreviewApiBenchmark (class file version 69.65535). Try running with '--enable-preview'
@fzhinkin fzhinkin added the enhancement New feature or request label May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant