8217518: Crypto benchmarks not warming up in time
authorapetcher
Thu, 24 Jan 2019 09:25:06 -0500
changeset 53470 9459533ef916
parent 53469 1d953ae4d39f
child 53471 525f212f1bda
8217518: Crypto benchmarks not warming up in time Summary: Adding +AlwaysPreTouch to crypto benchmarks to allow GC to warm up Reviewed-by: redestad
test/micro/org/openjdk/bench/javax/crypto/full/CryptoBase.java
--- 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)