Package com.github.nmorel.gwtjackson.benchmark.client

Examples of com.github.nmorel.gwtjackson.benchmark.client.Operation


        if ( criteria.isSerialization() ) {
            if ( criteria.isSingletonMapper() ) {
                // warmup the mapper
                mapperProvider.getMapper().write( datas );
            }
            operations.add( new Operation( criteria.getNbIterations(), result.getResultSer() ) {
                @Override
                protected void doExecute() {
                    mapperProvider.getMapper().write( datas );
                }
            } );
        }

        if ( criteria.isDeserialization() ) {
            final String jsonInput = mapperProvider.getMapper().write( datas );
            operations.add( new Operation( criteria.getNbIterations(), result.getResultDeser() ) {
                @Override
                protected void doExecute() {
                    mapperProvider.getMapper().read( jsonInput );
                }
            } );
View Full Code Here

TOP

Related Classes of com.github.nmorel.gwtjackson.benchmark.client.Operation

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.