From 907d39108f9358310f386af3c66007ed676fcb16 Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Wed, 1 May 2024 10:40:31 +0800 Subject: [PATCH] feat optimize thrad_pool --- src/sled/system/thread_pool_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sled/system/thread_pool_test.cc b/src/sled/system/thread_pool_test.cc index 1a51507..24985be 100644 --- a/src/sled/system/thread_pool_test.cc +++ b/src/sled/system/thread_pool_test.cc @@ -60,10 +60,10 @@ TEST_SUITE("ThreadPool") delete tp; } - TEST_CASE("10^6 task test") + TEST_CASE("10^5 task test") { sled::ThreadPool *tp = new sled::ThreadPool(); - const int task_num = 1E4; + const int task_num = 1E5; sled::WaitGroup wg(task_num); for (int i = 0; i < task_num; i++) { tp->PostTask([wg] { wg.Done(); });