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 |
58 |
|
$RUN TimeoutProducerConsumerLoops $TRIALS |
59 |
|
echo ExecutorCompletionServiceLoops |
60 |
|
$RUN ExecutorCompletionServiceLoops $TRIALS |
61 |
+ |
echo CachedThreadPoolLoops |
62 |
+ |
$RUN CachedThreadPoolLoops $TRIALS |
63 |
|
echo ConcurrentQueueLoops |
64 |
|
$RUN ConcurrentQueueLoops java.util.concurrent.ConcurrentLinkedQueue $TRIALS |
65 |
|
echo ConcurrentDequeLoops |
104 |
|
$RUN MapWordLoops RWMap $TRIALS |
105 |
|
echo MapWordLoops ConcurrentSkipListMap |
106 |
|
$RUN MapWordLoops java.util.concurrent.ConcurrentSkipListMap $TRIALS |
107 |
+ |
echo CollectionWordLoops ConcurrentSkipListSet |
108 |
+ |
$RUN CollectionWordLoops java.util.concurrent.ConcurrentSkipListSet |
109 |
+ |
echo CollectionWordLoops ConcurrentLinkedQueue |
110 |
+ |
$RUN CollectionWordLoops java.util.concurrent.ConcurrentLinkedQueue |
111 |
+ |
echo CollectionWordLoops CopyOnWriteArrayList |
112 |
+ |
$RUN CollectionWordLoops java.util.concurrent.CopyOnWriteArrayList |
113 |
+ |
echo CollectionWordLoops ArrayDeque |
114 |
+ |
$RUN CollectionWordLoops java.util.ArrayDeque |
115 |
+ |
echo ListBash CopyOnWriteArrayList |
116 |
+ |
$RUN ListBash java.util.concurrent.CopyOnWriteArrayList 100 100 |
117 |
+ |
echo ListBash LinkedList |
118 |
+ |
$RUN ListBash java.util.LinkedList 100 100 |
119 |
|
echo TimeUnitLoops |
120 |
|
$RUN TimeUnitLoops |
121 |
|
echo ReadHoldingWriteLock |