System.out.println("Started: " + id);
Yaml loader = new Yaml();
long time1 = System.nanoTime();
int cycles = 200;
for (int i = 0; i < cycles; i++) {
Invoice invoice = loader.loadAs(doc, Invoice.class);
assertNotNull(invoice);
}
long time2 = System.nanoTime();
float duration = ((time2 - time1) / 1000000) / (float) cycles;
System.out.println("Duration of " + id + " was " + duration + " ms/load.");