Examples of printThroughput()


Examples of ch.qos.logback.core.contention.ThreadedThroughputCalculator.printThroughput()

    for (int i = 0; i < 2; i++) {
      tp.execute(buildArray(LockingModel.NOLOCK));
    }

    tp.execute(buildArray(LockingModel.NOLOCK));
    tp.printThroughput("No lock:   ", true);
  }

  static SelectiveLockRunnable[] buildArray(LockingModel model) {
    SelectiveLockRunnable[] array = new SelectiveLockRunnable[THREAD_COUNT];
    for (int i = 0; i < THREAD_COUNT; i++) {
View Full Code Here

Examples of ch.qos.logback.core.contention.ThreadedThroughputCalculator.printThroughput()

      tp.execute(buildArray(LockingModel.UNFAIR));
      tp.execute(buildArray(LockingModel.FAIR));
    }
   
    tp.execute(buildArray(LockingModel.SYNC));
    tp.printThroughput("Sync:   ");

    tp.execute(buildArray(LockingModel.UNFAIR));
    tp.printThroughput("Unfair: ");

    tp.execute(buildArray(LockingModel.FAIR));
View Full Code Here

Examples of ch.qos.logback.core.contention.ThreadedThroughputCalculator.printThroughput()

   
    tp.execute(buildArray(LockingModel.SYNC));
    tp.printThroughput("Sync:   ");

    tp.execute(buildArray(LockingModel.UNFAIR));
    tp.printThroughput("Unfair: ");

    tp.execute(buildArray(LockingModel.FAIR));
    tp.printThroughput("Fair:   ");
  }
View Full Code Here

Examples of ch.qos.logback.core.contention.ThreadedThroughputCalculator.printThroughput()

    tp.execute(buildArray(LockingModel.UNFAIR));
    tp.printThroughput("Unfair: ");

    tp.execute(buildArray(LockingModel.FAIR));
    tp.printThroughput("Fair:   ");
  }

  static SelectiveLockRunnable[] buildArray(LockingModel model) {
    SelectiveLockRunnable[] array = new SelectiveLockRunnable[THREAD_COUNT];
    for (int i = 0; i < THREAD_COUNT; i++) {
View Full Code Here

Examples of ch.qos.logback.core.contention.ThreadedThroughputCalculator.printThroughput()

      tp.execute(buildArray(FormattingModel.SDF));
      tp.execute(buildArray(FormattingModel.JODA));
    }

    tp.execute(buildArray(FormattingModel.JODA));
    tp.printThroughput("JODA: ");
   
    tp.execute(buildArray(FormattingModel.SDF));
    tp.printThroughput("SDF:  ");

View Full Code Here

Examples of ch.qos.logback.core.contention.ThreadedThroughputCalculator.printThroughput()

    tp.execute(buildArray(FormattingModel.JODA));
    tp.printThroughput("JODA: ");
   
    tp.execute(buildArray(FormattingModel.SDF));
    tp.printThroughput("SDF:  ");


  }

  static SelectiveDateFormattingRunnable[] buildArray(FormattingModel model) {
View Full Code Here

Examples of ch.qos.logback.core.contention.ThreadedThroughputCalculator.printThroughput()

    for (int i = 0; i < 2; i++) {
      tp.execute(buildArray(logger));
    }

    tp.execute(buildArray(logger));
    tp.printThroughput("File:   ");
    lc.stop();
  }

  static Logger buildLoggerContext(LoggerContext lc) {
    Logger root = lc.getLogger(Logger.ROOT_LOGGER_NAME);
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.