ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/loops/runscript
Revision: 1.18
Committed: Tue Mar 15 19:47:06 2011 UTC (13 years, 1 month ago) by jsr166
Branch: MAIN
CVS Tags: release-1_7_0, HEAD
Changes since 1.17: +1 -1 lines
Log Message:
Update Creative Commons license URL in legal notices

File Contents

# User Rev Content
1 dl 1.1 #!/bin/sh
2    
3     # This runs most of the test programs with default settings except for
4     # the supplied TRIALS, which controls the max number of threads
5     # and/or test iterations in most programs.
6    
7 dl 1.2 # Written by Doug Lea with assistance from members of JCP JSR-166
8     # Expert Group and released to the public domain, as explained at
9 jsr166 1.18 # http://creativecommons.org/publicdomain/zero/1.0/
10 dl 1.2
11 dl 1.1 # Set env variable RUNJAVA to java executable. Otherwise uses "java"
12     RUN="java"
13     if [ -n "$RUNJAVA" ]; then
14     RUN=$RUNJAVA
15     fi
16    
17     TRIALS=8
18     if [ $# != "0" ]; then
19     TRIALS=$1
20     fi
21    
22     echo "Java is " $RUN
23     echo "Trials per test: " $TRIALS
24    
25 dl 1.8 echo CASLoops 4 #$TRIALS
26     $RUN CASLoops 4 #$TRIALS
27 dl 1.1 echo SimpleReentrantLockLoops
28     $RUN SimpleReentrantLockLoops $TRIALS
29     echo SimpleMutexLoops
30     $RUN SimpleMutexLoops $TRIALS
31     echo SimpleSemaphoreLoops
32     $RUN SimpleSemaphoreLoops $TRIALS
33     echo SimpleLockLoops
34     $RUN SimpleLockLoops $TRIALS
35     echo SimpleWriteLockLoops
36     $RUN SimpleWriteLockLoops $TRIALS
37     echo SimpleTimedLockLoops
38     $RUN SimpleTimedLockLoops $TRIALS
39     echo SimpleSpinLockLoops
40     $RUN SimpleSpinLockLoops 8 # $TRIALS
41     echo TimeoutLockLoops
42     $RUN TimeoutLockLoops $TRIALS
43     echo CheckedLockLoops
44     $RUN CheckedLockLoops $TRIALS
45     echo UncheckedLockLoops
46     $RUN UncheckedLockLoops $TRIALS
47     echo CancelledLockLoops
48     $RUN CancelledLockLoops $TRIALS
49     echo LockOncePerThreadLoops
50     $RUN LockOncePerThreadLoops 5 #$TRIALS
51     echo ProducerConsumerLoops
52     $RUN ProducerConsumerLoops $TRIALS
53 dl 1.9 echo OfferPollLoops
54     $RUN OfferPollLoops $TRIALS
55 dl 1.1 echo MultipleProducersSingleConsumerLoops
56     $RUN MultipleProducersSingleConsumerLoops $TRIALS
57     echo SingleProducerMultipleConsumerLoops
58     $RUN SingleProducerMultipleConsumerLoops $TRIALS
59     echo CancelledProducerConsumerLoops
60     $RUN CancelledProducerConsumerLoops $TRIALS
61     echo TimeoutProducerConsumerLoops
62     $RUN TimeoutProducerConsumerLoops $TRIALS
63     echo ExecutorCompletionServiceLoops
64     $RUN ExecutorCompletionServiceLoops $TRIALS
65 dl 1.3 echo CachedThreadPoolLoops
66     $RUN CachedThreadPoolLoops $TRIALS
67 dl 1.6 echo ConcurrentQueueLoops ConcurrentLinkedQueue
68 dl 1.1 $RUN ConcurrentQueueLoops java.util.concurrent.ConcurrentLinkedQueue $TRIALS
69 dl 1.6 echo ConcurrentQueueLoops SynchronizedLinkedListQueue
70     $RUN ConcurrentQueueLoops SynchronizedLinkedListQueue $TRIALS
71 dl 1.9 echo ConcurrentQueueLoops java.util.concurrent.LinkedTransferQueue
72     $RUN ConcurrentQueueLoops java.util.concurrent.LinkedTransferQueue $TRIALS
73 dl 1.15 echo ConcurrentQueueLoops ConcurrentLinkedDeque
74     $RUN ConcurrentQueueLoops java.util.concurrent.ConcurrentLinkedDeque $TRIALS
75     echo ConcurrentDequeLoops LinkedBlockingDeque
76 dl 1.1 $RUN ConcurrentDequeLoops java.util.concurrent.LinkedBlockingDeque $TRIALS
77 dl 1.15 echo ConcurrentDequeLoops ConcurrentLinkedDeque
78     $RUN ConcurrentDequeLoops java.util.concurrent.ConcurrentLinkedDeque $TRIALS
79 dl 1.9 $RUN OfferDrainToLoops
80 dl 1.1 echo DequeBash ArrayDeque
81     $RUN DequeBash java.util.ArrayDeque $TRIALS
82     echo DequeBash LinkedList
83     $RUN DequeBash java.util.LinkedList $TRIALS
84 dl 1.7 echo DequeBash LinkedBlockingDeque
85 dl 1.1 $RUN DequeBash java.util.concurrent.LinkedBlockingDeque $TRIALS
86 dl 1.15 echo DequeBash ConcurrentLinkedDeque
87     $RUN DequeBash java.util.concurrent.ConcurrentLinkedDeque $TRIALS
88 dl 1.1 echo ExchangeLoops
89     $RUN ExchangeLoops $TRIALS
90 dl 1.5 echo TimeoutExchangerLoops
91     $RUN TimeoutExchangerLoops $TRIALS
92     echo TSPExchangerTest
93     $RUN TSPExchangerTest $TRIALS
94 dl 1.1 echo CancelledFutureLoops
95     $RUN CancelledFutureLoops $TRIALS
96     echo MapCheck ConcurrentHashMap
97     $RUN MapCheck java.util.concurrent.ConcurrentHashMap $TRIALS
98     echo IntMapCheck ConcurrenHhashMap
99     $RUN IntMapCheck java.util.concurrent.ConcurrentHashMap $TRIALS
100     echo IntMapCheck ConcurrentSkipListMap
101     $RUN IntMapCheck java.util.concurrent.ConcurrentSkipListMap $TRIALS
102     echo NavigableMapCheck TreeMap
103     $RUN NavigableMapCheck java.util.TreeMap $TRIALS
104     echo NavigableMapCheck ConcurrentSkipListMap
105     $RUN NavigableMapCheck java.util.concurrent.ConcurrentSkipListMap $TRIALS
106     echo NavigableSetCheck TreeSet
107     $RUN NavigableSetCheck java.util.TreeSet $TRIALS
108 dl 1.17 echo MapMicroBenchmark ConcurrentHashMap
109     $RUN MapMicroBenchmark java.util.concurrent.ConcurrentHashMap
110 dl 1.1 echo SetBash ConcurrentSkipListSet
111     $RUN SetBash java.util.concurrent.ConcurrentSkipListSet $TRIALS 100
112 dl 1.7 echo SetBash ConcurrentHashSet
113     $RUN SetBash ConcurrentHashSet $TRIALS 100
114 dl 1.1 echo NavigableSetCheck ConcurrentSkipListSet
115     $RUN NavigableSetCheck java.util.concurrent.ConcurrentSkipListSet $TRIALS
116     echo MapLoops ConcurrentHashMap
117     $RUN MapLoops java.util.concurrent.ConcurrentHashMap $TRIALS
118     echo MapLoops ConcurrentSkipListMap
119     $RUN MapLoops java.util.concurrent.ConcurrentSkipListMap $TRIALS
120     echo MapLoops RWTreeMap
121     $RUN MapLoops RWMap $TRIALS
122 dl 1.5 echo StringMapLoops ConcurrentHashMap
123     $RUN StringMapLoops java.util.concurrent.ConcurrentHashMap $TRIALS
124     echo StringMapLoops ConcurrentSkipListMap
125     $RUN StringMapLoops java.util.concurrent.ConcurrentSkipListMap $TRIALS
126     echo StringMapLoops RWTreeMap
127     $RUN StringMapLoops RWMap $TRIALS
128 dl 1.1 echo MapWordLoops ConcurrentHashMap
129     $RUN MapWordLoops java.util.concurrent.ConcurrentHashMap $TRIALS
130     echo MapWordLoops java.util.TreeMap
131     $RUN MapWordLoops java.util.TreeMap $TRIALS
132     echo MapWordLoops RWTreeMap
133     $RUN MapWordLoops RWMap $TRIALS
134     echo MapWordLoops ConcurrentSkipListMap
135     $RUN MapWordLoops java.util.concurrent.ConcurrentSkipListMap $TRIALS
136 dl 1.6 echo CollectionLoops RWCollection
137     $RUN CollectionLoops RWCollection $TRIALS
138     echo CollectionLoops SCollection
139     $RUN CollectionLoops SCollection $TRIALS
140     echo CollectionLoops SynchronizedCollection
141     $RUN CollectionLoops SynchronizedCollection $TRIALS
142 dl 1.3 echo CollectionWordLoops ConcurrentSkipListSet
143     $RUN CollectionWordLoops java.util.concurrent.ConcurrentSkipListSet
144     echo CollectionWordLoops ConcurrentLinkedQueue
145     $RUN CollectionWordLoops java.util.concurrent.ConcurrentLinkedQueue
146     echo CollectionWordLoops CopyOnWriteArrayList
147     $RUN CollectionWordLoops java.util.concurrent.CopyOnWriteArrayList
148     echo CollectionWordLoops ArrayDeque
149     $RUN CollectionWordLoops java.util.ArrayDeque
150 jsr166 1.10 echo ListBash CopyOnWriteArrayList
151 dl 1.3 $RUN ListBash java.util.concurrent.CopyOnWriteArrayList 100 100
152     echo ListBash LinkedList
153     $RUN ListBash java.util.LinkedList 100 100
154 dl 1.1 echo TimeUnitLoops
155     $RUN TimeUnitLoops
156     echo ReadHoldingWriteLock
157     $RUN ReadHoldingWriteLock
158     echo Finals
159     $RUN Finals
160     echo FinalLongTest
161     $RUN FinalLongTest
162     echo RLJBar
163 jsr166 1.10 $RUN RLJBar
164     echo RLJBar -b
165     $RUN RLJBar -b
166 dl 1.1 echo RLIBar
167     $RUN RLIBar -np $TRIALS
168 jsr166 1.10 echo RLIBar -batch 10
169 dl 1.1 $RUN RLIBar -batch 10 -np $TRIALS
170 jsr166 1.10 echo UnboundedQueueFillEmptyLoops
171 dl 1.7 $RUN UnboundedQueueFillEmptyLoops java.util.ArrayDeque
172     $RUN UnboundedQueueFillEmptyLoops java.util.PriorityQueue
173     $RUN UnboundedQueueFillEmptyLoops java.util.concurrent.PriorityBlockingQueue
174     $RUN UnboundedQueueFillEmptyLoops java.util.LinkedList
175     $RUN UnboundedQueueFillEmptyLoops java.util.concurrent.ConcurrentLinkedQueue
176 dl 1.15 $RUN UnboundedQueueFillEmptyLoops java.util.concurrent.ConcurrentLinkedDeque
177 dl 1.7 $RUN UnboundedQueueFillEmptyLoops java.util.concurrent.LinkedBlockingQueue
178     $RUN UnboundedQueueFillEmptyLoops java.util.concurrent.LinkedBlockingDeque
179 dl 1.11 $RUN UnboundedQueueFillEmptyLoops java.util.concurrent.LinkedTransferQueue
180 jsr166 1.14 echo IteratorLoops
181 dl 1.7 $RUN IteratorLoops java.util.ArrayList
182     $RUN IteratorLoops java.util.Vector
183     $RUN IteratorLoops java.util.concurrent.CopyOnWriteArrayList
184     $RUN IteratorLoops java.util.LinkedList
185     $RUN IteratorLoops java.util.concurrent.ConcurrentLinkedQueue
186     $RUN IteratorLoops java.util.concurrent.LinkedBlockingQueue
187     $RUN IteratorLoops java.util.ArrayDeque
188     $RUN IteratorLoops java.util.concurrent.LinkedBlockingDeque
189     $RUN IteratorLoops java.util.PriorityQueue
190     $RUN IteratorLoops java.util.concurrent.PriorityBlockingQueue
191     $RUN IteratorLoops java.util.TreeSet
192     $RUN IteratorLoops java.util.concurrent.ConcurrentSkipListSet
193     $RUN IteratorLoops java.util.HashSet
194     $RUN IteratorLoops ConcurrentHashSet
195 dl 1.9 $RUN IteratorLoops java.util.concurrent.LinkedTransferQueue
196 dl 1.15 $RUN IteratorLoops java.util.concurrent.ConcurrentLinkedDeque
197     echo Integrate
198     $RUN Integrate
199     echo IntegrateGamma
200     $RUN IntegrateGamma
201     echo Fib
202     $RUN Fib
203     echo FibTask
204     $RUN FibTask
205     echo LeftSpineFib
206     $RUN LeftSpineFib
207     echo DynamicFib
208     $RUN DynamicFib
209     echo DynamicLeftSpineFib
210 dl 1.9 $RUN DynamicLeftSpineFib
211 dl 1.15 echo DynamicAsyncFib
212     $RUN DynamicAsyncFib
213     echo ScalarLongSort
214     $RUN ScalarLongSort
215     echo BoxedLongSort
216     $RUN BoxedLongSort
217     echo NQueensCS
218 dl 1.9 $RUN NQueensCS
219 dl 1.15 echo AsyncNQueensCS
220     $RUN AsyncNQueensCS
221     echo FJSums
222     $RUN FJSums
223     echo MatrixMultiply
224     $RUN MatrixMultiply
225     echo LU
226     $RUN LU
227     echo Microscope
228     $RUN Microscope
229     echo TorusSpanningTree
230     $RUN TorusSpanningTree
231     echo FJJacobi
232 dl 1.9 $RUN FJJacobi
233 dl 1.15 echo FJPhaserJacobi
234 dl 1.9 $RUN FJPhaserJacobi
235 dl 1.15 echo ThreadPhaserJacobi
236 dl 1.9 $RUN ThreadPhaserJacobi
237 dl 1.16 echo Heat
238     $RUN Heat
239 dl 1.15 echo TieredPhaserLoops
240 dl 1.12 $RUN TieredPhaserLoops
241 dl 1.15 echo PhaserLoops
242 jsr166 1.14 $RUN PhaserLoops
243 dl 1.15 echo CyclicBarrierLoops
244 jsr166 1.14 $RUN CyclicBarrierLoops
245 dl 1.15 echo FJPhaserLoops
246 jsr166 1.14 $RUN FJPhaserLoops
247 dl 1.15 echo SpinningTieredPhaserLoops
248 dl 1.12 $RUN SpinningTieredPhaserLoops