Skip to content

Instantly share code, notes, and snippets.

@dictav
Created January 16, 2017 13:33
Show Gist options
  • Save dictav/bd963feb2fd6f92e032d6c6e4c68f0c0 to your computer and use it in GitHub Desktop.
Save dictav/bd963feb2fd6f92e032d6c6e4c68f0c0 to your computer and use it in GitHub Desktop.

Protocol Buffers の結果

make test
go test -tags=server -benchmem -bench .
BenchmarkGetPerson-4    	   10000	    195872 ns/op	    6526 B/op	     116 allocs/op
BenchmarkListPerson-4   	    2000	    774706 ns/op	   80248 B/op	    1580 allocs/op
PASS
ok  	github.com/dictav/test-go-grpc-protocolbuffers	3.700s

https://[email protected]/dictav/test-go-grpc-protocolbuffers

FlatBuffers の結果

> make test
go test -benchmem -bench .
BenchmarkGetPerson-4     	   10000	    211381 ns/op	    6322 B/op	     118 allocs/op
BenchmarkListPerson-4    	    2000	    856069 ns/op	  135201 B/op	    2341 allocs/op
BenchmarkArrayPerson-4   	    5000	    300595 ns/op	   94093 B/op	     231 allocs/op
PASS
ok  	github.com/dictav/test-go-grpc-flatbuffers	6.435s

https://[email protected]/dictav/test-go-grpc-flatbuffers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment