Skip to content

Benchmarks

Andrew J. Gillis edited this page Jan 31, 2018 · 1 revision

Publish/Subscribe

Basic pub/sub benchmarks, with up to 512 subscribers, can be run like this:

cd aat
go test -run=XXX -bench=.
go test -run=XXX -bench=. -scheme=ws
go test -run=XXX -bench=. -scheme=wss
go test -run=XXX -bench=. -scheme=tcp
go test -run=XXX -bench=. -scheme=tcps

These benchmarks publish n messages to a fixed number of subscribers. This allows comparison of publishing to different numbers of subscribers all on the same machine.