Package org.apache.niolex.commons.test

Examples of org.apache.niolex.commons.test.StopWatch.done()


            for (int j = 0; j < 10000; ++j) {
                Check.isTrue(map.get(j).booleanValue() == (j % 2 == 0));
            }
            s.stop();
        }
        w.done();
        w.print();
        // --
        w.begin(true);
        for (int i = 0; i < 1000; ++i) {
            TIntCharMap primary = new TIntCharHashMap();
View Full Code Here


            for (int j = 0; j < 10000; ++j) {
                Check.isTrue(primary.get(j) == (char)((j % 2) + '0'));
            }
            s.stop();
        }
        w.done();
        w.print();
        // --
        w.begin(true);
        for (int i = 0; i < 1000; ++i) {
            Int2CharMap int2c = new Int2CharOpenHashMap();
View Full Code Here

            for (int j = 0; j < 10000; ++j) {
                Check.isTrue(int2c.get(j) == (char)((j % 2) + '0'));
            }
            s.stop();
        }
        w.done();
        w.print();
    }

}
View Full Code Here

      for (int j = 0; j < 10000; ++j) {
        inList.add(j);
      }
      s.stop();
    }
    w.done();
    w.print();
    // ------------
    w = new StopWatch(1);
    w.begin(true);
    for (int i = 0; i < 1000; ++i) {
View Full Code Here

      for (int j = 0; j < 10000; ++j) {
        oList.add(j);
      }
      s.stop();
    }
    w.done();
    w.print();
  }

}
View Full Code Here

        System.out.println("ERR " + k);
        break;
      }
      s.stop();
    }
    sw.done();
    sw.print();

    sw.begin(true);
    for (int i = 0; i < 500; ++i) {
      Stop s = sw.start();
View Full Code Here

        System.out.println("ERR " + k);
        break;
      }
      s.stop();
    }
    sw.done();
    sw.print();

    RandomAccessFile file = new RandomAccessFile("D:\\data\\miui\\MiFlash20120723.zip", "r");
        FileChannel channel = file.getChannel();
        long tt = file.length();
View Full Code Here

        System.out.println("ERR " + k);
        break;
      }
      s.stop();
    }
    sw.done();
    sw.print();
    map.clear();
        channel.close();
        file.close();
  }
View Full Code Here

        System.out.println("ERR " + k);
        break;
      }
      s.stop();
    }
    sw.done();
    sw.print();

    sw.begin(true);
    for (int i = 0; i < 500; ++i) {
      Stop s = sw.start();
View Full Code Here

        System.out.println("ERR " + k);
        break;
      }
      s.stop();
    }
    sw.done();
    sw.print();

    sw.begin(true);
    for (int i = 0; i < 500; ++i) {
      Stop s = sw.start();
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.