Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-2095

Address JVM warmup in performance tests

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Medium Medium
    • New Delhi Release
    • None
    • CPS-Core, NCMP
    • None

      Current performance tests are greatly affected by JVM warmup (e.g. Java's tiered compilation model). A few options:

      • Implement JVM warmup in our tests by executing each test operations many times, and only recording last result (needs to be done on a per-test basis)
      • Use Spock's EmbeddedSpecRunner to run entire existing test suite many times to warm up the JVM (only record last result)
      • Use Java Microbenchmark Harness (JMH) framework, which is annotation-based and can be easily configured to do separate warmup and measurement iterations. There are many other benefits of JMH, so this would be preferred solution, time permitting

            danielhanrahan Daniel Hanrahan
            danielhanrahan Daniel Hanrahan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: