Skip to content
Permalink
Browse files
No console output.
  • Loading branch information
garydgregory committed May 5, 2022
1 parent 06ad5fa commit c1faef46726be4ce43ccff8d20fe834dd521fdcf
Showing 1 changed file with 4 additions and 4 deletions.
@@ -100,8 +100,8 @@ public void testRoundtripWithOneBigWrite() throws Exception {
sos.write(b[0]);
sos.write(b, 1, b.length - 1); // must be split into multiple compressed chunks
}
System.err.println(input.getName() + " written, uncompressed bytes: " + input.length()
+ ", compressed bytes: " + outputSz.length() + " after " + (System.currentTimeMillis() - start) + "ms");
// System.err.println(input.getName() + " written, uncompressed bytes: " + input.length()
// + ", compressed bytes: " + outputSz.length() + " after " + (System.currentTimeMillis() - start) + "ms");
try (InputStream is = Files.newInputStream(input.toPath());
CompressorInputStream sis = new CompressorStreamFactory()
.createCompressorInputStream("snappy-framed", Files.newInputStream(outputSz.toPath()))) {
@@ -120,8 +120,8 @@ private void testRoundtrip(final File input) throws Exception {
.createCompressorOutputStream("snappy-framed", os)) {
IOUtils.copy(is, sos);
}
System.err.println(input.getName() + " written, uncompressed bytes: " + input.length()
+ ", compressed bytes: " + outputSz.length() + " after " + (System.currentTimeMillis() - start) + "ms");
// System.err.println(input.getName() + " written, uncompressed bytes: " + input.length()
// + ", compressed bytes: " + outputSz.length() + " after " + (System.currentTimeMillis() - start) + "ms");
try (InputStream is = Files.newInputStream(input.toPath());
CompressorInputStream sis = new CompressorStreamFactory()
.createCompressorInputStream("snappy-framed", Files.newInputStream(outputSz.toPath()))) {

0 comments on commit c1faef4

Please sign in to comment.