2018-06-11 10:48:42 +00:00
|
|
|
package benchmarks
|
|
|
|
|
|
|
|
import (
|
|
|
|
"flag"
|
|
|
|
|
2018-11-14 07:03:58 +00:00
|
|
|
"github.com/ethereum/go-ethereum/p2p/enode"
|
2018-06-11 10:48:42 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
// general
|
|
|
|
peerURL = flag.String("peerurl", "", "Peer raw URL to which send messages")
|
|
|
|
// mailserver tests
|
|
|
|
ccyPeers = flag.Int("ccypeers", 1, "Number of concurrent peers requesting messages")
|
|
|
|
// messages tests
|
|
|
|
msgPass = flag.String("msgpass", "message-pass", "Password to create sym key from")
|
|
|
|
msgCount = flag.Int64("msgcount", 100, "Number of messages to send")
|
|
|
|
msgSize = flag.Int64("msgsize", int64(1024), "Message size in bytes")
|
|
|
|
msgBatchSize = flag.Int64("msgbatchsize", int64(20), "Number of messages to send in a batch")
|
|
|
|
)
|
|
|
|
|
2018-11-14 07:03:58 +00:00
|
|
|
var peerEnode *enode.Node
|
2018-06-11 10:48:42 +00:00
|
|
|
|
|
|
|
func init() {
|
|
|
|
flag.Parse()
|
|
|
|
|
2018-11-14 07:03:58 +00:00
|
|
|
peerEnode = enode.MustParseV4(*peerURL)
|
2018-06-11 10:48:42 +00:00
|
|
|
}
|