MCPcopy Create free account
hub / github.com/codechenx/FastTableViewer / BenchmarkCountRuneFast

Function BenchmarkCountRuneFast

sepDector_test.go:278–285  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

276}
277
278func BenchmarkCountRuneFast(b *testing.B) {
279 s := "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z"
280
281 b.ResetTimer()
282 for i := 0; i < b.N; i++ {
283 countRuneFast(s, ',')
284 }
285}

Callers

nothing calls this directly

Calls 1

countRuneFastFunction · 0.85

Tested by

no test coverage detected