MCPcopy Create free account
hub / github.com/expr-lang/expr / BenchmarkBytesEqual

Function BenchmarkBytesEqual

internal/testify/assert/assertions_test.go:2498–2512  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

2496}
2497
2498func BenchmarkBytesEqual(b *testing.B) {
2499 const size = 1024 * 8
2500 s := make([]byte, size)
2501 for i := range s {
2502 s[i] = byte(i % 255)
2503 }
2504 s2 := make([]byte, size)
2505 copy(s2, s)
2506
2507 mockT := &mockFailNowTestingT{}
2508 b.ResetTimer()
2509 for i := 0; i < b.N; i++ {
2510 Equal(mockT, s, s2)
2511 }
2512}
2513
2514func BenchmarkNotNil(b *testing.B) {
2515 for i := 0; i < b.N; i++ {

Callers

nothing calls this directly

Calls 1

EqualFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…