test/java/util/zip/TimeChecksum.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
jdk Cdiff test/java/util/zip/TimeChecksum.java
test/java/util/zip/TimeChecksum.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 118,127 ****
--- 118,128 ----
ByteBuffer buf;
System.out.println("---------- Adler32 ----------");
System.out.print("Warmup...");
time(adler32, data, iters, len);
+ time(adler32, data, 2*iters, 16); // warmup short case, too
time(adler32, ByteBuffer.wrap(data), iters);
buf = ByteBuffer.allocateDirect(len);
buf.put(data, 0, len);
buf.flip();
time(adler32, buf, iters);
*** 160,169 ****
--- 161,171 ----
}
System.out.println("\n---------- CRC32 ----------");
System.out.print("Warmup...");
time(crc32, data, iters, len);
+ time(crc32, data, 2*iters, 16); // warmup short case, too
time(crc32, ByteBuffer.wrap(data), iters);
buf = ByteBuffer.allocateDirect(len);
buf.put(data, 0, len);
buf.flip();
time(crc32, buf, iters);
test/java/util/zip/TimeChecksum.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File