final double[] vols = multiPricers[i].impliedVols(VOL);
}
}
if (benchmarkCycles > 0) {
final OperationTimer timer = new OperationTimer(LOGGER, "processing {} cycles on timeTest - multiPricer", benchmarkCycles);
for (int count = 0; count < benchmarkCycles; count++) {
for (int i = 0; i < nStrikes; i++) {
final double[] vols = multiPricers[i].impliedVols(VOL);
}
}
timer.finished();
}
for (int count = 0; count < warmup; count++) {
for (int i = 0; i < nStrikes; i++) {
final int n = pricers[i].length;
for (int j = 0; j < n; j++) {
final double v = pricers[i][j].impliedVol(VOL);
}
}
}
if (benchmarkCycles > 0) {
final OperationTimer timer2 = new OperationTimer(LOGGER, "processing {} cycles on timeTest - single Pricer", benchmarkCycles);
for (int count = 0; count < benchmarkCycles; count++) {
for (int i = 0; i < nStrikes; i++) {
final int n = pricers[i].length;
for (int j = 0; j < n; j++) {
final double v = pricers[i][j].impliedVol(VOL);
}
}
}
timer2.finished();
}
}