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

# Content
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 # 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/publicdomain/zero/1.0/
10
11 # 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 echo CASLoops 4 #$TRIALS
26 $RUN CASLoops 4 #$TRIALS
27 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 echo OfferPollLoops
54 $RUN OfferPollLoops $TRIALS
55 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 echo CachedThreadPoolLoops
66 $RUN CachedThreadPoolLoops $TRIALS
67 echo ConcurrentQueueLoops ConcurrentLinkedQueue
68 $RUN ConcurrentQueueLoops java.util.concurrent.ConcurrentLinkedQueue $TRIALS
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
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
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 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
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 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
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 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
157 $RUN ReadHoldingWriteLock
158 echo Finals
159 $RUN Finals
160 echo FinalLongTest
161 $RUN FinalLongTest
162 echo RLJBar
163 $RUN RLJBar
164 echo RLJBar -b
165 $RUN RLJBar -b
166 echo RLIBar
167 $RUN RLIBar -np $TRIALS
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