|
1 | | -using VerifyTests; |
2 | | - |
3 | 1 | [MemoryDiagnoser] |
4 | 2 | [SimpleJob(iterationCount: 10, warmupCount: 3)] |
5 | 3 | public class ScrubberPipelineBenchmarks |
@@ -58,35 +56,35 @@ static string BuildLogLine(int i) => |
58 | 56 | public void New_Tiny_Guid() |
59 | 57 | { |
60 | 58 | var builder = new StringBuilder(tinyInput); |
61 | | - ApplyScrubbers.ApplyForExtension("txt", builder, settingsGuid, counter); |
| 59 | + ScrubberPipeline.ApplyForExtension("txt", builder, settingsGuid, counter); |
62 | 60 | } |
63 | 61 |
|
64 | 62 | [Benchmark] |
65 | 63 | public void New_Medium_Mixed() |
66 | 64 | { |
67 | 65 | var builder = new StringBuilder(mediumInput); |
68 | | - ApplyScrubbers.ApplyForExtension("txt", builder, settingsMixed, counter); |
| 66 | + ScrubberPipeline.ApplyForExtension("txt", builder, settingsMixed, counter); |
69 | 67 | } |
70 | 68 |
|
71 | 69 | [Benchmark] |
72 | 70 | public void New_Large_Mixed() |
73 | 71 | { |
74 | 72 | var builder = new StringBuilder(largeInput); |
75 | | - ApplyScrubbers.ApplyForExtension("txt", builder, settingsMixed, counter); |
| 73 | + ScrubberPipeline.ApplyForExtension("txt", builder, settingsMixed, counter); |
76 | 74 | } |
77 | 75 |
|
78 | 76 | [Benchmark] |
79 | 77 | public void New_NoMatch() |
80 | 78 | { |
81 | 79 | var builder = new StringBuilder(noMatchInput); |
82 | | - ApplyScrubbers.ApplyForExtension("txt", builder, settingsMixed, counter); |
| 80 | + ScrubberPipeline.ApplyForExtension("txt", builder, settingsMixed, counter); |
83 | 81 | } |
84 | 82 |
|
85 | 83 | [Benchmark] |
86 | 84 | public void New_ShortLines() |
87 | 85 | { |
88 | 86 | var builder = new StringBuilder(shortLinesInput); |
89 | | - ApplyScrubbers.ApplyForExtension("txt", builder, settingsMixed, counter); |
| 87 | + ScrubberPipeline.ApplyForExtension("txt", builder, settingsMixed, counter); |
90 | 88 | } |
91 | 89 |
|
92 | 90 | // ---- Old pipeline (legacy delegate-based scrubber) ---- |
|
0 commit comments