acelyc111 commented on issue #4522: URL: https://github.com/apache/incubator-doris/issues/4522#issuecomment-686572740
After removing gcov flags in CMakelist.txt, IntCounter can give a better performance in multi-threads scenario ``` I0903 15:27:28.045011 72701 new_metrics_test.cpp:97] int64_t: elapsed: 306490250ns, ns/iter:3 I0903 15:27:29.728011 72701 new_metrics_test.cpp:110] IntAtomicCounter: elapsed: 1682700035ns, ns/iter:16 I0903 15:27:35.353273 72701 new_metrics_test.cpp:123] IntCounter: elapsed: 5624614732ns, ns/iter:56 I0903 15:27:36.459800 72701 new_metrics_test.cpp:138] IntCounter multi-thread elapsed: 2338511587ns, ns/iter:73 I0903 15:27:38.255132 72701 new_metrics_test.cpp:153] IntAtomicCounter multi-thread elapsed: 20944762504ns, ns/iter:654 ``` I've no confusion now. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org