Examples of XorBinaryPacking


Examples of me.lemire.integercompression.differential.XorBinaryPacking




    private static void checkCompressAndUncompress(String label, int[] data) {
        XorBinaryPacking codec = new XorBinaryPacking();
        int[] compBuf = TestUtils.compress(codec, data);
        int[] decompBuf = TestUtils.uncompress(codec, compBuf, data.length);
        assertArrayEquals(data, decompBuf);
    }
View Full Code Here

Examples of me.lemire.integercompression.differential.XorBinaryPacking

    /**
     *
     */
    @Test
    public void checkXorBinaryPacking() {
        testZeroInZeroOut(new XorBinaryPacking());
        testSpurious(new XorBinaryPacking());
    }
View Full Code Here

Examples of me.lemire.integercompression.differential.XorBinaryPacking

    /**
     *
     */
    @Test
    public void checkXorBinaryPacking1() {
        IntegerCODEC c = new IntegratedComposition(new XorBinaryPacking(),
                new IntegratedVariableByte());
        testZeroInZeroOut(c);
    }
View Full Code Here

Examples of me.lemire.integercompression.differential.XorBinaryPacking

    /**
     *
     */
    @Test
    public void checkXorBinaryPacking2() {
        IntegerCODEC c = new IntegratedComposition(new XorBinaryPacking(),
                new IntegratedVariableByte());
        testUnsorted(c);
    }
View Full Code Here

Examples of me.lemire.integercompression.differential.XorBinaryPacking

    /**
     *
     */
    @Test
    public void checkXorBinaryPacking3() {
        IntegerCODEC c = new IntegratedComposition(new XorBinaryPacking(),
                new IntegratedVariableByte());
        IntegerCODEC co = new IntegratedComposition(new XorBinaryPacking(),
                new IntegratedVariableByte());
        test(c, co, 5, 10);
        test(c, co, 5, 14);
        test(c, co, 2, 18);
    }
View Full Code Here

Examples of me.lemire.integercompression.differential.XorBinaryPacking

         */
        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);
View Full Code Here

Examples of me.lemire.integercompression.differential.XorBinaryPacking

                                repeat, true);
                        System.out.println();

                        {
                                IntegerCODEC c = new Composition(
                                        new XorBinaryPacking(),
                                        new VariableByte());
                                testCodec(csvLog, sparsity, c, data, repeat,
                                        false);
                                testCodec(csvLog, sparsity, c, data, repeat,
                                        false);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.