Exception Performance Part 2
Posted by: IKVM.NET Weblog,
on 30 Jun 2008 |
View original | Bookmarked: 0 time(s)
Last time we
saw that CLR exception handling is significantly slower than HotSpot exception handling.
This time we'll look at two very variations of the ExceptionPerf1 microbenchmark that
significantly affect performance.
I've highlighted the changes.
Variation 1
public classExceptionPerf2 {
public static void main(String[]
args) {
long start = System.currentTimeMillis();
for (int i
= 0; i
try {
Integer.parseInt(");
...