changeset 54551:9459533ef916

8217518: Crypto benchmarks not warming up in time Summary: Adding +AlwaysPreTouch to crypto benchmarks to allow GC to warm up Reviewed-by: redestad
author apetcher
date Thu, 24 Jan 2019 09:25:06 -0500
parents 1d953ae4d39f
children 525f212f1bda
files test/micro/org/openjdk/bench/javax/crypto/full/CryptoBase.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/micro/org/openjdk/bench/javax/crypto/full/CryptoBase.java	Thu Jan 24 08:44:26 2019 -0500
+++ b/test/micro/org/openjdk/bench/javax/crypto/full/CryptoBase.java	Thu Jan 24 09:25:06 2019 -0500
@@ -45,7 +45,7 @@
 import java.util.concurrent.TimeUnit;
 
 
-@Fork(5)
+@Fork(jvmArgsAppend = {"-XX:+AlwaysPreTouch"}, value = 5)
 @Warmup(iterations = 3, time = 3)
 @Measurement(iterations = 8, time = 2)
 @OutputTimeUnit(TimeUnit.SECONDS)