diff --git a/modules/benchmark/micro/src/main/java/org/elasticsearch/benchmark/checksum/ChecksumBenchmarkTest.java b/modules/benchmark/micro/src/main/java/org/elasticsearch/benchmark/checksum/ChecksumBenchmarkTest.java index e9e7635c140..162d8ca7368 100644 --- a/modules/benchmark/micro/src/main/java/org/elasticsearch/benchmark/checksum/ChecksumBenchmarkTest.java +++ b/modules/benchmark/micro/src/main/java/org/elasticsearch/benchmark/checksum/ChecksumBenchmarkTest.java @@ -35,7 +35,14 @@ public class ChecksumBenchmarkTest { public static final int BATCH_SIZE = 16 * 1024; public static void main(String[] args) { - long dataSize = ByteSizeValue.parseBytesSizeValue("1g", null).bytes(); + System.out.println("Warning up"); + long warmSize = ByteSizeValue.parseBytesSizeValue("1g", null).bytes(); + crc(warmSize); + adler(warmSize); + md5(warmSize); + + long dataSize = ByteSizeValue.parseBytesSizeValue("10g", null).bytes(); + System.out.println("Running size: " + dataSize); crc(dataSize); adler(dataSize); md5(dataSize);