libp2p / js-libp2p

The JavaScript Implementation of libp2p networking stack.
https://libp2p.io
Other
2.29k stars 438 forks source link

perf: Add component level performance benchmarks per PR #2120

Open maschad opened 11 months ago

maschad commented 11 months ago

As discussed in pl-strflt.notion.site/js-libp2p-perf-benchmarking-f7c42f96cbd44799a321347f6c15c8d4?pvs=4

In order to detect performance regressions at the component level, it may be useful to run component level benchmarks per PR. We've seen scenarios where mplex is more performant than yamux, despite mplex being deprecated. We could leverage the existing perf implementation and a Github action to create a comment such as this one https://github.com/ChainSafe/lodestar/pull/6004#issuecomment-1737257011

dhuseby commented 3 months ago

Add similar benchmarking that lodestar has but at the component level.