(b *testing.B)
| 1572 | } |
| 1573 | |
| 1574 | func BenchmarkDiffMainRunesLargeLines(b *testing.B) { |
| 1575 | s1, s2 := speedtestTexts() |
| 1576 | |
| 1577 | dmp := New() |
| 1578 | |
| 1579 | b.ResetTimer() |
| 1580 | |
| 1581 | for i := 0; i < b.N; i++ { |
| 1582 | text1, text2, linearray := dmp.DiffLinesToRunes(s1, s2) |
| 1583 | |
| 1584 | diffs := dmp.DiffMainRunes(text1, text2, false) |
| 1585 | diffs = dmp.DiffCharsToLines(diffs, linearray) |
| 1586 | } |
| 1587 | } |
| 1588 | |
| 1589 | func BenchmarkDiffMainRunesLargeDiffLines(b *testing.B) { |
| 1590 | fp, _ := os.Open("../testdata/diff10klinestest.txt") |
nothing calls this directly
no test coverage detected