This is an automated email from the ASF dual-hosted git repository.

chenBright pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brpc.git


The following commit(s) were added to refs/heads/master by this push:
     new 87d498dd test: remove leaking ResourcePool allocation benchmark (#3639)
87d498dd is described below

commit 87d498dd62d8b3b3562407cdf38ac0c475d312b3
Author: nkysg <[email protected]>
AuthorDate: Thu Oct 22 14:06:44 2026 +0800

    test: remove leaking ResourcePool allocation benchmark (#3639)
---
 test/resource_pool_unittest.cpp | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/test/resource_pool_unittest.cpp b/test/resource_pool_unittest.cpp
index 7bbac85b..9bc27f13 100644
--- a/test/resource_pool_unittest.cpp
+++ b/test/resource_pool_unittest.cpp
@@ -211,13 +211,6 @@ TEST_F(ResourcePoolTest, get_int) {
     tm.stop();
     printf("get a int takes %.1fns\n", tm.n_elapsed()/(double)N);
     
-    tm.start();
-    for (size_t i = 0; i < N; ++i) {
-        *(new int) = i;
-    }    
-    tm.stop();
-    printf("new a int takes %luns\n", tm.n_elapsed()/N);
-
     tm.start();
     for (size_t i = 0; i < N; ++i) {
         id.value = i;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to