Commit 0dcd72cb by 王祖波

调整参数

parent 80da8474
......@@ -35,11 +35,11 @@ public class ImageCombined {
.build();
public static final ThreadPoolExecutor EXECUTOR = new ThreadPoolExecutor(
10,
30,
20,
40,
60L,
TimeUnit.SECONDS,
new ArrayBlockingQueue<>(100),
new ArrayBlockingQueue<>(60),
new ThreadPoolExecutor.AbortPolicy()
);
......
......@@ -71,7 +71,7 @@ public class QWmediaTest {
AtomicLong minTime = new AtomicLong(Long.MAX_VALUE);
for (int i = 0; i < TOTAL_REQUESTS; i++) {
final int requestId = i + 100;
final int requestId = i + 200;
executorService.submit(() -> {
long startTime = System.currentTimeMillis();
try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment