예제 #1
0
  public void runTest2() {

    System.out.println("Running Test [now using linked list] " + SystemUtils.currentDate());
    System.out.println(SystemUtils.memoryUsage());

    new SimpleTime(new SimpleDoTimes(new Test3Times(), (int) 1)).execute();
    System.out.println(SystemUtils.memoryUsage());

    System.out.println("Larger Strings");
    new SimpleTime(new SimpleDoTimes(new Test4Times(), (int) 1)).execute();
    System.out.println(SystemUtils.memoryUsage());
  }
예제 #2
0
  public void runTest() {

    System.out.println("Running Test " + SystemUtils.currentDate());
    System.out.println(SystemUtils.memoryUsage());

    new SimpleTime(new SimpleDoTimes(new Test1Times(), SystemUtils.once)).execute();
    System.out.println(SystemUtils.memoryUsage());

    System.out.println("Larger Strings");
    new SimpleTime(new SimpleDoTimes(new Test2Times(), SystemUtils.once)).execute();
    System.out.println(SystemUtils.memoryUsage());
  }