warm up with compression bench

This commit is contained in:
kimchy 2011-03-30 13:52:52 +02:00
parent fdbccf28b0
commit eafe686013
1 changed files with 8 additions and 1 deletions

View File

@ -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);