mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-10 20:05:50 +02:00
parent
14eb4c29ca
commit
4cfa6e0c98
3 changed files with 6 additions and 6 deletions
|
@ -691,7 +691,7 @@ keybinding:
|
|||
`)
|
||||
|
||||
func BenchmarkMigrationOnLargeConfiguration(b *testing.B) {
|
||||
for i := 0; i < b.N; i++ {
|
||||
for b.Loop() {
|
||||
_, _ = computeMigratedConfig("path doesn't matter", largeConfiguration)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -548,7 +548,7 @@ func BenchmarkRenderCommitGraph(b *testing.B) {
|
|||
return authors.AuthorStyle(commit.AuthorName)
|
||||
}
|
||||
b.ResetTimer()
|
||||
for i := 0; i < b.N; i++ {
|
||||
for b.Loop() {
|
||||
RenderCommitGraph(commits, "selected", getStyle)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -253,25 +253,25 @@ func TestRenderDisplayStrings(t *testing.T) {
|
|||
}
|
||||
|
||||
func BenchmarkStringWidthAsciiOriginal(b *testing.B) {
|
||||
for i := 0; i < b.N; i++ {
|
||||
for b.Loop() {
|
||||
runewidth.StringWidth("some ASCII string")
|
||||
}
|
||||
}
|
||||
|
||||
func BenchmarkStringWidthAsciiOptimized(b *testing.B) {
|
||||
for i := 0; i < b.N; i++ {
|
||||
for b.Loop() {
|
||||
StringWidth("some ASCII string")
|
||||
}
|
||||
}
|
||||
|
||||
func BenchmarkStringWidthNonAsciiOriginal(b *testing.B) {
|
||||
for i := 0; i < b.N; i++ {
|
||||
for b.Loop() {
|
||||
runewidth.StringWidth("some non-ASCII string 🍉")
|
||||
}
|
||||
}
|
||||
|
||||
func BenchmarkStringWidthNonAsciiOptimized(b *testing.B) {
|
||||
for i := 0; i < b.N; i++ {
|
||||
for b.Loop() {
|
||||
StringWidth("some non-ASCII string 🍉")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue