github.com/iainanderson83/datastructures@v0.0.4-0.20191103204413-889e20b53bcf/arrays/main.go (about)

     1  package main
     2  
     3  // All of these benchmarks come from the following blog and
     4  // are reproduced here for my own testing:
     5  // https://philpearl.github.io/
     6  
     7  type A struct {
     8  	B int
     9  	C int
    10  }
    11  
    12  const bigStructSize = 10
    13  
    14  type bigStruct struct {
    15  	a [bigStructSize]int
    16  }