tests/Makefile add mblock_benchmark

use_iouring
YuQing 2025-07-18 11:21:18 +08:00
parent 6a18162a12
commit f0484579e0
3 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -62,6 +62,7 @@ src/tests/test_sorted_array
src/tests/test_sorted_queue
src/tests/test_thread_local
src/tests/test_memcpy
src/tests/mblock_benchmark
# other
*.swp

View File

@ -11,7 +11,7 @@ ALL_PRGS = test_allocator test_skiplist test_multi_skiplist test_mblock test_blo
test_server_id_func test_pipe test_atomic test_file_write_hole test_file_lock \
test_pthread_wait test_thread_pool test_data_visible test_mutex_lock_perf \
test_queue_perf test_normalize_path test_sorted_array test_sorted_queue \
test_thread_local test_memcpy
test_thread_local test_memcpy mblock_benchmark
all: $(ALL_PRGS)

View File

@ -27,7 +27,7 @@
#include "fastcommon/pthread_func.h"
#include "fastcommon/fast_mblock.h"
static int thread_count = 2;
static int thread_count = 4;
static int64_t loop_count = 10000000;
static struct fast_mblock_man mblock;