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 |
22 |
|
echo "Java is " $RUN |
23 |
|
echo "Trials per test: " $TRIALS |
24 |
|
|
25 |
+ |
echo CASLoops |
26 |
+ |
$RUN CASLoops |
27 |
|
echo SimpleReentrantLockLoops |
28 |
|
$RUN SimpleReentrantLockLoops $TRIALS |
29 |
|
echo SimpleMutexLoops |
60 |
|
$RUN TimeoutProducerConsumerLoops $TRIALS |
61 |
|
echo ExecutorCompletionServiceLoops |
62 |
|
$RUN ExecutorCompletionServiceLoops $TRIALS |
63 |
+ |
echo CachedThreadPoolLoops |
64 |
+ |
$RUN CachedThreadPoolLoops $TRIALS |
65 |
|
echo ConcurrentQueueLoops |
66 |
|
$RUN ConcurrentQueueLoops java.util.concurrent.ConcurrentLinkedQueue $TRIALS |
67 |
|
echo ConcurrentDequeLoops |
106 |
|
$RUN MapWordLoops RWMap $TRIALS |
107 |
|
echo MapWordLoops ConcurrentSkipListMap |
108 |
|
$RUN MapWordLoops java.util.concurrent.ConcurrentSkipListMap $TRIALS |
109 |
+ |
echo CollectionWordLoops ConcurrentSkipListSet |
110 |
+ |
$RUN CollectionWordLoops java.util.concurrent.ConcurrentSkipListSet |
111 |
+ |
echo CollectionWordLoops ConcurrentLinkedQueue |
112 |
+ |
$RUN CollectionWordLoops java.util.concurrent.ConcurrentLinkedQueue |
113 |
+ |
echo CollectionWordLoops CopyOnWriteArrayList |
114 |
+ |
$RUN CollectionWordLoops java.util.concurrent.CopyOnWriteArrayList |
115 |
+ |
echo CollectionWordLoops ArrayDeque |
116 |
+ |
$RUN CollectionWordLoops java.util.ArrayDeque |
117 |
+ |
echo ListBash CopyOnWriteArrayList |
118 |
+ |
$RUN ListBash java.util.concurrent.CopyOnWriteArrayList 100 100 |
119 |
+ |
echo ListBash LinkedList |
120 |
+ |
$RUN ListBash java.util.LinkedList 100 100 |
121 |
|
echo TimeUnitLoops |
122 |
|
$RUN TimeUnitLoops |
123 |
|
echo ReadHoldingWriteLock |