github.com/kitech/dl@v0.0.0-20201225001532-be4f4faa4070/asmcgocall/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 }