import java.util.Locale;
import java.util.ResourceBundle;

public class rb {
  public static void main(String... args) throws Exception {
    for (int i = 0; i < 100; i++) {
      timeRB(i);
    }
  }
  private static void timeRB(int i) throws Exception {
    long start = System.nanoTime();
    ResourceBundle.getBundle("mybundle", Locale.getDefault());
    long end = System.nanoTime();
    System.out.println("ResourceBundle.getBundle iteration:" + i + " nanos:" + (end-start));
  }
}
