Properties config = new Properties();
config.setProperty(RuntimeProperties.QUIET_LOGGING, "true");
NodeFactory factory = NodeFactory.newInstance(config);
factory.setAutoDestroy(false);
Contribution contribution = new Contribution("c1", new File("target/test-classes").toURI().toString());
Node node = factory.createNode(new StringReader(composite), contribution);
testNode2(node);
node.stop();
int count = 3000;
long start = System.currentTimeMillis();
for (int i=0; i<count; i++) {
node.start();
node.stop();
}
long total = System.currentTimeMillis() - start;
System.out.println(count + " = " + total + " = " + total / (double)count);
// test it still works