Show: PubSub simulator & benchmark, with demos (some interactive) #2891
Replies: 2 comments
-
Very cool @pancsta. Thanks for sharing! A random idea, but if you've gotten rid of the channels and async, can you compile this with TinyGo to WASM and run it from another libp2p host? (e.g. rust-libp2p?) How many messages/second can this parse relative to the standard go-libp2p-pubsub? I'm curious from a fuzzing-feasibility perspective. |
Beta Was this translation helpful? Give feedback.
-
Not sure if I understand the question. You can probably compile the whole simulator+pubsub+libp2p to WASM even now using If you would like to add a rust-based peer to the simulator (outside of wasm and the browser), then that would require implementing the sim-peer API over the network (probably via grpc), but is theoretically feasible.
Here are some charts from the benchmark based on The problem with |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
This is a cross-post from discuss.libp2p.io regarding pancsta/go-libp2p-pubsub-benchmark.
Since the frequency on the open maintainers call was low, I've recorded a screencast with some silent-movie-style captions, so everyone can take a look. For anyone interested in investigating the details of PubSub, Discovery and their simulator nodes, there are interactive debugger instances available, with all the mentioned machines having a synchronized timeline. They are accessible through either web or ssh, thanks to am-dbg-ssh and wetty. Unfortunately, public instances of Jaeger and Grafana are not available.
ssh 188.166.101.108 -p 4444
Thanks, hope you'll like it.
PS. Sorry for all the typos :) No time Toulouse...
@dhuseby
Beta Was this translation helpful? Give feedback.
All reactions