AI Slop Code RIsk Monitor

google/benchmark

A microbenchmark support library

9.7 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for google/benchmark, a C++ project with 10,461 GitHub stars. SynthScan examined 13,459 lines of code across 106 source files, recording 120 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 9.7 (Moderate 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.

9.7
Adjusted Signal
9.7
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
10.5K
Stars
C++
Language
13.5K
Lines of Code
106
Files
120
Pattern Hits
2026-10-12
Scan Date
0.02
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 32.0/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 101 finding(s).

Hallucinated Dependency & Supply Chain Risk 7.2/100 · LOW

Are imports declared and package/API names verified? 16 finding(s).

Agent Over-Engineering Ratio 13.2/100 · LOW

Are wrappers, guards, and repeated structures necessary? 32 finding(s).

PR Review Velocity Impact 38.3/100 · MEDIUM

Which changes need focused human review? 120 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 2MEDIUM 0LOW 118

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 120 distinct pattern matches across 9 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.

Over-Commented Block68 hits · 68 pts
SeverityFileLineSnippetContext
LOWtools/strip_asm.py161# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4COMMENT
LOWtest/output_test.h1#ifndef TEST_OUTPUT_TEST_HCOMMENT
LOWtest/output_test.h61// Run all output tests.COMMENT
LOWinclude/benchmark/utils.h1// Copyright 2015 Google Inc. All rights reserved.COMMENT
LOWinclude/benchmark/export.h1#ifndef BENCHMARK_EXPORT_HCOMMENT
LOWinclude/benchmark/export.h21#ifdef benchmark_EXPORTSCOMMENT
LOWinclude/benchmark/export.h41#endif // BENCHMARK_DEPRECATED_EXPORTCOMMENT
LOWinclude/benchmark/counter.h1// Copyright 2015 Google Inc. All rights reserved.COMMENT
LOWinclude/benchmark/types.h1// Copyright 2015 Google Inc. All rights reserved.COMMENT
LOWinclude/benchmark/registration.h1// Copyright 2015 Google Inc. All rights reserved.COMMENT
LOWinclude/benchmark/registration.h21#if defined(__clang__)COMMENT
LOWinclude/benchmark/sysinfo.h1// Copyright 2015 Google Inc. All rights reserved.COMMENT
LOWinclude/benchmark/reporter.h1// Copyright 2015 Google Inc. All rights reserved.COMMENT
LOWinclude/benchmark/reporter.h21#pragma warning(disable : 4251)COMMENT
LOWinclude/benchmark/benchmark_api.h1// Copyright 2015 Google Inc. All rights reserved.COMMENT
LOWinclude/benchmark/benchmark_api.h21#endifCOMMENT
LOWinclude/benchmark/macros.h1// Copyright 2015 Google Inc. All rights reserved.COMMENT
LOWinclude/benchmark/macros.h21COMMENT
LOWinclude/benchmark/macros.h41#define BENCHMARK_DONT_OPTIMIZECOMMENT
LOWinclude/benchmark/macros.h61 _Pragma("GCC diagnostic push") \COMMENT
LOWinclude/benchmark/macros.h81#define BENCHMARK_BUILTIN_EXPECT(x, y) xCOMMENT
LOWinclude/benchmark/macros.h101#define BENCHMARK_UNREACHABLE() __assume(false)COMMENT
LOWinclude/benchmark/macros.h121COMMENT
LOWinclude/benchmark/statistics.h1// Copyright 2015 Google Inc. All rights reserved.COMMENT
LOWinclude/benchmark/managers.h1// Copyright 2015 Google Inc. All rights reserved.COMMENT
LOWinclude/benchmark/benchmark.h1// Copyright 2015 Google Inc. All rights reserved.COMMENT
LOWinclude/benchmark/benchmark.h21#include "benchmark/managers.h"COMMENT
LOWinclude/benchmark/state.h1// Copyright 2015 Google Inc. All rights reserved.COMMENT
LOWdocs/user_guide.md1321}COMMENT
LOWbindings/python/google_benchmark/__init__.py1# Copyright 2020 Google Inc. All rights reserved.COMMENT
LOWbindings/python/google_benchmark/example.py1# Copyright 2020 Google Inc. All rights reserved.COMMENT
LOWsrc/complexity.h1// Copyright 2016 Ismael Jimenez Martinez. All rights reserved.COMMENT
LOWsrc/complexity.h21#include <string>COMMENT
LOWsrc/counter.h1// Copyright 2015 Google Inc. All rights reserved.COMMENT
LOWsrc/re.h1// Copyright 2015 Google Inc. All rights reserved.COMMENT
LOWsrc/re.h21COMMENT
LOWsrc/re.h41#endifCOMMENT
LOWsrc/arraysize.h1#ifndef BENCHMARK_ARRAYSIZE_H_COMMENT
LOWsrc/commandlineflags.h1#ifndef BENCHMARK_COMMANDLINEFLAGS_H_COMMENT
LOWsrc/commandlineflags.h41namespace benchmark {COMMENT
LOWsrc/commandlineflags.h61// If the variable exists, returns ParseDouble(); if not, returnsCOMMENT
LOWsrc/commandlineflags.h81 const char* flag, std::map<std::string, std::string> default_val);COMMENT
LOWsrc/commandlineflags.h101COMMENT
LOWsrc/internal_macros.h1#ifndef BENCHMARK_INTERNAL_MACROS_H_COMMENT
LOWsrc/internal_macros.h21#elif defined(__GNUC__)COMMENT
LOWsrc/internal_macros.h41 // WINAPI_FAMILY_PARTITION is defined in winapifamily.h.COMMENT
LOWsrc/internal_macros.h61 #define BENCHMARK_OS_MACOSX 1COMMENT
LOWsrc/internal_macros.h81 #define BENCHMARK_OS_WASI 1COMMENT
LOWsrc/internal_macros.h101 && !defined(__EXCEPTIONS)COMMENT
LOWsrc/cycleclock.h1// ----------------------------------------------------------------------COMMENT
LOWsrc/cycleclock.h21#ifndef BENCHMARK_CYCLECLOCK_H_COMMENT
LOWsrc/cycleclock.h41// for Arm64EC, despite it using Arm64 assembly instructions.COMMENT
LOWsrc/cycleclock.h61// with modifications by m3b. See alsoCOMMENT
LOWsrc/cycleclock.h121 // when I know it will work. Otherwise, I'll use __rdtsc and hopeCOMMENT
LOWsrc/cycleclock.h141 // Use clock_gettime(CLOCK_MONOTONIC, ...) instead of gettimeofdayCOMMENT
LOWsrc/cycleclock.h181 gettimeofday(&tv, nullptr);COMMENT
LOWsrc/cycleclock.h221#elif defined(__e2k__) || defined(__elbrus__)COMMENT
LOWsrc/cycleclock.h241 // it's not synchronized across CPUs and only 32-bit wide when programsCOMMENT
LOWsrc/perf_counters.h1// Copyright 2021 Google Inc. All rights reserved.COMMENT
LOWsrc/perf_counters.h21#include <cstring>COMMENT
8 more matches not shown…
Hyper-Verbose Identifiers29 hits · 31 pts
SeverityFileLineSnippetContext
LOWsetup.py108 def copy_extensions_to_source(self):CODE
LOWtools/compare.py60def enable_virtual_terminal_processing():CODE
LOWtools/compare.py414 def test_benchmarks_basic_without_utest(self):CODE
LOWtools/compare.py426 def test_benchmarks_basic_display_aggregates_only(self):CODE
LOWtools/compare.py437 def test_benchmarks_basic_with_utest_alpha(self):CODE
LOWtools/compare.py449 def test_benchmarks_basic_without_utest_with_utest_alpha(self):CODE
LOWtools/compare.py467 def test_benchmarks_with_remainder(self):CODE
LOWtools/compare.py478 def test_benchmarks_with_remainder_after_doubleminus(self):CODE
LOWtools/compare.py499 def test_filters_with_remainder(self):CODE
LOWtools/compare.py511 def test_filters_with_remainder_after_doubleminus(self):CODE
LOWtools/compare.py523 def test_benchmarksfiltered_basic(self):CODE
LOWtools/compare.py536 def test_benchmarksfiltered_with_remainder(self):CODE
LOWtools/compare.py556 def test_benchmarksfiltered_with_remainder_after_doubleminus(self):CODE
LOW⚡tools/compare.py577 def test_benchmarks_no_color_flag(self):CODE
LOW⚡tools/compare.py584 def test_benchmarks_color_default_no_color_env(self):CODE
LOW⚡tools/compare.py593 def test_benchmarks_color_default_not_a_tty(self, mock_isatty):CODE
LOW⚡tools/compare.py603 def test_benchmarks_color_default_tty(self, mock_isatty, mock_vt):CODE
LOWtools/gbench/report.py114def get_unique_benchmark_names(json):CODE
LOWtools/gbench/report.py135def is_potentially_comparable_benchmark(x):CODE
LOWtools/gbench/report.py185def get_timedelta_field_as_seconds(benchmark, field_name):CODE
LOWtools/gbench/report.py523 def test_json_diff_report_pretty_printing(self):CODE
LOWtools/gbench/report.py608 def test_json_diff_report_output(self):CODE
LOWtools/gbench/report.py867 def test_json_diff_report_pretty_printing(self):CODE
LOWtools/gbench/report.py997 def test_json_diff_report_pretty_printing(self):CODE
LOWtools/gbench/report.py1052 def test_json_diff_report_pretty_printing_aggregates_only(self):CODE
LOWtools/gbench/report.py1244 def test_json_diff_report_pretty_printing(self):CODE
LOWtools/gbench/report.py1434 def test_json_diff_report_pretty_printing(self):CODE
LOWtools/gbench/report.py1491 def test_json_diff_report_pretty_printing(self):CODE
LOWtools/gbench/report.py1549 def test_json_diff_report_pretty_printing(self):CODE
Unused Imports15 hits · 15 pts
SeverityFileLineSnippetContext
LOWbindings/python/google_benchmark/__init__.py33CODE
LOWbindings/python/google_benchmark/__init__.py33CODE
LOWbindings/python/google_benchmark/__init__.py33CODE
LOWbindings/python/google_benchmark/__init__.py33CODE
LOWbindings/python/google_benchmark/__init__.py33CODE
LOWbindings/python/google_benchmark/__init__.py33CODE
LOWbindings/python/google_benchmark/__init__.py33CODE
LOWbindings/python/google_benchmark/__init__.py33CODE
LOWbindings/python/google_benchmark/__init__.py33CODE
LOWbindings/python/google_benchmark/__init__.py33CODE
LOWbindings/python/google_benchmark/__init__.py33CODE
LOWbindings/python/google_benchmark/__init__.py33CODE
LOWbindings/python/google_benchmark/__init__.py33CODE
LOWbindings/python/google_benchmark/__init__.py33CODE
LOWbindings/python/google_benchmark/__init__.py33CODE
Empty Error Handlers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHtools/gbench/util.py54except BaseException:CODE
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHbindings/python/google_benchmark/__init__.py108 options = __OptionMaker.make(undefined)CODE
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOW.ycm_extra_conf.py31# Set this to the absolute path to the folder (NOT the file!) containing theCOMMENT
LOWtools/gbench/report.py250 # Check if we failed miserably with minimum required repetitions for utestCOMMENT
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOW.ycm_extra_conf.py85CODE
LOWtools/gbench/util.py59CODE
Excessive Try-Catch Wrapping1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtools/compare.py79 except Exception:CODE
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtools/gbench/__init__.py8__all__ = [] # type: ignoreCODE