(b *testing.B)
| 40 | } |
| 41 | |
| 42 | func BenchmarkMemEqual_ByteToByte(b *testing.B) { |
| 43 | key1 := [16]byte{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16} |
| 44 | key2 := [16]byte{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16} |
| 45 | kp1 := unsafe.Pointer(&key1[0]) |
| 46 | kp2 := unsafe.Pointer(&key2[0]) |
| 47 | for i := 0; i < b.N; i++ { |
| 48 | byteToByteCopy(kp1, kp2, 16) |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | var _ = ginkgo.Describe("memory", func() { |
| 53 | ginkgo.It("Memory equal should work", func() { |
nothing calls this directly
no test coverage detected