Commit 0dcd72cb by 王祖波

调整参数

parent 80da8474
...@@ -35,11 +35,11 @@ public class ImageCombined { ...@@ -35,11 +35,11 @@ public class ImageCombined {
.build(); .build();
public static final ThreadPoolExecutor EXECUTOR = new ThreadPoolExecutor( public static final ThreadPoolExecutor EXECUTOR = new ThreadPoolExecutor(
10, 20,
30, 40,
60L, 60L,
TimeUnit.SECONDS, TimeUnit.SECONDS,
new ArrayBlockingQueue<>(100), new ArrayBlockingQueue<>(60),
new ThreadPoolExecutor.AbortPolicy() new ThreadPoolExecutor.AbortPolicy()
); );
......
...@@ -71,7 +71,7 @@ public class QWmediaTest { ...@@ -71,7 +71,7 @@ public class QWmediaTest {
AtomicLong minTime = new AtomicLong(Long.MAX_VALUE); AtomicLong minTime = new AtomicLong(Long.MAX_VALUE);
for (int i = 0; i < TOTAL_REQUESTS; i++) { for (int i = 0; i < TOTAL_REQUESTS; i++) {
final int requestId = i + 100; final int requestId = i + 200;
executorService.submit(() -> { executorService.submit(() -> {
long startTime = System.currentTimeMillis(); long startTime = System.currentTimeMillis();
try { 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