ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/loops/runscript
Revision: 1.2
Committed: Mon May 9 19:33:30 2005 UTC (19 years ago) by dl
Branch: MAIN
Changes since 1.1: +4 -0 lines
Log Message:
Add headers

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 SimpleReentrantLockLoops
26 $RUN SimpleReentrantLockLoops $TRIALS
27 echo SimpleMutexLoops
28 $RUN SimpleMutexLoops $TRIALS
29 echo SimpleSemaphoreLoops
30 $RUN SimpleSemaphoreLoops $TRIALS
31 echo SimpleLockLoops
32 $RUN SimpleLockLoops $TRIALS
33 echo SimpleWriteLockLoops
34 $RUN SimpleWriteLockLoops $TRIALS
35 echo SimpleTimedLockLoops
36 $RUN SimpleTimedLockLoops $TRIALS
37 echo SimpleSpinLockLoops
38 $RUN SimpleSpinLockLoops 8 # $TRIALS
39 echo TimeoutLockLoops
40 $RUN TimeoutLockLoops $TRIALS
41 echo CheckedLockLoops
42 $RUN CheckedLockLoops $TRIALS
43 echo UncheckedLockLoops
44 $RUN UncheckedLockLoops $TRIALS
45 echo CancelledLockLoops
46 $RUN CancelledLockLoops $TRIALS
47 echo LockOncePerThreadLoops
48 $RUN LockOncePerThreadLoops 5 #$TRIALS
49 echo ProducerConsumerLoops
50 $RUN ProducerConsumerLoops $TRIALS
51 echo MultipleProducersSingleConsumerLoops
52 $RUN MultipleProducersSingleConsumerLoops $TRIALS
53 echo SingleProducerMultipleConsumerLoops
54 $RUN SingleProducerMultipleConsumerLoops $TRIALS
55 echo CancelledProducerConsumerLoops
56 $RUN CancelledProducerConsumerLoops $TRIALS
57 echo TimeoutProducerConsumerLoops
58 $RUN TimeoutProducerConsumerLoops $TRIALS
59 echo ExecutorCompletionServiceLoops
60 $RUN ExecutorCompletionServiceLoops $TRIALS
61 echo ConcurrentQueueLoops
62 $RUN ConcurrentQueueLoops java.util.concurrent.ConcurrentLinkedQueue $TRIALS
63 echo ConcurrentDequeLoops
64 $RUN ConcurrentDequeLoops java.util.concurrent.LinkedBlockingDeque $TRIALS
65 echo DequeBash ArrayDeque
66 $RUN DequeBash java.util.ArrayDeque $TRIALS
67 echo DequeBash LinkedList
68 $RUN DequeBash java.util.LinkedList $TRIALS
69 echo DequeBash LinkedBlockingdeque
70 $RUN DequeBash java.util.concurrent.LinkedBlockingDeque $TRIALS
71 echo ExchangeLoops
72 $RUN ExchangeLoops $TRIALS
73 echo CancelledFutureLoops
74 $RUN CancelledFutureLoops $TRIALS
75 echo MapCheck ConcurrentHashMap
76 $RUN MapCheck java.util.concurrent.ConcurrentHashMap $TRIALS
77 echo IntMapCheck ConcurrenHhashMap
78 $RUN IntMapCheck java.util.concurrent.ConcurrentHashMap $TRIALS
79 echo IntMapCheck ConcurrentSkipListMap
80 $RUN IntMapCheck java.util.concurrent.ConcurrentSkipListMap $TRIALS
81 echo NavigableMapCheck TreeMap
82 $RUN NavigableMapCheck java.util.TreeMap $TRIALS
83 echo NavigableMapCheck ConcurrentSkipListMap
84 $RUN NavigableMapCheck java.util.concurrent.ConcurrentSkipListMap $TRIALS
85 echo NavigableSetCheck TreeSet
86 $RUN NavigableSetCheck java.util.TreeSet $TRIALS
87 echo SetBash ConcurrentSkipListSet
88 $RUN SetBash java.util.concurrent.ConcurrentSkipListSet $TRIALS 100
89 echo NavigableSetCheck ConcurrentSkipListSet
90 $RUN NavigableSetCheck java.util.concurrent.ConcurrentSkipListSet $TRIALS
91 echo MapLoops ConcurrentHashMap
92 $RUN MapLoops java.util.concurrent.ConcurrentHashMap $TRIALS
93 echo MapLoops ConcurrentSkipListMap
94 $RUN MapLoops java.util.concurrent.ConcurrentSkipListMap $TRIALS
95 echo MapLoops RWTreeMap
96 $RUN MapLoops RWMap $TRIALS
97 echo MapWordLoops ConcurrentHashMap
98 $RUN MapWordLoops java.util.concurrent.ConcurrentHashMap $TRIALS
99 echo MapWordLoops java.util.TreeMap
100 $RUN MapWordLoops java.util.TreeMap $TRIALS
101 echo MapWordLoops RWTreeMap
102 $RUN MapWordLoops RWMap $TRIALS
103 echo MapWordLoops ConcurrentSkipListMap
104 $RUN MapWordLoops java.util.concurrent.ConcurrentSkipListMap $TRIALS
105 echo TimeUnitLoops
106 $RUN TimeUnitLoops
107 echo ReadHoldingWriteLock
108 $RUN ReadHoldingWriteLock
109 echo Finals
110 $RUN Finals
111 echo FinalLongTest
112 $RUN FinalLongTest
113 echo RLJBar
114 $RUN RLJBar
115 echo RLJBar -b
116 $RUN RLJBar -b
117 echo RLIBar
118 $RUN RLIBar -np $TRIALS
119 echo RLIBar -batch 10
120 $RUN RLIBar -batch 10 -np $TRIALS