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

Function BenchmarkDiffMainLarge

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

Source from the content-addressed store, hash-verified

1532}
1533
1534func BenchmarkDiffMainLarge(b *testing.B) {
1535 s1, s2 := speedtestTexts()
1536
1537 dmp := New()
1538
1539 b.ResetTimer()
1540
1541 for i := 0; i < b.N; i++ {
1542 dmp.DiffMain(s1, s2, true)
1543 }
1544}
1545
1546func BenchmarkDiffMainRunesLargeLines(b *testing.B) {
1547 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…