MCPcopy Create free account
hub / github.com/a-h/lexical / BenchmarkString

Function BenchmarkString

parse/string_test.go:133–138  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

131}
132
133func BenchmarkString(b *testing.B) {
134 b.ReportAllocs()
135 for n := 0; n < b.N; n++ {
136 String("ABCDEFG")(input.NewFromString("ABCDEFGHIJKLMNOPQRSTUVWXYZ"))
137 }
138}

Callers

nothing calls this directly

Calls 2

NewFromStringFunction · 0.92
StringFunction · 0.85

Tested by

no test coverage detected