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 |
|
|
# http://creativecommons.org/licenses/publicdomain |
10 |
|
|
|
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.1 |
echo ConcurrentDequeLoops |
74 |
|
|
$RUN ConcurrentDequeLoops java.util.concurrent.LinkedBlockingDeque $TRIALS |
75 |
dl |
1.9 |
$RUN OfferDrainToLoops |
76 |
dl |
1.1 |
echo DequeBash ArrayDeque |
77 |
|
|
$RUN DequeBash java.util.ArrayDeque $TRIALS |
78 |
|
|
echo DequeBash LinkedList |
79 |
|
|
$RUN DequeBash java.util.LinkedList $TRIALS |
80 |
dl |
1.7 |
echo DequeBash LinkedBlockingDeque |
81 |
dl |
1.1 |
$RUN DequeBash java.util.concurrent.LinkedBlockingDeque $TRIALS |
82 |
|
|
echo ExchangeLoops |
83 |
|
|
$RUN ExchangeLoops $TRIALS |
84 |
dl |
1.5 |
echo TimeoutExchangerLoops |
85 |
|
|
$RUN TimeoutExchangerLoops $TRIALS |
86 |
|
|
echo TSPExchangerTest |
87 |
|
|
$RUN TSPExchangerTest $TRIALS |
88 |
dl |
1.1 |
echo CancelledFutureLoops |
89 |
|
|
$RUN CancelledFutureLoops $TRIALS |
90 |
|
|
echo MapCheck ConcurrentHashMap |
91 |
|
|
$RUN MapCheck java.util.concurrent.ConcurrentHashMap $TRIALS |
92 |
|
|
echo IntMapCheck ConcurrenHhashMap |
93 |
|
|
$RUN IntMapCheck java.util.concurrent.ConcurrentHashMap $TRIALS |
94 |
|
|
echo IntMapCheck ConcurrentSkipListMap |
95 |
|
|
$RUN IntMapCheck java.util.concurrent.ConcurrentSkipListMap $TRIALS |
96 |
|
|
echo NavigableMapCheck TreeMap |
97 |
|
|
$RUN NavigableMapCheck java.util.TreeMap $TRIALS |
98 |
|
|
echo NavigableMapCheck ConcurrentSkipListMap |
99 |
|
|
$RUN NavigableMapCheck java.util.concurrent.ConcurrentSkipListMap $TRIALS |
100 |
|
|
echo NavigableSetCheck TreeSet |
101 |
|
|
$RUN NavigableSetCheck java.util.TreeSet $TRIALS |
102 |
|
|
echo SetBash ConcurrentSkipListSet |
103 |
|
|
$RUN SetBash java.util.concurrent.ConcurrentSkipListSet $TRIALS 100 |
104 |
dl |
1.7 |
echo SetBash ConcurrentHashSet |
105 |
|
|
$RUN SetBash ConcurrentHashSet $TRIALS 100 |
106 |
dl |
1.1 |
echo NavigableSetCheck ConcurrentSkipListSet |
107 |
|
|
$RUN NavigableSetCheck java.util.concurrent.ConcurrentSkipListSet $TRIALS |
108 |
|
|
echo MapLoops ConcurrentHashMap |
109 |
|
|
$RUN MapLoops java.util.concurrent.ConcurrentHashMap $TRIALS |
110 |
|
|
echo MapLoops ConcurrentSkipListMap |
111 |
|
|
$RUN MapLoops java.util.concurrent.ConcurrentSkipListMap $TRIALS |
112 |
|
|
echo MapLoops RWTreeMap |
113 |
|
|
$RUN MapLoops RWMap $TRIALS |
114 |
dl |
1.5 |
echo StringMapLoops ConcurrentHashMap |
115 |
|
|
$RUN StringMapLoops java.util.concurrent.ConcurrentHashMap $TRIALS |
116 |
|
|
echo StringMapLoops ConcurrentSkipListMap |
117 |
|
|
$RUN StringMapLoops java.util.concurrent.ConcurrentSkipListMap $TRIALS |
118 |
|
|
echo StringMapLoops RWTreeMap |
119 |
|
|
$RUN StringMapLoops RWMap $TRIALS |
120 |
dl |
1.1 |
echo MapWordLoops ConcurrentHashMap |
121 |
|
|
$RUN MapWordLoops java.util.concurrent.ConcurrentHashMap $TRIALS |
122 |
|
|
echo MapWordLoops java.util.TreeMap |
123 |
|
|
$RUN MapWordLoops java.util.TreeMap $TRIALS |
124 |
|
|
echo MapWordLoops RWTreeMap |
125 |
|
|
$RUN MapWordLoops RWMap $TRIALS |
126 |
|
|
echo MapWordLoops ConcurrentSkipListMap |
127 |
|
|
$RUN MapWordLoops java.util.concurrent.ConcurrentSkipListMap $TRIALS |
128 |
dl |
1.6 |
echo CollectionLoops RWCollection |
129 |
|
|
$RUN CollectionLoops RWCollection $TRIALS |
130 |
|
|
echo CollectionLoops SCollection |
131 |
|
|
$RUN CollectionLoops SCollection $TRIALS |
132 |
|
|
echo CollectionLoops SynchronizedCollection |
133 |
|
|
$RUN CollectionLoops SynchronizedCollection $TRIALS |
134 |
dl |
1.3 |
echo CollectionWordLoops ConcurrentSkipListSet |
135 |
|
|
$RUN CollectionWordLoops java.util.concurrent.ConcurrentSkipListSet |
136 |
|
|
echo CollectionWordLoops ConcurrentLinkedQueue |
137 |
|
|
$RUN CollectionWordLoops java.util.concurrent.ConcurrentLinkedQueue |
138 |
|
|
echo CollectionWordLoops CopyOnWriteArrayList |
139 |
|
|
$RUN CollectionWordLoops java.util.concurrent.CopyOnWriteArrayList |
140 |
|
|
echo CollectionWordLoops ArrayDeque |
141 |
|
|
$RUN CollectionWordLoops java.util.ArrayDeque |
142 |
jsr166 |
1.10 |
echo ListBash CopyOnWriteArrayList |
143 |
dl |
1.3 |
$RUN ListBash java.util.concurrent.CopyOnWriteArrayList 100 100 |
144 |
|
|
echo ListBash LinkedList |
145 |
|
|
$RUN ListBash java.util.LinkedList 100 100 |
146 |
dl |
1.1 |
echo TimeUnitLoops |
147 |
|
|
$RUN TimeUnitLoops |
148 |
|
|
echo ReadHoldingWriteLock |
149 |
|
|
$RUN ReadHoldingWriteLock |
150 |
|
|
echo Finals |
151 |
|
|
$RUN Finals |
152 |
|
|
echo FinalLongTest |
153 |
|
|
$RUN FinalLongTest |
154 |
|
|
echo RLJBar |
155 |
jsr166 |
1.10 |
$RUN RLJBar |
156 |
|
|
echo RLJBar -b |
157 |
|
|
$RUN RLJBar -b |
158 |
dl |
1.1 |
echo RLIBar |
159 |
|
|
$RUN RLIBar -np $TRIALS |
160 |
jsr166 |
1.10 |
echo RLIBar -batch 10 |
161 |
dl |
1.1 |
$RUN RLIBar -batch 10 -np $TRIALS |
162 |
jsr166 |
1.10 |
echo UnboundedQueueFillEmptyLoops |
163 |
dl |
1.7 |
$RUN UnboundedQueueFillEmptyLoops java.util.ArrayDeque |
164 |
|
|
$RUN UnboundedQueueFillEmptyLoops java.util.PriorityQueue |
165 |
|
|
$RUN UnboundedQueueFillEmptyLoops java.util.concurrent.PriorityBlockingQueue |
166 |
|
|
$RUN UnboundedQueueFillEmptyLoops java.util.LinkedList |
167 |
|
|
$RUN UnboundedQueueFillEmptyLoops java.util.concurrent.ConcurrentLinkedQueue |
168 |
|
|
$RUN UnboundedQueueFillEmptyLoops java.util.concurrent.LinkedBlockingQueue |
169 |
|
|
$RUN UnboundedQueueFillEmptyLoops java.util.concurrent.LinkedBlockingDeque |
170 |
dl |
1.11 |
$RUN UnboundedQueueFillEmptyLoops java.util.concurrent.LinkedTransferQueue |
171 |
|
|
echo IteratorLoops |
172 |
dl |
1.7 |
$RUN IteratorLoops java.util.ArrayList |
173 |
|
|
$RUN IteratorLoops java.util.Vector |
174 |
|
|
$RUN IteratorLoops java.util.concurrent.CopyOnWriteArrayList |
175 |
|
|
$RUN IteratorLoops java.util.LinkedList |
176 |
|
|
$RUN IteratorLoops java.util.concurrent.ConcurrentLinkedQueue |
177 |
|
|
$RUN IteratorLoops java.util.concurrent.LinkedBlockingQueue |
178 |
|
|
$RUN IteratorLoops java.util.ArrayDeque |
179 |
|
|
$RUN IteratorLoops java.util.concurrent.LinkedBlockingDeque |
180 |
|
|
$RUN IteratorLoops java.util.PriorityQueue |
181 |
|
|
$RUN IteratorLoops java.util.concurrent.PriorityBlockingQueue |
182 |
|
|
$RUN IteratorLoops java.util.TreeSet |
183 |
|
|
$RUN IteratorLoops java.util.concurrent.ConcurrentSkipListSet |
184 |
|
|
$RUN IteratorLoops java.util.HashSet |
185 |
|
|
$RUN IteratorLoops ConcurrentHashSet |
186 |
dl |
1.9 |
$RUN IteratorLoops java.util.concurrent.LinkedTransferQueue |
187 |
|
|
$RUN DynamicLeftSpineFib |
188 |
|
|
$RUN NQueensCS |
189 |
|
|
$RUN Integrate |
190 |
|
|
$RUN FJJacobi |
191 |
|
|
$RUN FJPhaserJacobi |
192 |
|
|
$RUN ThreadPhaserJacobi |