MCPcopy Create free account
hub / github.com/gookit/color / BenchmarkColorRender_SingleString

Function BenchmarkColorRender_SingleString

performance_test.go:27–32  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

25}
26
27func BenchmarkColorRender_SingleString(b *testing.B) {
28 yellow := FgGreen.Render
29 for i := 0; i < b.N; i++ {
30 yellow("Hello World")
31 }
32}
33
34func BenchmarkColorRender_TwoStrings(b *testing.B) {
35 yellow := FgGreen.Render

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…