Package webit.script

Source Code of webit.script.TestForVisualVM

// Copyright (c) 2013-2014, Webit Team. All Rights Reserved.
package webit.script;

import java.io.IOException;
import webit.script.exceptions.ResourceNotFoundException;
import webit.script.io.impl.DiscardOut;

/**
*
* @author Zqq
*/
public class TestForVisualVM {

    public static class Start {

        public static void start() {
        }
    }

    //@Test
    public void test() throws ResourceNotFoundException, IOException {
        int times = 10000;
        Engine engine = EngineManager.getEngine();

        Template template = engine.getTemplate("/helloTest.wit");
        DiscardOut out = new DiscardOut();

        TestForVisualVM.Start.start();
        for (int i = 0; i < times; i++) {
            //template.reset();
            //template.reload();
            template.merge(out);
        }
    }
}
TOP

Related Classes of webit.script.TestForVisualVM

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.