forked from libbpf/blazesym
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add benchmark for Gsym symbolization without setup
All our existing end-to-end benchmarks included setup time and excluded any benefits gained from caching symbolization data -- effectively a worst case scenario. This change adds a benchmark that keeps around the symbolizer and symbolizes multiple addresses in a single call. All addresses have a high (n >= 12) number of inlined functions, so reporting them does have a large effect on performance. When run with and without libbpf#402, which eliminates large amounts of allocations (which apply to all symbol names and paths, including those in reported inlined functions), we can see an almost 12% performance improvement by said change: main/symbolize_gsym_multi_no_setup time: [119.31 µs 121.71 µs 124.59 µs] change: [-13.978% -11.955% -9.7199%] (p = 0.00 < 0.02) Performance has improved.
- Loading branch information
Showing
2 changed files
with
43 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters