github.com/LaevusDexter/asmcgocall@v0.0.0-20200220061330-f484a47e9b97/examples/empty_test.go (about) 1 package main 2 3 import ( 4 "testing" 5 ) 6 7 func BenchmarkEmptyAsmcgocall(b *testing.B) { 8 for i := 0; i < b.N; i++ { 9 emptyAsmcgocall() 10 } 11 } 12 13 func BenchmarkEmptyCgocall(b *testing.B) { 14 for i := 0; i < b.N; i++ { 15 emptyCgocall() 16 } 17 }