diff options
author | Yang Jihong <yangjihong1@huawei.com> | 2023-09-23 12:30:35 +0300 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2023-09-27 07:47:12 +0300 |
commit | 5d2050453d489595ffa9491e05964e85c1927f35 (patch) | |
tree | 4fe881f3ca51936586567b825c7636619681dcf8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 8870261a70942ba7feee85c0f9a24c68c307af68 (diff) | |
download | linux-5d2050453d489595ffa9491e05964e85c1927f35.tar.xz |
perf bench messaging: Factor out create_worker()
Refactor the create_worker() helper:
1. Modify the return value and use pthread pointer as a parameter to
facilitate value assignment in create_worker().
2. The thread worker creation and process worker creation are abstracted
into independent helpers.
No functional change.
Test result:
# perf bench sched messaging
# Running 'sched/messaging' benchmark:
# 20 sender and receiver processes per group
# 10 groups == 400 processes run
Total time: 6.332 [sec]
# perf bench sched messaging -t
# Running 'sched/messaging' benchmark:
# 20 sender and receiver threads per group
# 10 groups == 400 threads run
Total time: 5.545 [sec]
Signed-off-by: Yang Jihong <yangjihong1@huawei.com>
Reviewed-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20230923093037.961232-3-yangjihong1@huawei.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions