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
$ go test -bench=. data-oriented-design-benchmarks-2_test.go | |
Iterations Time Memory throughput Data processed | |
BenchmarkValueTypes/array-of-structs-4 121 9906752 ns/op 10497.89 MB/s 99.18 MB/op | |
BenchmarkValueTypes/struct-of-arrays-4 588 1974807 ns/op 586.80 MB/s 1.105 MB/op | |
BenchmarkRefTypes/array-of-references-4 127 9240654 ns/op 12120.35 MB/s 106.8 MB/op | |
BenchmarkRefTypes/struct-of-ref-arrays-4 123 9478477 ns/op 974.58 MB/s 8.810 MB/op |
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
$ go test -bench=UnconfirmedEmail data-oriented-design-benchmarks_test.go | |
Iterations Time Memory throughput Data processed | |
BenchmarkUnconfirmedEmail/baseline-4 100 10673319 ns/op 9743.92 MB/s 99.18 MB/op | |
BenchmarkUnconfirmedEmail/data-oriented-4 582 2255190 ns/op 515.10 MB/s 1.108 MB/op |