Ejemplo n.º 1
0
  public static void main(String[] args) {
    Benchmarker.MILLISECONDS.reset();
    Benchmarker.MILLISECONDS.start();

    for (int counter = 0; counter < Benchmarker.LOOP_TIME; counter++) {
      String[] elements = Benchmarker.TEST_STRING.split(",");
      for (String element : elements) ;
    }

    Benchmarker.MILLISECONDS.stop();
    Benchmarker.MILLISECONDS.showDuration();
    Benchmarker.showMemoryUsed();
  }