Go to file
Andrea Maria Piana e07be87027
Update with geth 1.9
2019-11-06 07:24:35 +01:00
vendor Update with geth 1.9 2019-11-06 07:24:35 +01:00
.dockerignore Initial commit 2019-10-08 09:42:56 +02:00
.gitignore Initial commit 2019-10-08 09:42:56 +02:00
.ruby-version Initial commit 2019-10-08 09:42:56 +02:00
Dockerfile Initial commit 2019-10-08 09:42:56 +02:00
Gemfile Initial commit 2019-10-08 09:42:56 +02:00
Gemfile.lock Initial commit 2019-10-08 09:42:56 +02:00
Makefile script 2019-10-29 11:29:34 +01:00
README.md script 2019-10-29 11:29:34 +01:00
docker-compose.yml Initial commit 2019-10-08 09:42:56 +02:00
go.mod Update with geth 1.9 2019-11-06 07:24:35 +01:00
go.sum Update with geth 1.9 2019-11-06 07:24:35 +01:00
main.go Update with geth 1.9 2019-11-06 07:24:35 +01:00
run.rb script 2019-10-29 11:29:34 +01:00
run.sh script 2019-10-29 11:29:34 +01:00

README.md

Status protocol go bandwidth tests

Description

This is a bandwidth test for status-protocol-go. How it works: New keys are always generated, each second (we could make this configurable) a message is sent to a random peer, this goes on until either we reach MESSAGES or we have been running for enough SECONDS. Both options are ignored if set to 0.

The tests are all run in the same container, so bandwidth usage is to be divided by the number of peers.

The code is very rough, I just got it working as quickly as I could, stats are recorded partly in containers and could be collated at the end of each tests (messages sent, the id of messages so we can check for dropped messages etc).

Running

You need to have docker installed.

./run.rb -m 0 -s 20 -a 2 -d -g

Where

-m : Number of messages to be sent, if 0 it will be unlimited, otherwise the program will stop once it sends m messages from each peer.

-s : Number of seconds to run. 0 for disabling it

-a : Number of peers, needs to be at least 2

-d : Enable datasync (enabled in v1)

-g : Enable generic discovery topic (disabled in v1)

Either -m or -s needs to be specified.

Script

make build
./status-protocol-bandwidth-test -public-chat-id=testpublicchat -src=test2 -port=30304 -dst=test1 -messages=100