]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: add Node128, Node130 benchmarks
authorRuss Cox <rsc@golang.org>
Thu, 14 May 2015 18:23:12 +0000 (14:23 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 14 May 2015 20:21:34 +0000 (20:21 +0000)
Change-Id: I815a7ceeea48cc652b3c8568967665af39b02834
Reviewed-on: https://go-review.googlesource.com/10045
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/gc_test.go

index f049bad49922533402f40107e3a9a7ae3ea44172..e3e0c3a5836c0ca1ee6e93381c80e62c623b0f88 100644 (file)
@@ -308,6 +308,32 @@ func BenchmarkSetTypeNode126Slice(b *testing.B) {
        benchSetType(b, make([]Node126, 32))
 }
 
+type Node128 struct {
+       Value       [128]uintptr
+       Left, Right *byte
+}
+
+func BenchmarkSetTypeNode128(b *testing.B) {
+       benchSetType(b, new(Node128))
+}
+
+func BenchmarkSetTypeNode128Slice(b *testing.B) {
+       benchSetType(b, make([]Node128, 32))
+}
+
+type Node130 struct {
+       Value       [130]uintptr
+       Left, Right *byte
+}
+
+func BenchmarkSetTypeNode130(b *testing.B) {
+       benchSetType(b, new(Node130))
+}
+
+func BenchmarkSetTypeNode130Slice(b *testing.B) {
+       benchSetType(b, make([]Node130, 32))
+}
+
 type Node1024 struct {
        Value       [1024]uintptr
        Left, Right *byte