chenBright commented on PR #2207:
URL: https://github.com/apache/brpc/pull/2207#issuecomment-1506295981

   在自己机器上测试了每个pthread线程一个独立的pthread_mutex,只执行加锁解锁操作,性能下降的量级是一样的。
   
   ```shell
   I0413 11:46:11.933795 {} 15638 18446744073709551615 
brpc_doubly_buffered_data_unittest.cpp:414 [PerfTest]  thread_num=1 
count=26259114 average_time=38.1216 qps=2.62318e+07
   I0413 11:46:12.937870 {} 15638 18446744073709551615 
brpc_doubly_buffered_data_unittest.cpp:414 [PerfTest]  thread_num=4 
count=4867834 average_time=823.195 qps=1.21478e+06
   I0413 11:46:13.941736 {} 15638 18446744073709551615 
brpc_doubly_buffered_data_unittest.cpp:414 [PerfTest]  thread_num=8 
count=4979021 average_time=1609.4 qps=621348
   I0413 11:46:14.945895 {} 15638 18446744073709551615 
brpc_doubly_buffered_data_unittest.cpp:414 [PerfTest]  thread_num=12 
count=5716892 average_time=2102.88 qps=475538
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to