Package org.eclipse.test.performance

Examples of org.eclipse.test.performance.PerformanceMeter.start()


    PerformanceMeter meter = performance.createPerformanceMeter("SimpleServerStressTest#testCreateProject");
    //create workspace
    String workspaceName = SimpleServerStressTest.class.getName() + "#testCreateProject";
    createWorkspace(workspaceName);
    final int PROJECT_COUNT = 1000;//increase this value for a real stress test
    meter.start();
    long start = System.currentTimeMillis();
    for (int i = 0; i < PROJECT_COUNT; i++) {
      //create a project
      String projectName = "Project" + i;
      WebRequest request = getCreateProjectRequest(workspaceLocation, projectName, null);
View Full Code Here


    webConversation.setExceptionsThrownOnErrorStatus(false);

    Performance performance = Performance.getDefault();
    PerformanceMeter meter = performance.createPerformanceMeter("SimpleServerUserStressTest#testCreateUsers");
    final int USER_COUNT = 10001;
    meter.start();
    long start = System.currentTimeMillis();
    for (int i = 0; i < USER_COUNT; i++) {

      long current_start = System.currentTimeMillis();
View Full Code Here

    public void testPerformanceMeterFactory() {
    PerformanceMeter meter= Performance.getDefault().createPerformanceMeter("scenarioId"); //$NON-NLS-1$
   
    assertTrue(meter instanceof OSPerformanceMeter);
 
    meter.start();
    meter.stop();
   
    meter.commit();
   
    meter.dispose();
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.