ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/loops/DenseMapMicroBenchmark.java
(Generate patch)

Comparing jsr166/src/test/loops/DenseMapMicroBenchmark.java (file contents):
Revision 1.1 by dl, Mon Jun 8 14:09:45 2009 UTC vs.
Revision 1.3 by jsr166, Mon Nov 2 23:42:46 2009 UTC

# Line 34 | Line 34 | public class DenseMapMicroBenchmark {
34              long t0 = System.nanoTime();
35              long t;
36              int j = 0;
37 <            do {
38 <                j++;
39 <                jobs[i].work();
37 >            do {
38 >                j++;
39 >                jobs[i].work();
40              } while ((t = System.nanoTime() - t0) < nanos);
41              jobs[i].nanos = t / j;
42              jobs[i].runs = j;
# Line 113 | Line 113 | public class DenseMapMicroBenchmark {
113          public void work() {
114              Map m = null;
115              try {
116 <                m = (Map)mapClass.newInstance();
117 <            } catch(Exception e) {
116 >                m = (Map) mapClass.newInstance();
117 >            } catch (Exception e) {
118                  throw new RuntimeException("Can't instantiate " + mapClass + ": " + e);
119              }
120              final int len = elts.length;
# Line 197 | Line 197 | public class DenseMapMicroBenchmark {
197      }
198  
199   }
200

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines