go raft consensus implementation
import "github.com/treeforest/raft"
// go mod vendor
tip: you can see the example in /example folder.
Step 1: init a raft node
node := raft.New(...)
Step 2: start node
node.Start()
Step 3: stop node
node.Stop()
Environment
CPU: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz 2.42 GHz
Memory: 16G
Go: 1.18.1
OS: Windows 11
Hardware: SSD(UMIS RPJTJ512MEE1OWX)
TPS
1 Node: 37174 request/second
2 Nodes: 29411 request/second
3 Nodes: 29154 request/second
4 Nodes: 28409 request/second
5 Nodes: 26525 request/second
6 Nodes: 26178 request/second