8217518: Crypto benchmarks not warming up in time
Summary: Adding +AlwaysPreTouch to crypto benchmarks to allow GC to warm up
Reviewed-by: redestad
--- 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)