From 78391fac18eef414d8d233bde481e289df860c65 Mon Sep 17 00:00:00 2001 From: Zhengyu Gu Date: Thu, 23 Oct 2025 08:29:38 -0400 Subject: [PATCH 1/3] Shorten jmh execution time --- ddprof-stresstest/build.gradle | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ddprof-stresstest/build.gradle b/ddprof-stresstest/build.gradle index 9f0737113..167aeeeac 100644 --- a/ddprof-stresstest/build.gradle +++ b/ddprof-stresstest/build.gradle @@ -22,6 +22,14 @@ sourceSets { } } +jmh { + iterations = 3 + timeOnIteration = '3s' + warmup = '1s' + warmupIterations = 3 + jvmArgsAppend = ['-XX:+CriticalJNINatives'] +} + jmhJar { manifest { attributes( @@ -44,4 +52,4 @@ task runStressTests(type: Exec) { tasks.withType(JavaCompile).configureEach { options.compilerArgs.addAll(['--release', '8']) -} \ No newline at end of file +} From 545853737fc4a144afe5bdedc1b9a77bec5dedb0 Mon Sep 17 00:00:00 2001 From: Zhengyu Gu Date: Thu, 23 Oct 2025 09:42:46 -0400 Subject: [PATCH 2/3] Cleanup --- ddprof-stresstest/build.gradle | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ddprof-stresstest/build.gradle b/ddprof-stresstest/build.gradle index 167aeeeac..d65e50b4f 100644 --- a/ddprof-stresstest/build.gradle +++ b/ddprof-stresstest/build.gradle @@ -27,7 +27,6 @@ jmh { timeOnIteration = '3s' warmup = '1s' warmupIterations = 3 - jvmArgsAppend = ['-XX:+CriticalJNINatives'] } jmhJar { @@ -52,4 +51,4 @@ task runStressTests(type: Exec) { tasks.withType(JavaCompile).configureEach { options.compilerArgs.addAll(['--release', '8']) -} +} \ No newline at end of file From cfdef1ada66305e4ce4a9d4acfeae624ce53cb5c Mon Sep 17 00:00:00 2001 From: Zhengyu Gu Date: Thu, 23 Oct 2025 10:30:13 -0400 Subject: [PATCH 3/3] Fix format --- ddprof-stresstest/build.gradle | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ddprof-stresstest/build.gradle b/ddprof-stresstest/build.gradle index d65e50b4f..32040a2b7 100644 --- a/ddprof-stresstest/build.gradle +++ b/ddprof-stresstest/build.gradle @@ -23,10 +23,10 @@ sourceSets { } jmh { - iterations = 3 - timeOnIteration = '3s' - warmup = '1s' - warmupIterations = 3 + iterations = 3 + timeOnIteration = '3s' + warmup = '1s' + warmupIterations = 3 } jmhJar {