ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/loops/runscript
Revision: 1.5
Committed: Sun Aug 7 19:25:55 2005 UTC (18 years, 9 months ago) by dl
Branch: MAIN
Changes since 1.4: +10 -0 lines
Log Message:
Add exchanger performance tests; update others

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.4 echo CASLoops
26     $RUN CASLoops
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.1 echo ConcurrentQueueLoops
66     $RUN ConcurrentQueueLoops java.util.concurrent.ConcurrentLinkedQueue $TRIALS
67     echo ConcurrentDequeLoops
68     $RUN ConcurrentDequeLoops java.util.concurrent.LinkedBlockingDeque $TRIALS
69     echo DequeBash ArrayDeque
70     $RUN DequeBash java.util.ArrayDeque $TRIALS
71     echo DequeBash LinkedList
72     $RUN DequeBash java.util.LinkedList $TRIALS
73     echo DequeBash LinkedBlockingdeque
74     $RUN DequeBash java.util.concurrent.LinkedBlockingDeque $TRIALS
75     echo ExchangeLoops
76     $RUN ExchangeLoops $TRIALS
77 dl 1.5 echo TimeoutExchangerLoops
78     $RUN TimeoutExchangerLoops $TRIALS
79     echo TSPExchangerTest
80     $RUN TSPExchangerTest $TRIALS
81 dl 1.1 echo CancelledFutureLoops
82     $RUN CancelledFutureLoops $TRIALS
83     echo MapCheck ConcurrentHashMap
84     $RUN MapCheck java.util.concurrent.ConcurrentHashMap $TRIALS
85     echo IntMapCheck ConcurrenHhashMap
86     $RUN IntMapCheck java.util.concurrent.ConcurrentHashMap $TRIALS
87     echo IntMapCheck ConcurrentSkipListMap
88     $RUN IntMapCheck java.util.concurrent.ConcurrentSkipListMap $TRIALS
89     echo NavigableMapCheck TreeMap
90     $RUN NavigableMapCheck java.util.TreeMap $TRIALS
91     echo NavigableMapCheck ConcurrentSkipListMap
92     $RUN NavigableMapCheck java.util.concurrent.ConcurrentSkipListMap $TRIALS
93     echo NavigableSetCheck TreeSet
94     $RUN NavigableSetCheck java.util.TreeSet $TRIALS
95     echo SetBash ConcurrentSkipListSet
96     $RUN SetBash java.util.concurrent.ConcurrentSkipListSet $TRIALS 100
97     echo NavigableSetCheck ConcurrentSkipListSet
98     $RUN NavigableSetCheck java.util.concurrent.ConcurrentSkipListSet $TRIALS
99     echo MapLoops ConcurrentHashMap
100     $RUN MapLoops java.util.concurrent.ConcurrentHashMap $TRIALS
101     echo MapLoops ConcurrentSkipListMap
102     $RUN MapLoops java.util.concurrent.ConcurrentSkipListMap $TRIALS
103     echo MapLoops RWTreeMap
104     $RUN MapLoops RWMap $TRIALS
105 dl 1.5 echo StringMapLoops ConcurrentHashMap
106     $RUN StringMapLoops java.util.concurrent.ConcurrentHashMap $TRIALS
107     echo StringMapLoops ConcurrentSkipListMap
108     $RUN StringMapLoops java.util.concurrent.ConcurrentSkipListMap $TRIALS
109     echo StringMapLoops RWTreeMap
110     $RUN StringMapLoops RWMap $TRIALS
111 dl 1.1 echo MapWordLoops ConcurrentHashMap
112     $RUN MapWordLoops java.util.concurrent.ConcurrentHashMap $TRIALS
113     echo MapWordLoops java.util.TreeMap
114     $RUN MapWordLoops java.util.TreeMap $TRIALS
115     echo MapWordLoops RWTreeMap
116     $RUN MapWordLoops RWMap $TRIALS
117     echo MapWordLoops ConcurrentSkipListMap
118     $RUN MapWordLoops java.util.concurrent.ConcurrentSkipListMap $TRIALS
119 dl 1.3 echo CollectionWordLoops ConcurrentSkipListSet
120     $RUN CollectionWordLoops java.util.concurrent.ConcurrentSkipListSet
121     echo CollectionWordLoops ConcurrentLinkedQueue
122     $RUN CollectionWordLoops java.util.concurrent.ConcurrentLinkedQueue
123     echo CollectionWordLoops CopyOnWriteArrayList
124     $RUN CollectionWordLoops java.util.concurrent.CopyOnWriteArrayList
125     echo CollectionWordLoops ArrayDeque
126     $RUN CollectionWordLoops java.util.ArrayDeque
127     echo ListBash CopyOnWriteArrayList
128     $RUN ListBash java.util.concurrent.CopyOnWriteArrayList 100 100
129     echo ListBash LinkedList
130     $RUN ListBash java.util.LinkedList 100 100
131 dl 1.1 echo TimeUnitLoops
132     $RUN TimeUnitLoops
133     echo ReadHoldingWriteLock
134     $RUN ReadHoldingWriteLock
135     echo Finals
136     $RUN Finals
137     echo FinalLongTest
138     $RUN FinalLongTest
139     echo RLJBar
140     $RUN RLJBar
141     echo RLJBar -b
142     $RUN RLJBar -b
143     echo RLIBar
144     $RUN RLIBar -np $TRIALS
145     echo RLIBar -batch 10
146     $RUN RLIBar -batch 10 -np $TRIALS