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

Use Worker API for Benchmark generators #235

Merged
merged 5 commits into from
Jul 10, 2024
Merged

Commits on Jul 4, 2024

  1. Use Worker API to generate benchmark code

    - Update the Benchmark JS/Wasm/Native source generation tasks to use the Worker API, so that `kotlin-compiler-embeddable` can be a compileOnly dependency, thus resolving https://youtrack.jetbrains.com/issue/KT-66764
    - Create `GenerateJsSourceWorker` and `GenerateWasmSourceWorker` for isolating the JS and Wasm generation code.
    - Updated the Js/Wasm/Native generation tasks to invoke the source generators in a Worker isolated classpath.
    - Created a new Configuration for declaring `kotlin-compiler-embeddable`, and pass it to the Js/Wasm/Native generation tasks.
    - Create a BenchmarkDependencies utility for defining all Configurations used in the plugin. (This also lays the groundwork for unifying the JMH version #147 (comment))
    - Updated BenchmarksPluginConstants to add `DEFAULT_KOTLIN_COMPILER_VERSION`, as sensible default for kotlin-compiler-embeddable.
    - Add opt-in annotation RequiresKotlinCompilerEmbeddable to highlight code that requires `kotlin-compiler-embeddable`
    - Some classes were updated to be `abstract`, to follow Gradle best practices for creating managed objects.
    
    This commit also contains formatting changes, as the code style is not consistent.
    adam-enko committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    279d309 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

  1. Configuration menu
    Copy the full SHA
    64139bb View commit details
    Browse the repository at this point in the history
  2. update TODOs

    adam-enko committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    10b5e19 View commit details
    Browse the repository at this point in the history
  3. update TODOs

    adam-enko committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    9590341 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2024

  1. Configuration menu
    Copy the full SHA
    1cc3186 View commit details
    Browse the repository at this point in the history