Package me.lemire.integercompression

Examples of me.lemire.integercompression.FastPFOR128


        public static void run(final PrintWriter csvWriter, final int count, final int length) {
                IntegerCODEC[] codecs = { new JustCopy(), new BinaryPacking(),
                        new DeltaZigzagBinaryPacking(),
                        new DeltaZigzagVariableByte(),
                        new IntegratedBinaryPacking(), new XorBinaryPacking(),
                        new FastPFOR128(), new FastPFOR()};

                csvWriter
                        .format("\"Dataset\",\"CODEC\",\"Bits per int\","
                                + "\"Compress speed (MiS)\",\"Decompress speed (MiS)\"\n");

                benchmark(csvWriter, codecs, count, length, DEFAULT_MEAN,
                        DEFAULT_RANGE);
                benchmark(csvWriter, codecs, count, length, DEFAULT_MEAN >> 5,
                        DEFAULT_RANGE);

                IntegerCODEC[] codecs2 = { new JustCopy(), new BinaryPacking(),
                        new DeltaZigzagBinaryPacking(),
                        new DeltaZigzagVariableByte(),
                        new IntegratedBinaryPacking(), new XorBinaryPacking(),
                        new FastPFOR128(),new FastPFOR(), };

                int freq = length / 4;
                benchmarkSine(csvWriter, codecs2, count, length,
                        DEFAULT_MEAN >> 0, DEFAULT_RANGE >> 0, freq);
                benchmarkSine(csvWriter, codecs2, count, length,
View Full Code Here


                        int[][] data = generateTestData(cdg, N, nbr, sparsity);
                        System.out.println("# generating random data... ok.");


                        testCodec(csvLog, sparsity, new Composition(
                                new FastPFOR128(), new VariableByte()), data,
                                repeat, false);
                        testCodec(csvLog, sparsity, new Composition(
                                new FastPFOR128(), new VariableByte()), data,
                                repeat, false);
                        testCodec(csvLog, sparsity, new Composition(
                                new FastPFOR128(), new VariableByte()), data,
                                repeat, true);
                        System.out.println();
                        testCodec(csvLog, sparsity, new Composition(
                                new FastPFOR(), new VariableByte()), data,
                                repeat, false);
View Full Code Here

TOP

Related Classes of me.lemire.integercompression.FastPFOR128

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.