mirror of
https://github.com/charmbracelet/lipgloss.git
synced 2024-09-11 22:17:12 +03:00
ci: add benchmark test for Style.Render
This commit is contained in:
parent
6b5dc18b3b
commit
a86f21a0ae
15
style_test.go
Normal file
15
style_test.go
Normal 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")
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user