mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 20:36:03 +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) {
|
func BenchmarkMigrationOnLargeConfiguration(b *testing.B) {
|
||||||
for i := 0; i < b.N; i++ {
|
for b.Loop() {
|
||||||
_, _ = computeMigratedConfig("path doesn't matter", largeConfiguration)
|
_, _ = computeMigratedConfig("path doesn't matter", largeConfiguration)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -548,7 +548,7 @@ func BenchmarkRenderCommitGraph(b *testing.B) {
|
||||||
return authors.AuthorStyle(commit.AuthorName)
|
return authors.AuthorStyle(commit.AuthorName)
|
||||||
}
|
}
|
||||||
b.ResetTimer()
|
b.ResetTimer()
|
||||||
for i := 0; i < b.N; i++ {
|
for b.Loop() {
|
||||||
RenderCommitGraph(commits, "selected", getStyle)
|
RenderCommitGraph(commits, "selected", getStyle)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -253,25 +253,25 @@ func TestRenderDisplayStrings(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkStringWidthAsciiOriginal(b *testing.B) {
|
func BenchmarkStringWidthAsciiOriginal(b *testing.B) {
|
||||||
for i := 0; i < b.N; i++ {
|
for b.Loop() {
|
||||||
runewidth.StringWidth("some ASCII string")
|
runewidth.StringWidth("some ASCII string")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkStringWidthAsciiOptimized(b *testing.B) {
|
func BenchmarkStringWidthAsciiOptimized(b *testing.B) {
|
||||||
for i := 0; i < b.N; i++ {
|
for b.Loop() {
|
||||||
StringWidth("some ASCII string")
|
StringWidth("some ASCII string")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkStringWidthNonAsciiOriginal(b *testing.B) {
|
func BenchmarkStringWidthNonAsciiOriginal(b *testing.B) {
|
||||||
for i := 0; i < b.N; i++ {
|
for b.Loop() {
|
||||||
runewidth.StringWidth("some non-ASCII string 🍉")
|
runewidth.StringWidth("some non-ASCII string 🍉")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkStringWidthNonAsciiOptimized(b *testing.B) {
|
func BenchmarkStringWidthNonAsciiOptimized(b *testing.B) {
|
||||||
for i := 0; i < b.N; i++ {
|
for b.Loop() {
|
||||||
StringWidth("some non-ASCII string 🍉")
|
StringWidth("some non-ASCII string 🍉")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue