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.2 by jsr166, Thu Oct 29 23:09:07 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 197 | Line 197 | public class DenseMapMicroBenchmark {
197      }
198  
199   }
200

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines