int[] range = new int[] { 1000, 2000 /* , 4000, 8000 */};
System.out.println("\nOne instance.");
for (int number : range) {
time1 = System.nanoTime();
for (int i = 0; i < number; i++) {
loader.loadAs(doc, Invoice.class);
}
time2 = System.nanoTime();
duration = ((time2 - time1) / 1000000) / (float) number;
System.out.println("Duration for r=" + number + " was " + duration + " ms/load.");
// cobertura may make it very slow