4 |
|
# the supplied TRIALS, which controls the max number of threads |
5 |
|
# and/or test iterations in most programs. |
6 |
|
|
7 |
+ |
# 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 |
+ |
# http://creativecommons.org/licenses/publicdomain |
10 |
+ |
|
11 |
|
# Set env variable RUNJAVA to java executable. Otherwise uses "java" |
12 |
|
RUN="java" |
13 |
|
if [ -n "$RUNJAVA" ]; then |
22 |
|
echo "Java is " $RUN |
23 |
|
echo "Trials per test: " $TRIALS |
24 |
|
|
25 |
+ |
echo CASLoops 4 #$TRIALS |
26 |
+ |
$RUN CASLoops 4 #$TRIALS |
27 |
|
echo SimpleReentrantLockLoops |
28 |
|
$RUN SimpleReentrantLockLoops $TRIALS |
29 |
|
echo SimpleMutexLoops |
50 |
|
$RUN LockOncePerThreadLoops 5 #$TRIALS |
51 |
|
echo ProducerConsumerLoops |
52 |
|
$RUN ProducerConsumerLoops $TRIALS |
53 |
+ |
echo OfferPollLoops |
54 |
+ |
$RUN OfferPollLoops $TRIALS |
55 |
|
echo MultipleProducersSingleConsumerLoops |
56 |
|
$RUN MultipleProducersSingleConsumerLoops $TRIALS |
57 |
|
echo SingleProducerMultipleConsumerLoops |
62 |
|
$RUN TimeoutProducerConsumerLoops $TRIALS |
63 |
|
echo ExecutorCompletionServiceLoops |
64 |
|
$RUN ExecutorCompletionServiceLoops $TRIALS |
65 |
< |
echo ConcurrentQueueLoops |
65 |
> |
echo CachedThreadPoolLoops |
66 |
> |
$RUN CachedThreadPoolLoops $TRIALS |
67 |
> |
echo ConcurrentQueueLoops ConcurrentLinkedQueue |
68 |
|
$RUN ConcurrentQueueLoops java.util.concurrent.ConcurrentLinkedQueue $TRIALS |
69 |
< |
echo ConcurrentDequeLoops |
69 |
> |
echo ConcurrentQueueLoops SynchronizedLinkedListQueue |
70 |
> |
$RUN ConcurrentQueueLoops SynchronizedLinkedListQueue $TRIALS |
71 |
> |
echo ConcurrentQueueLoops java.util.concurrent.LinkedTransferQueue |
72 |
> |
$RUN ConcurrentQueueLoops java.util.concurrent.LinkedTransferQueue $TRIALS |
73 |
> |
echo ConcurrentQueueLoops ConcurrentLinkedDeque |
74 |
> |
$RUN ConcurrentQueueLoops java.util.concurrent.ConcurrentLinkedDeque $TRIALS |
75 |
> |
echo ConcurrentDequeLoops LinkedBlockingDeque |
76 |
|
$RUN ConcurrentDequeLoops java.util.concurrent.LinkedBlockingDeque $TRIALS |
77 |
+ |
echo ConcurrentDequeLoops ConcurrentLinkedDeque |
78 |
+ |
$RUN ConcurrentDequeLoops java.util.concurrent.ConcurrentLinkedDeque $TRIALS |
79 |
+ |
$RUN OfferDrainToLoops |
80 |
|
echo DequeBash ArrayDeque |
81 |
|
$RUN DequeBash java.util.ArrayDeque $TRIALS |
82 |
|
echo DequeBash LinkedList |
83 |
|
$RUN DequeBash java.util.LinkedList $TRIALS |
84 |
< |
echo DequeBash LinkedBlockingdeque |
84 |
> |
echo DequeBash LinkedBlockingDeque |
85 |
|
$RUN DequeBash java.util.concurrent.LinkedBlockingDeque $TRIALS |
86 |
+ |
echo DequeBash ConcurrentLinkedDeque |
87 |
+ |
$RUN DequeBash java.util.concurrent.ConcurrentLinkedDeque $TRIALS |
88 |
|
echo ExchangeLoops |
89 |
|
$RUN ExchangeLoops $TRIALS |
90 |
+ |
echo TimeoutExchangerLoops |
91 |
+ |
$RUN TimeoutExchangerLoops $TRIALS |
92 |
+ |
echo TSPExchangerTest |
93 |
+ |
$RUN TSPExchangerTest $TRIALS |
94 |
|
echo CancelledFutureLoops |
95 |
|
$RUN CancelledFutureLoops $TRIALS |
96 |
|
echo MapCheck ConcurrentHashMap |
105 |
|
$RUN NavigableMapCheck java.util.concurrent.ConcurrentSkipListMap $TRIALS |
106 |
|
echo NavigableSetCheck TreeSet |
107 |
|
$RUN NavigableSetCheck java.util.TreeSet $TRIALS |
108 |
+ |
echo MapMicroBenchmark ConcurrentHashMap |
109 |
+ |
$RUN MapMicroBenchmark java.util.concurrent.ConcurrentHashMap |
110 |
|
echo SetBash ConcurrentSkipListSet |
111 |
|
$RUN SetBash java.util.concurrent.ConcurrentSkipListSet $TRIALS 100 |
112 |
+ |
echo SetBash ConcurrentHashSet |
113 |
+ |
$RUN SetBash ConcurrentHashSet $TRIALS 100 |
114 |
|
echo NavigableSetCheck ConcurrentSkipListSet |
115 |
|
$RUN NavigableSetCheck java.util.concurrent.ConcurrentSkipListSet $TRIALS |
116 |
|
echo MapLoops ConcurrentHashMap |
119 |
|
$RUN MapLoops java.util.concurrent.ConcurrentSkipListMap $TRIALS |
120 |
|
echo MapLoops RWTreeMap |
121 |
|
$RUN MapLoops RWMap $TRIALS |
122 |
+ |
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 |
|
echo MapWordLoops ConcurrentHashMap |
129 |
|
$RUN MapWordLoops java.util.concurrent.ConcurrentHashMap $TRIALS |
130 |
|
echo MapWordLoops java.util.TreeMap |
133 |
|
$RUN MapWordLoops RWMap $TRIALS |
134 |
|
echo MapWordLoops ConcurrentSkipListMap |
135 |
|
$RUN MapWordLoops java.util.concurrent.ConcurrentSkipListMap $TRIALS |
136 |
+ |
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 |
+ |
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 |
+ |
echo ListBash CopyOnWriteArrayList |
151 |
+ |
$RUN ListBash java.util.concurrent.CopyOnWriteArrayList 100 100 |
152 |
+ |
echo ListBash LinkedList |
153 |
+ |
$RUN ListBash java.util.LinkedList 100 100 |
154 |
|
echo TimeUnitLoops |
155 |
|
$RUN TimeUnitLoops |
156 |
|
echo ReadHoldingWriteLock |
160 |
|
echo FinalLongTest |
161 |
|
$RUN FinalLongTest |
162 |
|
echo RLJBar |
163 |
< |
$RUN RLJBar |
164 |
< |
echo RLJBar -b |
165 |
< |
$RUN RLJBar -b |
163 |
> |
$RUN RLJBar |
164 |
> |
echo RLJBar -b |
165 |
> |
$RUN RLJBar -b |
166 |
|
echo RLIBar |
167 |
|
$RUN RLIBar -np $TRIALS |
168 |
< |
echo RLIBar -batch 10 |
168 |
> |
echo RLIBar -batch 10 |
169 |
|
$RUN RLIBar -batch 10 -np $TRIALS |
170 |
+ |
echo UnboundedQueueFillEmptyLoops |
171 |
+ |
$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 |
+ |
$RUN UnboundedQueueFillEmptyLoops java.util.concurrent.ConcurrentLinkedDeque |
177 |
+ |
$RUN UnboundedQueueFillEmptyLoops java.util.concurrent.LinkedBlockingQueue |
178 |
+ |
$RUN UnboundedQueueFillEmptyLoops java.util.concurrent.LinkedBlockingDeque |
179 |
+ |
$RUN UnboundedQueueFillEmptyLoops java.util.concurrent.LinkedTransferQueue |
180 |
+ |
echo IteratorLoops |
181 |
+ |
$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 |
+ |
$RUN IteratorLoops java.util.concurrent.LinkedTransferQueue |
196 |
+ |
$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 |
+ |
$RUN DynamicLeftSpineFib |
211 |
+ |
echo DynamicAsyncFib |
212 |
+ |
$RUN DynamicAsyncFib |
213 |
+ |
echo ScalarLongSort |
214 |
+ |
$RUN ScalarLongSort |
215 |
+ |
echo BoxedLongSort |
216 |
+ |
$RUN BoxedLongSort |
217 |
+ |
echo NQueensCS |
218 |
+ |
$RUN NQueensCS |
219 |
+ |
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 |
+ |
$RUN FJJacobi |
233 |
+ |
echo FJPhaserJacobi |
234 |
+ |
$RUN FJPhaserJacobi |
235 |
+ |
echo ThreadPhaserJacobi |
236 |
+ |
$RUN ThreadPhaserJacobi |
237 |
+ |
echo Heat |
238 |
+ |
$RUN Heat |
239 |
+ |
echo TieredPhaserLoops |
240 |
+ |
$RUN TieredPhaserLoops |
241 |
+ |
echo PhaserLoops |
242 |
+ |
$RUN PhaserLoops |
243 |
+ |
echo CyclicBarrierLoops |
244 |
+ |
$RUN CyclicBarrierLoops |
245 |
+ |
echo FJPhaserLoops |
246 |
+ |
$RUN FJPhaserLoops |
247 |
+ |
echo SpinningTieredPhaserLoops |
248 |
+ |
$RUN SpinningTieredPhaserLoops |