ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/loops/runscript
Revision: 1.14
Committed: Mon Nov 2 20:23:53 2009 UTC (14 years, 6 months ago) by jsr166
Branch: MAIN
Changes since 1.13: +4 -4 lines
Log Message:
whitespace

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/licenses/publicdomain
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 ConcurrentDequeLoops
74 $RUN ConcurrentDequeLoops java.util.concurrent.LinkedBlockingDeque $TRIALS
75 $RUN OfferDrainToLoops
76 echo DequeBash ArrayDeque
77 $RUN DequeBash java.util.ArrayDeque $TRIALS
78 echo DequeBash LinkedList
79 $RUN DequeBash java.util.LinkedList $TRIALS
80 echo DequeBash LinkedBlockingDeque
81 $RUN DequeBash java.util.concurrent.LinkedBlockingDeque $TRIALS
82 echo ExchangeLoops
83 $RUN ExchangeLoops $TRIALS
84 echo TimeoutExchangerLoops
85 $RUN TimeoutExchangerLoops $TRIALS
86 echo TSPExchangerTest
87 $RUN TSPExchangerTest $TRIALS
88 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 echo SetBash ConcurrentHashSet
105 $RUN SetBash ConcurrentHashSet $TRIALS 100
106 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 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 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 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 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 echo ListBash CopyOnWriteArrayList
143 $RUN ListBash java.util.concurrent.CopyOnWriteArrayList 100 100
144 echo ListBash LinkedList
145 $RUN ListBash java.util.LinkedList 100 100
146 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 $RUN RLJBar
156 echo RLJBar -b
157 $RUN RLJBar -b
158 echo RLIBar
159 $RUN RLIBar -np $TRIALS
160 echo RLIBar -batch 10
161 $RUN RLIBar -batch 10 -np $TRIALS
162 echo UnboundedQueueFillEmptyLoops
163 $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 $RUN UnboundedQueueFillEmptyLoops java.util.concurrent.LinkedTransferQueue
171 echo IteratorLoops
172 $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 $RUN IteratorLoops java.util.concurrent.LinkedTransferQueue
187 $RUN DynamicLeftSpineFib
188 $RUN NQueensCS
189 $RUN Integrate
190 $RUN FJJacobi
191 $RUN FJPhaserJacobi
192 $RUN ThreadPhaserJacobi
193 $RUN TieredPhaserLoops
194 $RUN PhaserLoops
195 $RUN CyclicBarrierLoops
196 $RUN FJPhaserLoops
197 $RUN SpinningTieredPhaserLoops
198 $RUN TorusSpanningTree