Package org.jredis.bench.Util

Examples of org.jredis.bench.Util.Timer


      }
     
      try {
        /* run benchmark workers */
        ready.await();                    // ready
        Timer timer = Timer.startNewTimer();        // set
        mark.countDown();                   // go
       
        System.out.print(" ...\n");
        completion.await();                 // ... done

        timer.mark();
       
        /* report */
          // overall - this is throughput
        System.out.format("===== %s =====\n",cmd.code);
        System.out.format("%d concurrent clients (%d %ss each) [host: %s]\n", threadCnt, reqCnt, cmd.code, host);
        System.out.format("  ==> %d total requests @ %f seconds\n", threadCnt*reqCnt, (float)timer.deltaAtMark(TimeUnit.SECONDS));
        System.out.format("  ==> %f/second\n", (float)timer.opsPerSecAtMark((long)threadCnt*reqCnt));
        System.out.println();
       
          // report for each - this is response time
        long max = Long.MIN_VALUE;
        long min = Long.MAX_VALUE;
View Full Code Here


      }
     
      try {
        /* run benchmark workers */
        ready.await();                    // ready
        Timer timer = Timer.startNewTimer();        // set
        mark.countDown();                   // go
       
        System.out.print(" ...\n");
        completion.await();                 // ... done

        timer.mark();
       
        /* report */
          // overall - this is throughput
        System.out.format("===== %s =====\n",cmd.code);
        System.out.format("%d concurrent clients (%d %ss each) [host: %s]\n", threadCnt, reqCnt, cmd.code, host);
        System.out.format("  ==> %d total requests @ %f seconds\n", threadCnt*reqCnt, (float)timer.deltaAtMark(TimeUnit.SECONDS));
        System.out.format("  ==> %f/second\n", (float)timer.opsPerSecAtMark(threadCnt*reqCnt));
        System.out.println();
       
          // report for each - this is response time
        long max = Long.MIN_VALUE;
        long min = Long.MAX_VALUE;
View Full Code Here

TOP

Related Classes of org.jredis.bench.Util.Timer

Copyright © 2018 www.massapicom. 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.