Package com.barchart.udt.util

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


    log.info("get/set/update array; nanos={}", nanos);
    timer.start();
    for (int k = 0; k < COUNT; k++) {
      socket.testGetSetArray0(arrayInt, false);
    }
    timer.stop();
    nanos = timer.nanoTime() / COUNT;
    log.info("get/set/abort array; nanos={}", nanos);

    Object[] array = new Object[SIZE];
    timer.start();
View Full Code Here


    Object[] array = new Object[SIZE];
    timer.start();
    for (int k = 0; k < COUNT; k++) {
      socket.testIterateArray0(array);
    }
    timer.stop();
    nanos = timer.nanoTime() / COUNT / SIZE;
    log.info("iterate object array; nanos={}", nanos);

    //
    Set<Object> set = new HashSet<Object>();
View Full Code Here

    }
    timer.start();
    for (int k = 0; k < COUNT / 10; k++) {
      socket.testIterateSet0(set);
    }
    timer.stop();
    nanos = timer.nanoTime() / COUNT / SIZE * 10;
    log.info("iterate object set; nanos={}", nanos);

    //

View Full Code Here

    byte[] fillArray = new byte[FILL_SIZE];
    timer.start();
    for (int k = 0; k < COUNT; k++) {
      socket.testFillArray0(fillArray);
    }
    timer.stop();
    nanos = timer.nanoTime() / COUNT;
    log.info("fillArray; nanos={}", nanos);

    ByteBuffer fillBuffer = ByteBuffer.allocateDirect(FILL_SIZE);
    timer.start();
View Full Code Here

    ByteBuffer fillBuffer = ByteBuffer.allocateDirect(FILL_SIZE);
    timer.start();
    for (int k = 0; k < COUNT; k++) {
      socket.testFillBuffer0(fillBuffer);
    }
    timer.stop();
    nanos = timer.nanoTime() / COUNT;
    log.info("fillBuffer; nanos={}", nanos);

  }
View Full Code Here

            for (int index = Byte.MIN_VALUE; index <= Byte.MAX_VALUE; index++) {
              int value = streamIn.read();
              assertEquals(value, index);
            }
          }
          timer.stop();
          log.info("timer : {}", timer.nanoString());
          synchronized (this) {
            this.notifyAll();
          }
        } catch (Exception e) {
View Full Code Here

            streamOut.write(arrayOut);
            final int count = streamIn.read(arrayIn);
            assertEquals(count, size);
            assertTrue(Arrays.equals(arrayIn, arrayOut));
          }
          timer.stop();
          log.info("timer : {}", timer.nanoString());
          synchronized (this) {
            this.notifyAll();
          }
        } catch (Exception e) {
View Full Code Here

            streamOut.write(arrayOut);
            final int count = streamIn.read(arrayIn);
            assertEquals(count, size);
            assertTrue(Arrays.equals(arrayIn, arrayOut));
          }
          timer.stop();
          log.info("timer : {}", timer.nanoString());
          synchronized (this) {
            this.notifyAll();
          }
        } catch (Exception e) {
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.