Package de.javakaffee.web.msm.serializer.kryo

Examples of de.javakaffee.web.msm.serializer.kryo.KryoTranscoder


       
        // some warmup
        final int warmupCycles = 100000;
        warmup( manager, new JavaSerializationTranscoder(), warmupCycles, 100, 3 );
        warmup( manager, new JavolutionTranscoder( Thread.currentThread().getContextClassLoader(), false ), warmupCycles, 100, 3 );
        warmup( manager, new KryoTranscoder(), warmupCycles, 100, 3 );
        recover();

        benchmark( manager, 10, 500, 4 /* 4^4 = 256 */ );
        benchmark( manager, 10, 100, 3 /* 3^3 = 27 */ );
        benchmark( manager, 10, 10, 2 /* 2^2 = 4 */ );
View Full Code Here


        recover();

        final Stats kryoSerStats = new Stats();
        final Stats kryoDeSerStats = new Stats();
        benchmark( manager, new KryoTranscoder(), kryoSerStats, kryoDeSerStats, rounds, countPersons, nodesPerEdge );
       
        System.out.println( "Serialization,Size,Ser-Min,Ser-Avg,Ser-Max,Deser-Min,Deser-Avg,Deser-Max");
        System.out.println( toCSV( "Java", javaSerStats, javaDeSerStats ) );
        System.out.println( toCSV( "Javolution", javolutionSerStats, javolutionDeSerStats ) );
        System.out.println( toCSV( "Kryo", kryoSerStats, kryoDeSerStats ) );
View Full Code Here

TOP

Related Classes of de.javakaffee.web.msm.serializer.kryo.KryoTranscoder

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.