()
| 134 | } |
| 135 | |
| 136 | public void ValidateSchemaMismatch() |
| 137 | { |
| 138 | if (!SchemaMismatch) |
| 139 | { |
| 140 | return; |
| 141 | } |
| 142 | |
| 143 | if (SerializerFilter.Count != 1 || !SerializerFilter.Contains("fory")) |
| 144 | { |
| 145 | throw new ArgumentException( |
| 146 | $"{SchemaMismatchEnv}=1 supports only Fory benchmarks; rerun with --serializer fory"); |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | private static void RequireValue(string[] args, int index) |
| 151 | { |