From edbd04f3a0943192777b01920fcba8f850b18b0d Mon Sep 17 00:00:00 2001 From: chenzizhan Date: Thu, 24 Aug 2023 11:03:32 +0800 Subject: performance: matric serialize --- test/test_performance.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'test/test_performance.cpp') diff --git a/test/test_performance.cpp b/test/test_performance.cpp index 9f654ff..e311b66 100644 --- a/test/test_performance.cpp +++ b/test/test_performance.cpp @@ -389,7 +389,7 @@ clock_t perform_serialize_test(std::function metric_add_func, std::function metric_register_func, enum sampling_mode mode) { - const int MAX_CELL_NUM = 1000000; + const int MAX_CELL_NUM = 10000; Fieldstat_tag_list_wrapper *tags[MAX_CELL_NUM]; for (int i = 0; i < MAX_CELL_NUM; i++) { tags[i] = new Fieldstat_tag_list_wrapper("my key", i); @@ -404,17 +404,21 @@ clock_t perform_serialize_test(std::function