Skip to content

Commit ca5c108

Browse files
committed
string Len assert benchmark
1 parent 9b9a851 commit ca5c108

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

assert/assert_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,13 @@ func BenchmarkSLen(b *testing.B) {
260260
}
261261
}
262262

263+
func BenchmarkLen(b *testing.B) {
264+
s := "len"
265+
for n := 0; n < b.N; n++ {
266+
assert.Len(s, 3)
267+
}
268+
}
269+
263270
func BenchmarkSLen_thatVersion(b *testing.B) {
264271
d := []byte{1, 2}
265272
for n := 0; n < b.N; n++ {

0 commit comments

Comments
 (0)