Created
August 29, 2016 21:24
-
-
Save abraithwaite/905555e81b35eca8d30987690dfc1220 to your computer and use it in GitHub Desktop.
This file contains 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
vagrant at local in ~GOPATH/src/github.com/alecthomas/go_serialization_benchmarks (vendor●●) | |
21:21:28 $ go test -cpuprofile=cpu.out -bench='.*' ./ | |
A test suite for benchmarking various Go serialization methods. | |
See README.md for details on running the benchmarks. | |
BenchmarkCapNProtoMarshal-4 3000000 522 ns/op 56 B/op 2 allocs/op | |
BenchmarkCapNProtoUnmarshal-4 3000000 477 ns/op 200 B/op 6 allocs/op | |
BenchmarkCapNProto2Marshal-4 2000000 851 ns/op 244 B/op 3 allocs/op | |
BenchmarkCapNProto2Unmarshal-4 1000000 1072 ns/op 320 B/op 6 allocs/op | |
BenchmarkCapNProto2UnmarshalReuse-4 3000000 383 ns/op 80 B/op 1 allocs/op | |
PASS | |
ok github.com/alecthomas/go_serialization_benchmarks 9.245s | |
vagrant at local in ~GOPATH/src/github.com/alecthomas/go_serialization_benchmarks (vendor●●) | |
21:22:23 $ go test -cpuprofile=cpu.out -bench='.*' ./ | |
A test suite for benchmarking various Go serialization methods. | |
See README.md for details on running the benchmarks. | |
BenchmarkCapNProtoMarshal-4 3000000 446 ns/op 56 B/op 2 allocs/op | |
BenchmarkCapNProtoUnmarshal-4 3000000 434 ns/op 200 B/op 6 allocs/op | |
BenchmarkCapNProto2Marshal-4 2000000 705 ns/op 244 B/op 3 allocs/op | |
BenchmarkCapNProto2Unmarshal-4 1000000 1009 ns/op 320 B/op 6 allocs/op | |
BenchmarkCapNProto2UnmarshalReuse-4 5000000 357 ns/op 80 B/op 1 allocs/op | |
PASS | |
ok github.com/alecthomas/go_serialization_benchmarks 9.002s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment