Skip to content

Instantly share code, notes, and snippets.

@abraithwaite
Created August 25, 2016 21:54
Show Gist options
  • Save abraithwaite/a8876d351edf16bc052cd6b5acdaa330 to your computer and use it in GitHub Desktop.
Save abraithwaite/a8876d351edf16bc052cd6b5acdaa330 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21:50:54 $ go test -cpuprofile=cpu.out -bench='.*' ./
A test suite for benchmarking various Go serialization methods.
See README.md for details on running the benchmarks.
BenchmarkCapNProto2Marshal-4 2000000 673 ns/op 244 B/op 3 allocs/op
BenchmarkCapNProto2Unmarshal-4 2000000 944 ns/op 320 B/op 6 allocs/op
PASS
ok github.com/alecthomas/go_serialization_benchmarks 4.921s
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21:53:22 $ go test -cpuprofile=cpu.out -bench='.*' ./
A test suite for benchmarking various Go serialization methods.
See README.md for details on running the benchmarks.
BenchmarkCapNProto2Marshal-4 1000000 1060 ns/op 244 B/op 3 allocs/op
BenchmarkCapNProto2Unmarshal-4 1000000 1063 ns/op 320 B/op 6 allocs/op
PASS
ok github.com/alecthomas/go_serialization_benchmarks 2.179s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment