ci: add benchmark test for Style.Render

This commit is contained in:
Christian Muehlhaeuser 2022-04-07 02:15:01 +02:00
parent 6b5dc18b3b
commit a86f21a0ae

15
style_test.go Normal file
View File

@ -0,0 +1,15 @@
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")
}
}