github.com/go-darwin/sys@v0.0.0-20220510002607-68fd01f054ca/cgo_test.go (about)

     1  package sys
     2  
     3  import "testing"
     4  
     5  var int8ptr *c_char
     6  
     7  func BenchmarkCString(b *testing.B) {
     8  	for i := 0; i < b.N; i++ {
     9  		int8ptr = CString("s1 != s2")
    10  	}
    11  }