Examples of nanoTime()


Examples of com.barchart.udt.util.StopWatch.nanoTime()

    timer.start();
    for (int k = 0; k < COUNT; k++) {
      // baseline
    }
    timer.stop();
    nanos = timer.nanoTime() / COUNT;
    log.info("baseline nanos={}", nanos);

    timer.start();
    for (int k = 0; k < COUNT; k++) {
      // small array
View Full Code Here

Examples of com.barchart.udt.util.StopWatch.nanoTime()

    for (int k = 0; k < COUNT; k++) {
      // small array
      byte[] array = new byte[128];
    }
    timer.stop();
    nanos = timer.nanoTime() / COUNT;
    log.info("make small array; nanos={}", nanos);

    timer.start();
    for (int k = 0; k < COUNT; k++) {
      // medium array
View Full Code Here

Examples of com.barchart.udt.util.StopWatch.nanoTime()

    for (int k = 0; k < COUNT; k++) {
      // medium array
      byte[] array = new byte[1024];
    }
    timer.stop();
    nanos = timer.nanoTime() / COUNT;
    log.info("make medium array; nanos={}", nanos);

    int[] arrayInt = new int[SIZE];
    timer.start();
    for (int k = 0; k < COUNT; k++) {
View Full Code Here

Examples of com.barchart.udt.util.StopWatch.nanoTime()

    timer.start();
    for (int k = 0; k < COUNT; k++) {
      Arrays.fill(arrayInt, 1235678);
    }
    timer.stop();
    nanos = timer.nanoTime() / COUNT / SIZE;
    log.info("fill array; nanos={}", nanos);

    //

    Integer[] array = new Integer[1024];
View Full Code Here

Examples of com.barchart.udt.util.StopWatch.nanoTime()

        // iterate array
        Integer x = i;
      }
    }
    timer.stop();
    nanos = timer.nanoTime() / COUNT / 1024;
    log.info("iterate array; nanos={}", nanos);

    // SET
    Set<Integer> set = new HashSet<Integer>();
    for (int k = 0; k < 1024; k++) {
View Full Code Here

Examples of com.barchart.udt.util.StopWatch.nanoTime()

        // iterate set
        Integer x = i;
      }
    }
    timer.stop();
    nanos = timer.nanoTime() / COUNT / 1024;
    log.info("iterate set; nanos={}", nanos);
    //
    timer.start();
    for (int k = 0; k < COUNT; k++) {
      Object[] x = set.toArray();
View Full Code Here

Examples of com.barchart.udt.util.StopWatch.nanoTime()

    timer.start();
    for (int k = 0; k < COUNT; k++) {
      Object[] x = set.toArray();
    }
    timer.stop();
    nanos = timer.nanoTime() / COUNT;
    log.info("set to array; nanos={}", nanos);

  }

  static void testJNI() throws Exception {
View Full Code Here

Examples of com.barchart.udt.util.StopWatch.nanoTime()

    timer.start();
    for (int k = 0; k < COUNT; k++) {
      socket.testEmptyCall0();
    }
    timer.stop();
    nanos = timer.nanoTime() / COUNT;
    log.info("empty call; nanos={}", nanos);

    timer.start();
    for (int k = 0; k < COUNT * 10; k++) {
      int[] array = socket.testMakeArray0(SIZE);
View Full Code Here

Examples of com.barchart.udt.util.StopWatch.nanoTime()

    timer.start();
    for (int k = 0; k < COUNT * 10; k++) {
      int[] array = socket.testMakeArray0(SIZE);
    }
    timer.stop();
    nanos = timer.nanoTime() / COUNT / 10;
    log.info("make arrray; nanos={}", nanos);

    int[] arrayInt = new int[SIZE];
    timer.start();
    for (int k = 0; k < COUNT; k++) {
View Full Code Here

Examples of com.barchart.udt.util.StopWatch.nanoTime()

    timer.start();
    for (int k = 0; k < COUNT; k++) {
      socket.testGetSetArray0(arrayInt, true);
    }
    timer.stop();
    nanos = timer.nanoTime() / COUNT;
    log.info("get/set/update array; nanos={}", nanos);
    timer.start();
    for (int k = 0; k < COUNT; k++) {
      socket.testGetSetArray0(arrayInt, false);
    }
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.