Repository Analysis

google/benchmark

A microbenchmark support library

9.0 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of google/benchmark, a C++ project with 10,287 GitHub stars. SynthScan v2.0 examined 13,188 lines of code across 106 source files, recording 114 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 9.0 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

9.0
Adjusted Score
9.0
Raw Score
100%
Time Factor
2026-07-09
Last Push
10.3K
Stars
C++
Language
13.2K
Lines of Code
106
Files
114
Pattern Hits
2026-07-14
Scan Date
0.01
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 1MEDIUM 0LOW 113

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 114 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block68 hits · 68 pts
SeverityFileLineSnippetContext
LOWtools/strip_asm.py161# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4COMMENT
LOWtools/compare.py541COMMENT
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.md1301// handoff to worker thread[s]) to the whole single-thread time.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 syncronized across CPUs and only 32-bit wide when programsCOMMENT
LOWsrc/perf_counters.h1// Copyright 2021 Google Inc. All rights reserved.COMMENT
8 more matches not shown…
Hyper-Verbose Identifiers24 hits · 24 pts
SeverityFileLineSnippetContext
LOWsetup.py84 def copy_extensions_to_source(self):CODE
LOWtools/compare.py374 def test_benchmarks_basic_without_utest(self):CODE
LOWtools/compare.py386 def test_benchmarks_basic_display_aggregates_only(self):CODE
LOWtools/compare.py397 def test_benchmarks_basic_with_utest_alpha(self):CODE
LOWtools/compare.py409 def test_benchmarks_basic_without_utest_with_utest_alpha(self):CODE
LOWtools/compare.py427 def test_benchmarks_with_remainder(self):CODE
LOWtools/compare.py438 def test_benchmarks_with_remainder_after_doubleminus(self):CODE
LOWtools/compare.py459 def test_filters_with_remainder(self):CODE
LOWtools/compare.py471 def test_filters_with_remainder_after_doubleminus(self):CODE
LOWtools/compare.py483 def test_benchmarksfiltered_basic(self):CODE
LOWtools/compare.py496 def test_benchmarksfiltered_with_remainder(self):CODE
LOWtools/compare.py516 def test_benchmarksfiltered_with_remainder_after_doubleminus(self):CODE
LOWtools/gbench/report.py114def get_unique_benchmark_names(json):CODE
LOWtools/gbench/report.py135def is_potentially_comparable_benchmark(x):CODE
LOWtools/gbench/report.py175def get_timedelta_field_as_seconds(benchmark, field_name):CODE
LOWtools/gbench/report.py509 def test_json_diff_report_pretty_printing(self):CODE
LOWtools/gbench/report.py594 def test_json_diff_report_output(self):CODE
LOWtools/gbench/report.py853 def test_json_diff_report_pretty_printing(self):CODE
LOWtools/gbench/report.py983 def test_json_diff_report_pretty_printing(self):CODE
LOWtools/gbench/report.py1038 def test_json_diff_report_pretty_printing_aggregates_only(self):CODE
LOWtools/gbench/report.py1230 def test_json_diff_report_pretty_printing(self):CODE
LOWtools/gbench/report.py1420 def test_json_diff_report_pretty_printing(self):CODE
LOWtools/gbench/report.py1477 def test_json_diff_report_pretty_printing(self):CODE
LOWtools/gbench/report.py1535 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
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHbindings/python/google_benchmark/__init__.py108 options = __OptionMaker.make(undefined)CODE
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippetContext
LOWsetup.py91CODE
LOW.ycm_extra_conf.py85CODE
LOWtools/gbench/util.py59CODE
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.py236 # Check if we failed miserably with minimum required repetitions for utestCOMMENT
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtools/gbench/__init__.py8__all__ = [] # type: ignoreCODE