Skip to content

Allow JVM to optimize code before running experiments #131

@rmartinsanta

Description

@rmartinsanta

Is your feature request related to a problem? Please describe.
When running a small number of iterations, specially if runtimes are short, the jump between interpret mode and compiled mode by the JVM after executing a method several times is pretty noticeable in the results, and could lead to wrong assumptions by the user.

Describe the solution you'd like
Allow the user to specify a fast instance that will be run before the main experiment for all configurations. This way, most code should be already compiled and cached by the JVM by the time the main experiment run. Additionally, during instance validation, we could guess which instance is the smallest one, if not specified by the user, by smallest load time / smallest file size, requiring zero configuration.

Additional context
https://www.baeldung.com/jvm-tiered-compilation

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions