Package com.lmax.disruptor.collections

Examples of com.lmax.disruptor.collections.Histogram


      System.out.println(msg);
    }
  }

  static String createSamplingReport(final String name, final Histogram histogram) {
    final Histogram data = histogram;
    if (throughput) {
      return data.getMax() + " operations/second";
    }
    final String result = String.format(
        "avg=%.0f 99%%=%d 99.99%%=%d sampleCount=%d", data.getMean(), //
        data.getTwoNinesUpperBound(), //
        data.getFourNinesUpperBound(), //
        data.getCount() //
        );
    return result;
  }
View Full Code Here


    // ThreadContext.put("aKey", "mdcVal");
    PerfTest.println("Warming up the JVM...");
    final long t1 = System.nanoTime();

    // warmup at least 2 rounds and at most 1 minute
    final Histogram warmupHist = PerfTest.createHistogram();
    final long stop = System.currentTimeMillis() + (60 * 1000);
    final Runnable run1 = new Runnable() {
      @Override
            public void run() {
        for (int i = 0; i < 10; i++) {
View Full Code Here

    }
    final int LINES = 256 * 1024;

    final Thread[] threads = new Thread[threadCount];
    for (int i = 0; i < threads.length; i++) {
      final Histogram histogram = histograms[i];
      threads[i] = new Thread() {
        @Override
                public void run() {
//            int latencyCount = threadCount >= 16 ? 1000000 : 5000000;
            final int latencyCount = 5000000;
View Full Code Here

TOP

Related Classes of com.lmax.disruptor.collections.Histogram

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.