Re: [PATCH] perf/test: Speed up test case perf annotate basic tests

From: James Clark
Date: Tue Sep 17 2024 - 08:52:16 EST




On 17/09/2024 09:57, Thomas Richter wrote:
perf test 70 takes a long time. One culprit is the output of command
perf annotate. Per default enabled are
- demangle symbol names
- interleave source code with assembly code.
Disable demangle of symbols and abort the annotation
after the first 250 lines.

This speeds up the test case considerable, for example
on s390:

Output before:
# time perf test 70
70: perf annotate basic tests : Ok
.....
real 2m7.467s
user 1m26.869s
sys 0m34.086s
#

Output after:
# time perf test 70
70: perf annotate basic tests : Ok

real 0m3.341s
user 0m1.606s
sys 0m0.362s
#


Interesting that there is such a big difference, I only measured 4s vs 14s without the patch.

Either way it's slightly faster now:

Reviewed-by: James Clark <james.clark@xxxxxxxxxx>