im referring to following example:
Code: Select all
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
public class DateTimeFormatterBenchmark {
public static void main(String[] args) {
long startTime = System.nanoTime();
LocalDate date = LocalDate.of(2000, 1, 1);
for (int i = 0; i < 10000000; i++) DateTimeFormatter.BASIC_ISO_DATE.format(date);
System.out.printf("%.3f s\n", (System.nanoTime() - startTime) / 1000000000.);
}
}
With -agentpath:"C:\magicyourkitpath\bin\win64\yjpagent.dll"=disablestacktelemetry,disablealloc,probe_disable=*: 258,586 s
Why does the agent causing so much overhead? Are there any additional args to reduce it?
YourKit Version: 2016.02-b36
Java Version: 1.8.0_92 64-bit