@@ -22,9 +22,9 @@ namespace HintServiceMeow.Benchmarks.Benchmarks
2222 [ CategoriesColumn ]
2323 public class PhaseBenchmark
2424 {
25- private string testInput ;
26- private RichTextParserSetting setting ;
27- private RichTextParser parser ;
25+ private string testInput = null ! ;
26+ private RichTextParserSetting setting = null ! ;
27+ private RichTextParser parser = null ! ;
2828
2929 // Sink fields — prevent JIT from optimizing away the entire call
3030 private int sink ;
@@ -81,16 +81,16 @@ public void TokenizeOnly()
8181 [ MemoryDiagnoser ]
8282 public class InputProfileBenchmark
8383 {
84- private string plainText ;
85- private string tagHeavy ;
86- private string longSingleLine ;
87- private string manyShortLines ;
88- private string nestedStyles ;
89- private string colorHeavy ;
90- private string realWorldMixed ;
91-
92- private RichTextParserSetting setting ;
93- private RichTextParser parser ;
84+ private string plainText = null ! ;
85+ private string tagHeavy = null ! ;
86+ private string longSingleLine = null ! ;
87+ private string manyShortLines = null ! ;
88+ private string nestedStyles = null ! ;
89+ private string colorHeavy = null ! ;
90+ private string realWorldMixed = null ! ;
91+
92+ private RichTextParserSetting setting = null ! ;
93+ private RichTextParser parser = null ! ;
9494 private int sink ;
9595
9696 [ GlobalSetup ]
@@ -290,8 +290,8 @@ public void TokenizerPool_RentReturn()
290290 [ MemoryDiagnoser ]
291291 public class AllocationBenchmark
292292 {
293- private RichTextParserSetting setting ;
294- private RichTextParser parser ;
293+ private RichTextParserSetting setting = null ! ;
294+ private RichTextParser parser = null ! ;
295295 private int sink ;
296296
297297 [ GlobalSetup ]
@@ -368,9 +368,9 @@ public class ScalabilityBenchmark
368368 [ Params ( 1 , 5 , 10 , 50 , 100 ) ]
369369 public int Scale ;
370370
371- private string scaledInput ;
372- private RichTextParserSetting setting ;
373- private RichTextParser parser ;
371+ private string scaledInput = null ! ;
372+ private RichTextParserSetting setting = null ! ;
373+ private RichTextParser parser = null ! ;
374374 private int sink ;
375375
376376 [ GlobalSetup ]
@@ -410,10 +410,10 @@ public void Parse_Scaled()
410410 [ MemoryDiagnoser ]
411411 public class IgnoreTagsBenchmark
412412 {
413- private string testInput ;
414- private RichTextParserSetting settingNoIgnore ;
415- private RichTextParserSetting settingWithIgnore ;
416- private RichTextParser parser ;
413+ private string testInput = null ! ;
414+ private RichTextParserSetting settingNoIgnore = null ! ;
415+ private RichTextParserSetting settingWithIgnore = null ! ;
416+ private RichTextParser parser = null ! ;
417417 private int sink ;
418418
419419 [ GlobalSetup ]
@@ -471,8 +471,8 @@ public void WithIgnoreTags()
471471 [ MemoryDiagnoser ]
472472 public class PoolEffectBenchmark
473473 {
474- private string testInput ;
475- private RichTextParserSetting setting ;
474+ private string testInput = null ! ;
475+ private RichTextParserSetting setting = null ! ;
476476 private int sink ;
477477
478478 [ GlobalSetup ]
0 commit comments