(b *testing.B)
| 1544 | } |
| 1545 | |
| 1546 | func BenchmarkDiffMainRunesLargeLines(b *testing.B) { |
| 1547 | s1, s2 := speedtestTexts() |
| 1548 | |
| 1549 | dmp := New() |
| 1550 | |
| 1551 | b.ResetTimer() |
| 1552 | |
| 1553 | for i := 0; i < b.N; i++ { |
| 1554 | text1, text2, linearray := dmp.DiffLinesToRunes(s1, s2) |
| 1555 | |
| 1556 | diffs := dmp.DiffMainRunes(text1, text2, false) |
| 1557 | diffs = dmp.DiffCharsToLines(diffs, linearray) |
| 1558 | } |
| 1559 | } |
| 1560 | |
| 1561 | func BenchmarkDiffMainRunesLargeDiffLines(b *testing.B) { |
| 1562 | fp, _ := os.Open("../testdata/diff10klinestest.txt") |
nothing calls this directly
no test coverage detected
searching dependent graphs…