Skip to content

feat: add JIT warmup phase and measurement to Java instrumentation#1677

Closed
HeshamHM28 wants to merge 2 commits into
omni-javafrom
feat/java/jit-warmup-phase
Closed

feat: add JIT warmup phase and measurement to Java instrumentation#1677
HeshamHM28 wants to merge 2 commits into
omni-javafrom
feat/java/jit-warmup-phase

Conversation

@HeshamHM28
Copy link
Copy Markdown
Contributor

Summary

  • Adds a dedicated untimed warmup loop before the timed measurement loop in Java test instrumentation
  • Previously, all inner loop iterations were timed from the start, meaning early iterations ran on interpreted/unoptimized JVM bytecode and skewed benchmark results
  • The warmup phase executes the target method 50 times (configurable via CODEFLASH_WARMUP_ITERATIONS env var) before any timing begins, giving the JIT compiler a chance to optimize the hot path
  • Warmup exceptions are silently caught so failures during warmup don't break the benchmark run

@HeshamHM28 HeshamHM28 closed this Feb 26, 2026
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

Successfully merging this pull request may close these issues.

1 participant