mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: add Node128, Node130 benchmarks
Change-Id: I815a7ceeea48cc652b3c8568967665af39b02834 Reviewed-on: https://go-review.googlesource.com/10045 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
138498183c
commit
30aacd4ce2
1 changed files with 26 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue