Package com.thoughtworks.xstream.tools.benchmark

Examples of com.thoughtworks.xstream.tools.benchmark.Harness.addProduct()


            String name = null;
            if (commandLine.hasOption('p')) {
                name = commandLine.getOptionValue('p');
            }
            if (name == null || name.equals("DOM")) {
                harness.addProduct(new XStreamDom());
            }
            if (name == null || name.equals("JDOM")) {
                harness.addProduct(new XStreamJDom());
            }
            if (name == null || name.equals("DOM4J")) {
View Full Code Here


            }
            if (name == null || name.equals("DOM")) {
                harness.addProduct(new XStreamDom());
            }
            if (name == null || name.equals("JDOM")) {
                harness.addProduct(new XStreamJDom());
            }
            if (name == null || name.equals("DOM4J")) {
                harness.addProduct(new XStreamDom4J());
            }
            if (name == null || name.equals("XOM")) {
View Full Code Here

        // }
        // });
        harness.addMetric(new SerializationSpeedMetric(counter));
        harness.addMetric(new DeserializationSpeedMetric(counter, false));
        if (product == null) {
            harness.addProduct(new NoCache());
            harness.addProduct(new Cache122());
            harness.addProduct(new RealClassCache());
            harness.addProduct(new SerializedClassCache());
            harness.addProduct(new AliasedAttributeCache());
            harness.addProduct(new DefaultImplementationCache());
View Full Code Here

            }
            if (name == null || name.equals("JDOM")) {
                harness.addProduct(new XStreamJDom());
            }
            if (name == null || name.equals("DOM4J")) {
                harness.addProduct(new XStreamDom4J());
            }
            if (name == null || name.equals("XOM")) {
                harness.addProduct(new XStreamXom());
            }
            if (name == null || name.equals("BEAStAX")) {
View Full Code Here

            }
            if (name == null || name.equals("DOM4J")) {
                harness.addProduct(new XStreamDom4J());
            }
            if (name == null || name.equals("XOM")) {
                harness.addProduct(new XStreamXom());
            }
            if (name == null || name.equals("BEAStAX")) {
                harness.addProduct(new XStreamBEAStax());
            }
            if (name == null || name.equals("Woodstox")) {
View Full Code Here

        // });
        harness.addMetric(new SerializationSpeedMetric(counter));
        harness.addMetric(new DeserializationSpeedMetric(counter, false));
        if (product == null) {
            harness.addProduct(new NoCache());
            harness.addProduct(new Cache122());
            harness.addProduct(new RealClassCache());
            harness.addProduct(new SerializedClassCache());
            harness.addProduct(new AliasedAttributeCache());
            harness.addProduct(new DefaultImplementationCache());
            harness.addProduct(new NoCache());
View Full Code Here

        harness.addMetric(new SerializationSpeedMetric(counter));
        harness.addMetric(new DeserializationSpeedMetric(counter, false));
        if (product == null) {
            harness.addProduct(new NoCache());
            harness.addProduct(new Cache122());
            harness.addProduct(new RealClassCache());
            harness.addProduct(new SerializedClassCache());
            harness.addProduct(new AliasedAttributeCache());
            harness.addProduct(new DefaultImplementationCache());
            harness.addProduct(new NoCache());
        } else {
View Full Code Here

            }
            if (name == null || name.equals("XOM")) {
                harness.addProduct(new XStreamXom());
            }
            if (name == null || name.equals("BEAStAX")) {
                harness.addProduct(new XStreamBEAStax());
            }
            if (name == null || name.equals("Woodstox")) {
                harness.addProduct(new XStreamWoodstox());
            }
            if (JVM.is16() && (name == null || name.equals("SJSXP"))) {
View Full Code Here

            }
            if (name == null || name.equals("BEAStAX")) {
                harness.addProduct(new XStreamBEAStax());
            }
            if (name == null || name.equals("Woodstox")) {
                harness.addProduct(new XStreamWoodstox());
            }
            if (JVM.is16() && (name == null || name.equals("SJSXP"))) {
                harness.addProduct(new XStreamSjsxp());
            }
            if (name == null || name.equals("Xpp3")) {
View Full Code Here

        harness.addMetric(new DeserializationSpeedMetric(counter, false));
        if (product == null) {
            harness.addProduct(new NoCache());
            harness.addProduct(new Cache122());
            harness.addProduct(new RealClassCache());
            harness.addProduct(new SerializedClassCache());
            harness.addProduct(new AliasedAttributeCache());
            harness.addProduct(new DefaultImplementationCache());
            harness.addProduct(new NoCache());
        } else {
            harness.addProduct(product);
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.