Skip to content

Conversation

@zhengyu123
Copy link
Contributor

What does this PR do?:

Shorten jmh task execution time to a more manageable duration

Motivation:
Current jmh task takes about 4 hours and 18 minutes to complete on my 8 cores/16 threads, 3GHZ machine, because each benchmark composes 5 warmup iterations and 5 measurement iterations, each iteration takes 10s, and each benchmark is executed 5 times.

Long execution time does not necessary result in more accurate numbers, but limits its utilization.

This change shorten the execution time by reducing warmup and measurement iterations to 3, always reducing warmup to 1s per iteration and measurement to 3s per iteration, total execution time down to about 30 minutes.

Additional Notes:

How to test the change?:
Run benchmark with command line:
gradlew jmh

For Datadog employees:

  • If this PR touches code that signs or publishes builds or packages, or handles
    credentials of any kind, I've requested a review from @DataDog/security-design-and-guidance.
  • This PR doesn't touch any of that.
  • JIRA: [JIRA-XXXX]

Unsure? Have a question? Request a review!

Copy link
Collaborator

@jbachorik jbachorik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zhengyu123 zhengyu123 merged commit b3b05d6 into main Oct 23, 2025
93 of 94 checks passed
@zhengyu123 zhengyu123 deleted the fix_jmh branch October 23, 2025 15:42
@github-actions github-actions bot added this to the 1.34.0 milestone Oct 23, 2025
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.

3 participants