Created
May 27, 2016 19:58
-
-
Save rday/a760e7be1f18a20afdbc9c0c5f4b4338 to your computer and use it in GitHub Desktop.
Benchmarks for different serialization libraries
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ encoding git:(master) ✗ go test -bench=. | |
PASS | |
BenchmarkThriftSerialize-8 300000 3364 ns/op | |
BenchmarkJsonSerialize-8 200000 7623 ns/op | |
BenchmarkPbSerialize-8 200000 5578 ns/op | |
BenchmarkThriftDeserialize-8 200000 6390 ns/op | |
BenchmarkJsonDeserialize-8 100000 18291 ns/op | |
BenchmarkPbDeserialize-8 200000 7358 ns/op | |
ok code.wirelessregistry.com/util/encoding 8.812s | |
➜ encoding git:(master) ✗ go test -bench=. | |
PASS | |
BenchmarkThriftSerialize-8 500000 3389 ns/op | |
BenchmarkJsonSerialize-8 200000 7972 ns/op | |
BenchmarkPbSerialize-8 200000 5703 ns/op | |
BenchmarkThriftDeserialize-8 200000 6265 ns/op | |
BenchmarkJsonDeserialize-8 100000 18608 ns/op | |
BenchmarkPbDeserialize-8 200000 7375 ns/op | |
ok code.wirelessregistry.com/util/encoding 9.631s | |
➜ encoding git:(master) ✗ go test -bench=. | |
PASS | |
BenchmarkThriftSerialize-8 300000 3369 ns/op | |
BenchmarkJsonSerialize-8 200000 7681 ns/op | |
BenchmarkPbSerialize-8 200000 5555 ns/op | |
BenchmarkThriftDeserialize-8 200000 6180 ns/op | |
BenchmarkJsonDeserialize-8 100000 18164 ns/op | |
BenchmarkPbDeserialize-8 200000 7356 ns/op | |
ok code.wirelessregistry.com/util/encoding 8.772s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment