Closed kungf closed 9 months ago
CorrectSize
is a debug assertion used to verify that the right size is being passed to sized delete. It appears to be where most of your time is going in the flame graph.
If you do an optimized build (-c opt
with Bazel), these assertions will be compiled out.
Test code was built with bazel, and the result:
tcmalloc is 10+ slow than glibc, it's so confusing for me! Is anything wrong with my build?
Thank you very much for your help!!
test code:
WORKSPACE
WORKSPACE