mirror of
https://github.com/charmbracelet/lipgloss.git
synced 2024-09-11 22:17:12 +03:00
16 lines
206 B
Go
16 lines
206 B
Go
package lipgloss
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func BenchmarkStyleRender(b *testing.B) {
|
|
s := NewStyle().
|
|
Bold(true).
|
|
Foreground(Color("#ffffff"))
|
|
|
|
for i := 0; i < b.N; i++ {
|
|
s.Render("Hello world")
|
|
}
|
|
}
|