public WrappedGorillaCompressor(long timestamp) { this.compressorOutput = new LongArrayOutput(16); this.compressor = new GorillaCompressor(timestamp, this.compressorOutput); this.oldestTimestamp = timestamp; this.newestTimestamp = timestamp; }
GorillaCompressor gc = new GorillaCompressor(blockStart, arrayOutput);
GorillaCompressor gc = new GorillaCompressor(blockStart, arrayOutput);
@Benchmark @OperationsPerInvocation(100000) public void encodingGorillaBenchmark(DataGenerator dg) { LongArrayOutput output = new LongArrayOutput(); GorillaCompressor c = new GorillaCompressor(dg.blockStart, output); for(int j = 0; j < dg.amountOfPoints; j++) { c.addValue(dg.uncompressedTimestamps[j], dg.uncompressedDoubles[j]); } c.close(); }
@Benchmark @OperationsPerInvocation(100000) public void encodingGorillaBenchmarkLong(DataGenerator dg) { LongArrayOutput output = new LongArrayOutput(); GorillaCompressor c = new GorillaCompressor(dg.blockStart, output); for(int j = 0; j < dg.amountOfPoints; j++) { c.addValue(dg.uncompressedTimestamps[j], dg.uncompressedValues[j]); } c.close(); }
@Benchmark @OperationsPerInvocation(100000) public void encodingGorillaBenchmark(DataGenerator dg) { LongArrayOutput output = new LongArrayOutput(); GorillaCompressor c = new GorillaCompressor(dg.blockStart, output); for(int j = 0; j < dg.amountOfPoints; j++) { c.addValue(dg.uncompressedTimestamps[j], dg.uncompressedDoubles[j]); } c.close(); }
@Benchmark @OperationsPerInvocation(100000) public void encodingGorillaBenchmarkLong(DataGenerator dg) { LongArrayOutput output = new LongArrayOutput(); GorillaCompressor c = new GorillaCompressor(dg.blockStart, output); for(int j = 0; j < dg.amountOfPoints; j++) { c.addValue(dg.uncompressedTimestamps[j], dg.uncompressedValues[j]); } c.close(); }