Skip to content

Commit

Permalink
update vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
kelindar committed May 25, 2019
1 parent f858715 commit f6d87c9
Show file tree
Hide file tree
Showing 316 changed files with 90,776 additions and 5,198 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"**/.git": true,
"**/.DS_Store": true,
".gitignore": true,
"vendor/": true,
// "vendor/": true,
".vscode": true,
"build*": true,
"LICENSE": true,
Expand Down
1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5h
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d h1:+R4KGOnez64A81RvjARKc4UT5/tI9ujCIVX+P5KiHuI=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190524152521-dbbf3f1254d4 h1:VSJ45BzqrVgR4clSx415y1rHH7QAGhGt71J0ZmhLYrc=
golang.org/x/sys v0.0.0-20190524152521-dbbf3f1254d4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
Expand Down
20 changes: 20 additions & 0 deletions internal/broker/cluster/peer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,26 @@ func (s *stubGossip) GossipUnicast(dst mesh.PeerName, msg []byte) error {
return nil
}

// Benchmark_ProcessQueue-8 3000 515299 ns/op 407117 B/op 18 allocs/op
func Benchmark_ProcessQueue(b *testing.B) {
msg := newTestMessage(message.Ssid{1, 2, 3}, "a/b/c/", "hello abc")
s := new(Swarm)
p := s.newPeer(123)
p.sender = new(stubGossip)
defer p.Close()

b.ReportAllocs()
b.ResetTimer()
for i := 0; i < b.N; i++ {
for m := 0; m < 1000; m++ {
p.Send(&msg)
}

p.processSendQueue()
}

}

func TestPeer_Multiple(t *testing.T) {
s := new(Swarm)
p := s.newPeer(123)
Expand Down
1 change: 1 addition & 0 deletions internal/network/mqtt/mqtt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func benchmarkPacketEncode(b *testing.B, packet Message) {
}
}

// BenchmarkPublishDecode-8 3000000 458 ns/op 964 B/op 4 allocs/op
func BenchmarkPublishDecode(b *testing.B) {
benchmarkPacketDecode(b, &Publish{
Header: &StaticHeader{
Expand Down
17 changes: 15 additions & 2 deletions vendor/github.com/axiomhq/hyperloglog/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 14 additions & 6 deletions vendor/github.com/axiomhq/hyperloglog/hyperloglog.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion vendor/github.com/axiomhq/hyperloglog/sparse.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions vendor/github.com/beorn7/perks/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f6d87c9

Please sign in to comment.