MCPcopy Create free account
hub / github.com/sergi/go-diff / BenchmarkDiffMainLarge

Function BenchmarkDiffMainLarge

diffmatchpatch/diff_test.go:1562–1572  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

1560}
1561
1562func BenchmarkDiffMainLarge(b *testing.B) {
1563 s1, s2 := speedtestTexts()
1564
1565 dmp := New()
1566
1567 b.ResetTimer()
1568
1569 for i := 0; i < b.N; i++ {
1570 dmp.DiffMain(s1, s2, true)
1571 }
1572}
1573
1574func BenchmarkDiffMainRunesLargeLines(b *testing.B) {
1575 s1, s2 := speedtestTexts()

Callers

nothing calls this directly

Calls 3

speedtestTextsFunction · 0.85
NewFunction · 0.85
DiffMainMethod · 0.80

Tested by

no test coverage detected