# # This is a simple stress test for moonlight that is creating a # highly tesselated mesh sphere and measuring the time. import ml import java startTime=java.lang.System.currentTimeMillis() state=ml.core.State.getInstance() ogManager=state.getDocumentManager().getMainDocument().getOGManager(); createSphere=ogManager.createNodeByName("CreateSphere") createSphere.getProperty("divisionsU").setValue(800) createSphere.getProperty("divisionsV").setValue(800) ogManager.update() endTime=java.lang.System.currentTimeMillis() print "total time: " + str(endTime-startTime)