From eafe6860139e736878fb84a57b4b779e4bd7b646 Mon Sep 17 00:00:00 2001 From: kimchy Date: Wed, 30 Mar 2011 13:52:52 +0200 Subject: [PATCH] warm up with compression bench --- .../benchmark/checksum/ChecksumBenchmarkTest.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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);