From f0484579e082dc75e22cdd9a553e527512acd683 Mon Sep 17 00:00:00 2001 From: YuQing <384681@qq.com> Date: Fri, 18 Jul 2025 11:21:18 +0800 Subject: [PATCH] tests/Makefile add mblock_benchmark --- .gitignore | 1 + src/tests/Makefile | 2 +- src/tests/mblock_benchmark.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index dbfdab2..c9008a7 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/src/tests/Makefile b/src/tests/Makefile index 5f57bc1..3a7bd09 100644 --- a/src/tests/Makefile +++ b/src/tests/Makefile @@ -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) diff --git a/src/tests/mblock_benchmark.c b/src/tests/mblock_benchmark.c index 469e127..7db85b1 100644 --- a/src/tests/mblock_benchmark.c +++ b/src/tests/mblock_benchmark.c @@ -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;