A microbenchmark support library
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).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/strip_asm.py | 161 | # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 | COMMENT |
| LOW | tools/compare.py | 541 | COMMENT | |
| LOW | test/output_test.h | 1 | #ifndef TEST_OUTPUT_TEST_H | COMMENT |
| LOW | test/output_test.h | 61 | // Run all output tests. | COMMENT |
| LOW | include/benchmark/utils.h | 1 | // Copyright 2015 Google Inc. All rights reserved. | COMMENT |
| LOW | include/benchmark/export.h | 1 | #ifndef BENCHMARK_EXPORT_H | COMMENT |
| LOW | include/benchmark/export.h | 21 | #ifdef benchmark_EXPORTS | COMMENT |
| LOW | include/benchmark/export.h | 41 | #endif // BENCHMARK_DEPRECATED_EXPORT | COMMENT |
| LOW | include/benchmark/counter.h | 1 | // Copyright 2015 Google Inc. All rights reserved. | COMMENT |
| LOW | include/benchmark/types.h | 1 | // Copyright 2015 Google Inc. All rights reserved. | COMMENT |
| LOW | include/benchmark/registration.h | 1 | // Copyright 2015 Google Inc. All rights reserved. | COMMENT |
| LOW | include/benchmark/registration.h | 21 | #if defined(__clang__) | COMMENT |
| LOW | include/benchmark/sysinfo.h | 1 | // Copyright 2015 Google Inc. All rights reserved. | COMMENT |
| LOW | include/benchmark/reporter.h | 1 | // Copyright 2015 Google Inc. All rights reserved. | COMMENT |
| LOW | include/benchmark/reporter.h | 21 | #pragma warning(disable : 4251) | COMMENT |
| LOW | include/benchmark/benchmark_api.h | 1 | // Copyright 2015 Google Inc. All rights reserved. | COMMENT |
| LOW | include/benchmark/benchmark_api.h | 21 | #endif | COMMENT |
| LOW | include/benchmark/macros.h | 1 | // Copyright 2015 Google Inc. All rights reserved. | COMMENT |
| LOW | include/benchmark/macros.h | 21 | COMMENT | |
| LOW | include/benchmark/macros.h | 41 | #define BENCHMARK_DONT_OPTIMIZE | COMMENT |
| LOW | include/benchmark/macros.h | 61 | _Pragma("GCC diagnostic push") \ | COMMENT |
| LOW | include/benchmark/macros.h | 81 | #define BENCHMARK_BUILTIN_EXPECT(x, y) x | COMMENT |
| LOW | include/benchmark/macros.h | 101 | #define BENCHMARK_UNREACHABLE() __assume(false) | COMMENT |
| LOW | include/benchmark/macros.h | 121 | COMMENT | |
| LOW | include/benchmark/statistics.h | 1 | // Copyright 2015 Google Inc. All rights reserved. | COMMENT |
| LOW | include/benchmark/managers.h | 1 | // Copyright 2015 Google Inc. All rights reserved. | COMMENT |
| LOW | include/benchmark/benchmark.h | 1 | // Copyright 2015 Google Inc. All rights reserved. | COMMENT |
| LOW | include/benchmark/benchmark.h | 21 | #include "benchmark/managers.h" | COMMENT |
| LOW | include/benchmark/state.h | 1 | // Copyright 2015 Google Inc. All rights reserved. | COMMENT |
| LOW | docs/user_guide.md | 1301 | // handoff to worker thread[s]) to the whole single-thread time. | COMMENT |
| LOW | bindings/python/google_benchmark/__init__.py | 1 | # Copyright 2020 Google Inc. All rights reserved. | COMMENT |
| LOW | bindings/python/google_benchmark/example.py | 1 | # Copyright 2020 Google Inc. All rights reserved. | COMMENT |
| LOW | src/complexity.h | 1 | // Copyright 2016 Ismael Jimenez Martinez. All rights reserved. | COMMENT |
| LOW | src/complexity.h | 21 | #include <string> | COMMENT |
| LOW | src/counter.h | 1 | // Copyright 2015 Google Inc. All rights reserved. | COMMENT |
| LOW | src/re.h | 1 | // Copyright 2015 Google Inc. All rights reserved. | COMMENT |
| LOW | src/re.h | 21 | COMMENT | |
| LOW | src/re.h | 41 | #endif | COMMENT |
| LOW | src/arraysize.h | 1 | #ifndef BENCHMARK_ARRAYSIZE_H_ | COMMENT |
| LOW | src/commandlineflags.h | 1 | #ifndef BENCHMARK_COMMANDLINEFLAGS_H_ | COMMENT |
| LOW | src/commandlineflags.h | 41 | namespace benchmark { | COMMENT |
| LOW | src/commandlineflags.h | 61 | // If the variable exists, returns ParseDouble(); if not, returns | COMMENT |
| LOW | src/commandlineflags.h | 81 | const char* flag, std::map<std::string, std::string> default_val); | COMMENT |
| LOW | src/commandlineflags.h | 101 | COMMENT | |
| LOW | src/internal_macros.h | 1 | #ifndef BENCHMARK_INTERNAL_MACROS_H_ | COMMENT |
| LOW | src/internal_macros.h | 21 | #elif defined(__GNUC__) | COMMENT |
| LOW | src/internal_macros.h | 41 | // WINAPI_FAMILY_PARTITION is defined in winapifamily.h. | COMMENT |
| LOW | src/internal_macros.h | 61 | #define BENCHMARK_OS_MACOSX 1 | COMMENT |
| LOW | src/internal_macros.h | 81 | #define BENCHMARK_OS_WASI 1 | COMMENT |
| LOW | src/internal_macros.h | 101 | && !defined(__EXCEPTIONS) | COMMENT |
| LOW | src/cycleclock.h | 1 | // ---------------------------------------------------------------------- | COMMENT |
| LOW | src/cycleclock.h | 21 | #ifndef BENCHMARK_CYCLECLOCK_H_ | COMMENT |
| LOW | src/cycleclock.h | 41 | // for Arm64EC, despite it using Arm64 assembly instructions. | COMMENT |
| LOW | src/cycleclock.h | 61 | // with modifications by m3b. See also | COMMENT |
| LOW | src/cycleclock.h | 121 | // when I know it will work. Otherwise, I'll use __rdtsc and hope | COMMENT |
| LOW | src/cycleclock.h | 141 | // Use clock_gettime(CLOCK_MONOTONIC, ...) instead of gettimeofday | COMMENT |
| LOW | src/cycleclock.h | 181 | gettimeofday(&tv, nullptr); | COMMENT |
| LOW | src/cycleclock.h | 221 | #elif defined(__e2k__) || defined(__elbrus__) | COMMENT |
| LOW | src/cycleclock.h | 241 | // it's not syncronized across CPUs and only 32-bit wide when programs | COMMENT |
| LOW | src/perf_counters.h | 1 | // Copyright 2021 Google Inc. All rights reserved. | COMMENT |
| 8 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 84 | def copy_extensions_to_source(self): | CODE |
| LOW | tools/compare.py | 374 | def test_benchmarks_basic_without_utest(self): | CODE |
| LOW | tools/compare.py | 386 | def test_benchmarks_basic_display_aggregates_only(self): | CODE |
| LOW | tools/compare.py | 397 | def test_benchmarks_basic_with_utest_alpha(self): | CODE |
| LOW | tools/compare.py | 409 | def test_benchmarks_basic_without_utest_with_utest_alpha(self): | CODE |
| LOW | tools/compare.py | 427 | def test_benchmarks_with_remainder(self): | CODE |
| LOW | tools/compare.py | 438 | def test_benchmarks_with_remainder_after_doubleminus(self): | CODE |
| LOW | tools/compare.py | 459 | def test_filters_with_remainder(self): | CODE |
| LOW | tools/compare.py | 471 | def test_filters_with_remainder_after_doubleminus(self): | CODE |
| LOW | tools/compare.py | 483 | def test_benchmarksfiltered_basic(self): | CODE |
| LOW | tools/compare.py | 496 | def test_benchmarksfiltered_with_remainder(self): | CODE |
| LOW | tools/compare.py | 516 | def test_benchmarksfiltered_with_remainder_after_doubleminus(self): | CODE |
| LOW | tools/gbench/report.py | 114 | def get_unique_benchmark_names(json): | CODE |
| LOW | tools/gbench/report.py | 135 | def is_potentially_comparable_benchmark(x): | CODE |
| LOW | tools/gbench/report.py | 175 | def get_timedelta_field_as_seconds(benchmark, field_name): | CODE |
| LOW | tools/gbench/report.py | 509 | def test_json_diff_report_pretty_printing(self): | CODE |
| LOW | tools/gbench/report.py | 594 | def test_json_diff_report_output(self): | CODE |
| LOW | tools/gbench/report.py | 853 | def test_json_diff_report_pretty_printing(self): | CODE |
| LOW | tools/gbench/report.py | 983 | def test_json_diff_report_pretty_printing(self): | CODE |
| LOW | tools/gbench/report.py | 1038 | def test_json_diff_report_pretty_printing_aggregates_only(self): | CODE |
| LOW | tools/gbench/report.py | 1230 | def test_json_diff_report_pretty_printing(self): | CODE |
| LOW | tools/gbench/report.py | 1420 | def test_json_diff_report_pretty_printing(self): | CODE |
| LOW | tools/gbench/report.py | 1477 | def test_json_diff_report_pretty_printing(self): | CODE |
| LOW | tools/gbench/report.py | 1535 | def test_json_diff_report_pretty_printing(self): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bindings/python/google_benchmark/__init__.py | 33 | CODE | |
| LOW | bindings/python/google_benchmark/__init__.py | 33 | CODE | |
| LOW | bindings/python/google_benchmark/__init__.py | 33 | CODE | |
| LOW | bindings/python/google_benchmark/__init__.py | 33 | CODE | |
| LOW | bindings/python/google_benchmark/__init__.py | 33 | CODE | |
| LOW | bindings/python/google_benchmark/__init__.py | 33 | CODE | |
| LOW | bindings/python/google_benchmark/__init__.py | 33 | CODE | |
| LOW | bindings/python/google_benchmark/__init__.py | 33 | CODE | |
| LOW | bindings/python/google_benchmark/__init__.py | 33 | CODE | |
| LOW | bindings/python/google_benchmark/__init__.py | 33 | CODE | |
| LOW | bindings/python/google_benchmark/__init__.py | 33 | CODE | |
| LOW | bindings/python/google_benchmark/__init__.py | 33 | CODE | |
| LOW | bindings/python/google_benchmark/__init__.py | 33 | CODE | |
| LOW | bindings/python/google_benchmark/__init__.py | 33 | CODE | |
| LOW | bindings/python/google_benchmark/__init__.py | 33 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | bindings/python/google_benchmark/__init__.py | 108 | options = __OptionMaker.make(undefined) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 91 | CODE | |
| LOW | .ycm_extra_conf.py | 85 | CODE | |
| LOW | tools/gbench/util.py | 59 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .ycm_extra_conf.py | 31 | # Set this to the absolute path to the folder (NOT the file!) containing the | COMMENT |
| LOW | tools/gbench/report.py | 236 | # Check if we failed miserably with minimum required repetitions for utest | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/gbench/__init__.py | 8 | __all__ = [] # type: ignore | CODE |