ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/loops/runscript
Revision: 1.8
Committed: Wed Apr 19 15:10:47 2006 UTC (18 years, 1 month ago) by dl
Branch: MAIN
Changes since 1.7: +2 -2 lines
Log Message:
Updated Navigable tests

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     # 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     echo MultipleProducersSingleConsumerLoops
54     $RUN MultipleProducersSingleConsumerLoops $TRIALS
55     echo SingleProducerMultipleConsumerLoops
56     $RUN SingleProducerMultipleConsumerLoops $TRIALS
57     echo CancelledProducerConsumerLoops
58     $RUN CancelledProducerConsumerLoops $TRIALS
59     echo TimeoutProducerConsumerLoops
60     $RUN TimeoutProducerConsumerLoops $TRIALS
61     echo ExecutorCompletionServiceLoops
62     $RUN ExecutorCompletionServiceLoops $TRIALS
63 dl 1.3 echo CachedThreadPoolLoops
64     $RUN CachedThreadPoolLoops $TRIALS
65 dl 1.6 echo ConcurrentQueueLoops ConcurrentLinkedQueue
66 dl 1.1 $RUN ConcurrentQueueLoops java.util.concurrent.ConcurrentLinkedQueue $TRIALS
67 dl 1.6 echo ConcurrentQueueLoops SynchronizedLinkedListQueue
68     $RUN ConcurrentQueueLoops SynchronizedLinkedListQueue $TRIALS
69 dl 1.1 echo ConcurrentDequeLoops
70     $RUN ConcurrentDequeLoops java.util.concurrent.LinkedBlockingDeque $TRIALS
71     echo DequeBash ArrayDeque
72     $RUN DequeBash java.util.ArrayDeque $TRIALS
73     echo DequeBash LinkedList
74     $RUN DequeBash java.util.LinkedList $TRIALS
75 dl 1.7 echo DequeBash LinkedBlockingDeque
76 dl 1.1 $RUN DequeBash java.util.concurrent.LinkedBlockingDeque $TRIALS
77     echo ExchangeLoops
78     $RUN ExchangeLoops $TRIALS
79 dl 1.5 echo TimeoutExchangerLoops
80     $RUN TimeoutExchangerLoops $TRIALS
81     echo TSPExchangerTest
82     $RUN TSPExchangerTest $TRIALS
83 dl 1.1 echo CancelledFutureLoops
84     $RUN CancelledFutureLoops $TRIALS
85     echo MapCheck ConcurrentHashMap
86     $RUN MapCheck java.util.concurrent.ConcurrentHashMap $TRIALS
87     echo IntMapCheck ConcurrenHhashMap
88     $RUN IntMapCheck java.util.concurrent.ConcurrentHashMap $TRIALS
89     echo IntMapCheck ConcurrentSkipListMap
90     $RUN IntMapCheck java.util.concurrent.ConcurrentSkipListMap $TRIALS
91     echo NavigableMapCheck TreeMap
92     $RUN NavigableMapCheck java.util.TreeMap $TRIALS
93     echo NavigableMapCheck ConcurrentSkipListMap
94     $RUN NavigableMapCheck java.util.concurrent.ConcurrentSkipListMap $TRIALS
95     echo NavigableSetCheck TreeSet
96     $RUN NavigableSetCheck java.util.TreeSet $TRIALS
97     echo SetBash ConcurrentSkipListSet
98     $RUN SetBash java.util.concurrent.ConcurrentSkipListSet $TRIALS 100
99 dl 1.7 echo SetBash ConcurrentHashSet
100     $RUN SetBash ConcurrentHashSet $TRIALS 100
101 dl 1.1 echo NavigableSetCheck ConcurrentSkipListSet
102     $RUN NavigableSetCheck java.util.concurrent.ConcurrentSkipListSet $TRIALS
103     echo MapLoops ConcurrentHashMap
104     $RUN MapLoops java.util.concurrent.ConcurrentHashMap $TRIALS
105     echo MapLoops ConcurrentSkipListMap
106     $RUN MapLoops java.util.concurrent.ConcurrentSkipListMap $TRIALS
107     echo MapLoops RWTreeMap
108     $RUN MapLoops RWMap $TRIALS
109 dl 1.5 echo StringMapLoops ConcurrentHashMap
110     $RUN StringMapLoops java.util.concurrent.ConcurrentHashMap $TRIALS
111     echo StringMapLoops ConcurrentSkipListMap
112     $RUN StringMapLoops java.util.concurrent.ConcurrentSkipListMap $TRIALS
113     echo StringMapLoops RWTreeMap
114     $RUN StringMapLoops RWMap $TRIALS
115 dl 1.1 echo MapWordLoops ConcurrentHashMap
116     $RUN MapWordLoops java.util.concurrent.ConcurrentHashMap $TRIALS
117     echo MapWordLoops java.util.TreeMap
118     $RUN MapWordLoops java.util.TreeMap $TRIALS
119     echo MapWordLoops RWTreeMap
120     $RUN MapWordLoops RWMap $TRIALS
121     echo MapWordLoops ConcurrentSkipListMap
122     $RUN MapWordLoops java.util.concurrent.ConcurrentSkipListMap $TRIALS
123 dl 1.6 echo CollectionLoops RWCollection
124     $RUN CollectionLoops RWCollection $TRIALS
125     echo CollectionLoops SCollection
126     $RUN CollectionLoops SCollection $TRIALS
127     echo CollectionLoops SynchronizedCollection
128     $RUN CollectionLoops SynchronizedCollection $TRIALS
129 dl 1.3 echo CollectionWordLoops ConcurrentSkipListSet
130     $RUN CollectionWordLoops java.util.concurrent.ConcurrentSkipListSet
131     echo CollectionWordLoops ConcurrentLinkedQueue
132     $RUN CollectionWordLoops java.util.concurrent.ConcurrentLinkedQueue
133     echo CollectionWordLoops CopyOnWriteArrayList
134     $RUN CollectionWordLoops java.util.concurrent.CopyOnWriteArrayList
135     echo CollectionWordLoops ArrayDeque
136     $RUN CollectionWordLoops java.util.ArrayDeque
137     echo ListBash CopyOnWriteArrayList
138     $RUN ListBash java.util.concurrent.CopyOnWriteArrayList 100 100
139     echo ListBash LinkedList
140     $RUN ListBash java.util.LinkedList 100 100
141 dl 1.1 echo TimeUnitLoops
142     $RUN TimeUnitLoops
143     echo ReadHoldingWriteLock
144     $RUN ReadHoldingWriteLock
145     echo Finals
146     $RUN Finals
147     echo FinalLongTest
148     $RUN FinalLongTest
149     echo RLJBar
150     $RUN RLJBar
151     echo RLJBar -b
152     $RUN RLJBar -b
153     echo RLIBar
154     $RUN RLIBar -np $TRIALS
155     echo RLIBar -batch 10
156     $RUN RLIBar -batch 10 -np $TRIALS
157 dl 1.7 echo UnboundedQueueFillEmptyLoops
158     $RUN UnboundedQueueFillEmptyLoops java.util.ArrayDeque
159     $RUN UnboundedQueueFillEmptyLoops java.util.PriorityQueue
160     $RUN UnboundedQueueFillEmptyLoops java.util.concurrent.PriorityBlockingQueue
161     $RUN UnboundedQueueFillEmptyLoops java.util.LinkedList
162     $RUN UnboundedQueueFillEmptyLoops java.util.concurrent.ConcurrentLinkedQueue
163     $RUN UnboundedQueueFillEmptyLoops java.util.concurrent.LinkedBlockingQueue
164     $RUN UnboundedQueueFillEmptyLoops java.util.concurrent.LinkedBlockingDeque
165     echo IteratorLoops
166     $RUN IteratorLoops java.util.ArrayList
167     $RUN IteratorLoops java.util.Vector
168     $RUN IteratorLoops java.util.concurrent.CopyOnWriteArrayList
169     $RUN IteratorLoops java.util.LinkedList
170     $RUN IteratorLoops java.util.concurrent.ConcurrentLinkedQueue
171     $RUN IteratorLoops java.util.concurrent.LinkedBlockingQueue
172     $RUN IteratorLoops java.util.ArrayDeque
173     $RUN IteratorLoops java.util.concurrent.LinkedBlockingDeque
174     $RUN IteratorLoops java.util.PriorityQueue
175     $RUN IteratorLoops java.util.concurrent.PriorityBlockingQueue
176     $RUN IteratorLoops java.util.TreeSet
177     $RUN IteratorLoops java.util.concurrent.ConcurrentSkipListSet
178     $RUN IteratorLoops java.util.HashSet
179     $RUN IteratorLoops ConcurrentHashSet