Examples of nanoTime()


Examples of org.locationtech.geogig.api.Platform.nanoTime()

        if (stack == null || command.context().repository() == null) {
            return (T) retVal;
        }

        final Platform platform = command.context().platform();
        long endTime = platform.nanoTime();
        boolean success = exception == null;
        stack = CallStack.pop(endTime, success);
        long ellapsed = stack.getEllapsedNanos();

        double millis = endTime * toMillisFactor;
 
View Full Code Here

Examples of 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 util.StopWatch.nanoTime()

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

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

Examples of util.StopWatch.nanoTime()

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

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

Examples of 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);

    //

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

Examples of util.StopWatch.nanoTime()

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

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

Examples of util.StopWatch.nanoTime()

        // iterate set
        final 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++) {
      final Object[] x = set.toArray();
View Full Code Here

Examples of util.StopWatch.nanoTime()

    timer.start();
    for (int k = 0; k < COUNT; k++) {
      final 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 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++) {
      BenchBasic.testEmptyCall0();
View Full Code Here

Examples of util.StopWatch.nanoTime()

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

    timer.start();
    for (int k = 0; k < COUNT * 10; k++) {
      final int[] array = BenchBasic.testMakeArray0(SIZE);
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.