public void addValue(long timestamp, double value) { if (closed) { throw new IllegalStateException("Compressor is closed"); } numEntries++; newestTimestamp = timestamp; compressor.addValue(timestamp, value); }
gc.addValue(uncompressedTimestamps[j], uncompressedDoubles[j]);
gc.addValue(uncompressedTimestamps[j], uncompressedDoubles[j]);
@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(); }