Powerful .NET library for benchmarking
This report summarizes scanner evidence for dotnet/BenchmarkDotNet, a C# project with 11,525 GitHub stars. SynthScan examined 143,111 lines of code across 1384 source files, recording 162 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 2.1 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 154 finding(s).
Are imports declared and package/API names verified? 8 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 162 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 162 distinct pattern matches across 5 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …onExporterVerifyTests.Exporters_Invariant.verified.txt | 601 | # UNIT benchmark_allocated_bytes bytes | COMMENT |
| LOW | …onExporterVerifyTests.Exporters_Invariant.verified.txt | 621 | benchmark_gc_gen0_collections_total{method="Bar", type="MockBenchmarkClass"} 0 | COMMENT |
| LOW | …CommonExporterVerifyTests.Exporters_ru-RU.verified.txt | 601 | # UNIT benchmark_allocated_bytes bytes | COMMENT |
| LOW | …CommonExporterVerifyTests.Exporters_ru-RU.verified.txt | 621 | benchmark_gc_gen0_collections_total{method="Bar", type="MockBenchmarkClass"} 0 | COMMENT |
| LOW | …agnoser_ExportsAllocatedBytesPerOperation.verified.txt | 1 | # HELP benchmark_allocated_bytes Allocated managed memory per single benchmark operation. | COMMENT |
| LOW | …agnoser_ExportsAllocatedBytesPerOperation.verified.txt | 21 | benchmark_gc_gen2_collections_total{method="Foo", type="MockBenchmarkClass"} 3 | COMMENT |
| LOW | …CommonExporterVerifyTests.Exporters_en-US.verified.txt | 601 | # UNIT benchmark_allocated_bytes bytes | COMMENT |
| LOW | …CommonExporterVerifyTests.Exporters_en-US.verified.txt | 621 | benchmark_gc_gen0_collections_total{method="Bar", type="MockBenchmarkClass"} 0 | COMMENT |
| LOW | …csExporterTests.LabelsAreEscapedCorrectly.verified.txt | 1 | # HELP benchmark_error_nanoseconds Standard error of the mean execution time in nanoseconds. | COMMENT |
| LOW | …csExporterTests.LabelsAreEscapedCorrectly.verified.txt | 21 | # HELP benchmark_label_with_special_chars_in_the_middle Additional metric label with special !@#$%^&*()chars in the midd | COMMENT |
| LOW | …s/Disassemblers/Arm64/Helpers/Arm64TestInstructions.cs | 61 | return Arm64InstructionFactory.CBNZ(register, label).ToCapstoneArm64Instruction(); // cbnz Xn, label | COMMENT |
| LOW | …enchmarkDotNet.IntegrationTests/PowerRequestsParser.cs | 1 | namespace BenchmarkDotNet.IntegrationTests; | COMMENT |
| LOW | …enchmarkDotNet.IntegrationTests/PowerRequestsParser.cs | 21 | /// [PROCESS] \Device\HarddiskVolume3\...\NoSleep.exe | COMMENT |
| LOW | …s/InProcess.EmitTests.T4/RunnableClassCaseBenchmark.cs | 1 | //------------------------------------------------------------------------------ | COMMENT |
| LOW | …ts/InProcess.EmitTests.T4/RunnableTaskCaseBenchmark.cs | 1 | //------------------------------------------------------------------------------ | COMMENT |
| LOW | …ts/InProcess.EmitTests.T4/RunnableVoidCaseBenchmark.cs | 1 | //------------------------------------------------------------------------------ | COMMENT |
| LOW | …otNet.IntegrationTests/Shared/BenchmarkTestExecutor.cs | 21 | /// <summary> | COMMENT |
| LOW | …tionTests/InProcess.EmitTests/NaiveRunnableEmitDiff.cs | 121 | foreach (var instruction in bodyInstructions) | COMMENT |
| LOW | docs/articles/samples/IntroSetupCleanupIteration.md | 21 | [!code-csharp[IntroSetupCleanupIteration.cs](../../../samples/BenchmarkDotNet.Samples/IntroSetupCleanupIteration.cs)] | COMMENT |
| LOW | docs/articles/guides/troubleshooting.md | 1 | # Troubleshooting | COMMENT |
| LOW | …enchmarkDotNet.Exporters.Plotting/ScottPlotExporter.cs | 41 | /// Gets or sets the width of all plots in pixels. | COMMENT |
| LOW | …enchmarkDotNet.Exporters.Plotting/ScottPlotExporter.cs | 61 | /// Gets or sets a value indicating whether labels for Plot X-axis should be rotated. | COMMENT |
| LOW | src/BenchmarkDotNet.TestAdapter/VSTestAdapter.cs | 201 | } | COMMENT |
| LOW | src/BenchmarkDotNet.Weaver/src/WeaveAssemblyTask.cs | 41 | /// The key the compiler strong named the assembly with. Weaving invalidates the signature it produced, | COMMENT |
| LOW | …ibutes/CompilerServices/AggressivelyOptimizeMethods.cs | 1 | using System.Runtime.CompilerServices; | COMMENT |
| LOW | …otNet.CodeFixers/RuntimeAndToolchainCodeFixProvider.cs | 81 | /// </summary> | COMMENT |
| LOW | src/BenchmarkDotNet/Environments/Jit.cs | 1 | namespace BenchmarkDotNet.Environments | COMMENT |
| LOW | src/BenchmarkDotNet/Environments/Platform.cs | 21 | /// ARM | COMMENT |
| LOW | src/BenchmarkDotNet/Environments/Platform.cs | 41 | /// LOONGARCH64 | COMMENT |
| LOW | src/BenchmarkDotNet/Environments/HostEnvironmentInfo.cs | 41 | public Lazy<OsInfo> Os { get; protected set; } | COMMENT |
| LOW | src/BenchmarkDotNet/Environments/Runtimes/Runtime.cs | 21 | public abstract Version? Version { get; } | COMMENT |
| LOW | src/BenchmarkDotNet/Environments/Runtimes/Runtime.cs | 61 | /// <summary> | COMMENT |
| LOW | src/BenchmarkDotNet/ConsoleArguments/ConfigParser.cs | 721 | /// <summary> | COMMENT |
| LOW | src/BenchmarkDotNet/Code/CodeGenBenchmarkRunCallType.cs | 1 | namespace BenchmarkDotNet.Code; | COMMENT |
| LOW | …enchmarkDotNet/Mathematics/LegacyConfidenceInterval.cs | 21 | /// <summary> | COMMENT |
| LOW | …enchmarkDotNet/Mathematics/LegacyConfidenceInterval.cs | 41 | /// <summary> | COMMENT |
| LOW | src/BenchmarkDotNet/Models/BdnExecution.cs | 21 | COMMENT | |
| LOW | src/BenchmarkDotNet/Models/BdnExecution.cs | 41 | /// Invocation count in a single iteration. | COMMENT |
| LOW | src/BenchmarkDotNet/Models/BdnExecution.cs | 61 | /// The default value is 100 | COMMENT |
| LOW | src/BenchmarkDotNet/Diagnosers/IDiagnoser.cs | 41 | /// <summary> | COMMENT |
| LOW | src/BenchmarkDotNet/Diagnosers/IDiagnoser.cs | 61 | { | COMMENT |
| LOW | …markDotNet/Diagnosers/InProcessDiagnoserHandlerData.cs | 1 | using System.Diagnostics.CodeAnalysis; | COMMENT |
| LOW | src/BenchmarkDotNet/Diagnosers/RunMode.cs | 21 | /// no overhead, can be executed without extra run | COMMENT |
| LOW | src/BenchmarkDotNet/Diagnosers/EventPipeProfile.cs | 1 | namespace BenchmarkDotNet.Diagnosers | COMMENT |
| LOW | …markDotNet/Attributes/DisassemblyDiagnoserAttribute.cs | 1 | using BenchmarkDotNet.Configs; | COMMENT |
| LOW | …chmarkDotNet/Attributes/Jobs/JobConfigbaseAttribute.cs | 21 | /// The categories of the job defined by this attribute. Categories are metadata used to select which jobs are | COMMENT |
| LOW | src/BenchmarkDotNet/Engines/RunStrategy.cs | 1 | namespace BenchmarkDotNet.Engines | COMMENT |
| LOW | src/BenchmarkDotNet/Engines/JitListener.cs | 1 | using System.Diagnostics.Tracing; | COMMENT |
| LOW | src/BenchmarkDotNet/Engines/JitListener.cs | 21 | // paused" is NOT quiescence. Both waits gate on WaitForTieringActive first. | COMMENT |
| LOW | src/BenchmarkDotNet/Engines/JitListener.cs | 41 | private const string TieredCompilationBackgroundJitStopEvent = "TieredCompilationBackgroundJitStop"; | COMMENT |
| LOW | src/BenchmarkDotNet/Engines/JitListener.cs | 521 | } | COMMENT |
| LOW | src/BenchmarkDotNet/Engines/JitListener.cs | 581 | COMMENT | |
| LOW | src/BenchmarkDotNet/Engines/EngineJitStage.cs | 161 | // The burst didn't tier them up. With NO call-counting delay the whole budget was counted, so a | COMMENT |
| LOW | src/BenchmarkDotNet/Engines/HostSignal.cs | 21 | /// after globalSetup, warmup and pilot but before the main run | COMMENT |
| LOW | src/BenchmarkDotNet/Engines/HostSignal.cs | 41 | /// after all (the last thing the benchmarking engine does is to fire this signal) | COMMENT |
| LOW | src/BenchmarkDotNet/Engines/JitTieringMode.cs | 1 | namespace BenchmarkDotNet.Engines; | COMMENT |
| LOW | src/BenchmarkDotNet/Configs/ConfigOptions.cs | 1 | namespace BenchmarkDotNet.Configs | COMMENT |
| LOW | src/BenchmarkDotNet/Configs/ConfigOptions.cs | 21 | StopOnFirstError = 1 << 2, | COMMENT |
| LOW | src/BenchmarkDotNet/Configs/ImmutableConfigBuilder.cs | 261 | COMMENT | |
| LOW | src/BenchmarkDotNet/Configs/IConfig.cs | 41 | /// </summary> | COMMENT |
| 85 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | src/BenchmarkDotNet/Running/BenchmarkRunnerClean.cs | 477 | .Where(build => build.Key.RepresentativeBenchmarkCase.Config.Options.IsSet(ConfigOptions.KeepBenchmarkFi | CODE |
| CRITICAL | src/BenchmarkDotNet/Helpers/CodeAnnotations.cs | 1305 | /// <c>System.Web.Mvc.Html.ChildActionExtensions.RenderAction(HtmlHelper, String)</c>. | COMMENT |
| CRITICAL | src/BenchmarkDotNet/Helpers/CodeAnnotations.cs | 1323 | /// <c>System.Web.Mvc.Html.ChildActionExtensions.RenderAction(HtmlHelper, String)</c>. | COMMENT |
| CRITICAL | src/BenchmarkDotNet/Helpers/CodeAnnotations.cs | 1342 | /// <c>System.Web.Mvc.Html.ChildActionExtensions.RenderAction(HtmlHelper, String, String)</c>. | COMMENT |
| CRITICAL | src/BenchmarkDotNet/Helpers/CodeAnnotations.cs | 1375 | /// <c>System.Web.Mvc.Html.RenderPartialExtensions.RenderPartial(HtmlHelper, String)</c>. | COMMENT |
| CRITICAL | src/BenchmarkDotNet/Helpers/CodeAnnotations.cs | 1389 | /// <c>System.Web.Mvc.Html.DisplayExtensions.DisplayForModel(HtmlHelper, String)</c>. | COMMENT |
| CRITICAL | src/BenchmarkDotNet/Helpers/CodeAnnotations.cs | 1397 | /// <c>System.Web.Mvc.Html.EditorExtensions.EditorForModel(HtmlHelper, String)</c>. | COMMENT |
| CRITICAL | src/BenchmarkDotNet/Toolchains/CsProj/CsProjBuilder.cs | 272 | => $"{buildPartition.RepresentativeBenchmarkCase.Descriptor.Type.Assembly.GetName().Name}-gen"; | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …Process.EmitTests.T4/RunnableRefStructCaseBenchmark.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | …s/InProcess.EmitTests.T4/RunnableClassCaseBenchmark.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | …ts/InProcess.EmitTests.T4/RunnableTaskCaseBenchmark.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | …ts/InProcess.EmitTests.T4/RunnableVoidCaseBenchmark.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | …nProcess.EmitTests.T4/RunnableManyArgsCaseBenchmark.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | …/InProcess.EmitTests.T4/RunnableStructCaseBenchmark.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | …Analyzers/BenchmarkDotNetAnalyzerResources.Designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/BenchmarkDotNet.Analyzers/RequiredMemberAnalyzer.cs | 167 | // lookup (RS1030); the base class is always the first base-list entry, but a name match is robust to partials | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/BenchmarkDotNet/Loggers/Broker.cs | 107 | // TODO: implement Silent mode here | COMMENT |