test/java/util/zip/TimeChecksum.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/test/java/util/zip/TimeChecksum.java	Thu May 30 12:42:19 2013
--- new/test/java/util/zip/TimeChecksum.java	Thu May 30 12:42:18 2013

*** 1,7 **** --- 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, 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, 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