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

Comparing jsr166/src/test/loops/StringMapLoops.java (file contents):
Revision 1.2 by dl, Mon Feb 19 00:46:06 2007 UTC vs.
Revision 1.3 by dl, Fri Oct 23 19:57:07 2009 UTC

# Line 8 | Line 8 | import java.util.*;
8   import java.util.concurrent.*;
9  
10   public class StringMapLoops {
11 <    static int nkeys       = 1000;
11 >    static int nkeys       = 75000;
12      static int pinsert     = 60;
13 <    static int premove     = 2;
13 >    static int premove     =  2;
14      static int maxThreads  = 100;
15 <    static int nops        = 1000000;
15 >    static int nops        = 8000000;
16      static int removesPerMaxRandom;
17      static int insertsPerMaxRandom;
18  
# Line 79 | Line 79 | public class StringMapLoops {
79              else
80                  i = k;
81          }
82 +        for (int j = 0; j < 10; ++j) {
83 +            Thread.sleep(100);
84 +            test(1, nkeys, key, mapClass);
85 +            //            shuffleKeys(key);
86 +        }
87          pool.shutdown();
88      }
89  
# Line 120 | Line 125 | public class StringMapLoops {
125          // Uncomment to start with a non-empty table
126          //        for (int j = 0; j < nkeys; j += 4) // start 1/4 occupied
127          //            map.put(key[j], key[j]);
128 +
129          LoopHelpers.BarrierTimer timer = new LoopHelpers.BarrierTimer();
130          CyclicBarrier barrier = new CyclicBarrier(i+1, timer);
131          for (int t = 0; t < i; ++t)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines