A microbenchmark support library
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.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 101 finding(s).
Are imports declared and package/API names verified? 16 finding(s).
Are wrappers, guards, and repeated structures necessary? 32 finding(s).
Which changes need focused human review? 120 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 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/strip_asm.py | 161 | # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 | 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 | 1321 | } | 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 synchronized across CPUs and only 32-bit wide when programs | COMMENT |
| LOW | src/perf_counters.h | 1 | // Copyright 2021 Google Inc. All rights reserved. | COMMENT |
| LOW | src/perf_counters.h | 21 | #include <cstring> | COMMENT |
| 8 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 108 | def copy_extensions_to_source(self): | CODE |
| LOW | tools/compare.py | 60 | def enable_virtual_terminal_processing(): | CODE |
| LOW | tools/compare.py | 414 | def test_benchmarks_basic_without_utest(self): | CODE |
| LOW | tools/compare.py | 426 | def test_benchmarks_basic_display_aggregates_only(self): | CODE |
| LOW | tools/compare.py | 437 | def test_benchmarks_basic_with_utest_alpha(self): | CODE |
| LOW | tools/compare.py | 449 | def test_benchmarks_basic_without_utest_with_utest_alpha(self): | CODE |
| LOW | tools/compare.py | 467 | def test_benchmarks_with_remainder(self): | CODE |
| LOW | tools/compare.py | 478 | def test_benchmarks_with_remainder_after_doubleminus(self): | CODE |
| LOW | tools/compare.py | 499 | def test_filters_with_remainder(self): | CODE |
| LOW | tools/compare.py | 511 | def test_filters_with_remainder_after_doubleminus(self): | CODE |
| LOW | tools/compare.py | 523 | def test_benchmarksfiltered_basic(self): | CODE |
| LOW | tools/compare.py | 536 | def test_benchmarksfiltered_with_remainder(self): | CODE |
| LOW | tools/compare.py | 556 | def test_benchmarksfiltered_with_remainder_after_doubleminus(self): | CODE |
| LOW⚡ | tools/compare.py | 577 | def test_benchmarks_no_color_flag(self): | CODE |
| LOW⚡ | tools/compare.py | 584 | def test_benchmarks_color_default_no_color_env(self): | CODE |
| LOW⚡ | tools/compare.py | 593 | def test_benchmarks_color_default_not_a_tty(self, mock_isatty): | CODE |
| LOW⚡ | tools/compare.py | 603 | def test_benchmarks_color_default_tty(self, mock_isatty, mock_vt): | 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 | 185 | def get_timedelta_field_as_seconds(benchmark, field_name): | CODE |
| LOW | tools/gbench/report.py | 523 | def test_json_diff_report_pretty_printing(self): | CODE |
| LOW | tools/gbench/report.py | 608 | def test_json_diff_report_output(self): | CODE |
| LOW | tools/gbench/report.py | 867 | def test_json_diff_report_pretty_printing(self): | CODE |
| LOW | tools/gbench/report.py | 997 | def test_json_diff_report_pretty_printing(self): | CODE |
| LOW | tools/gbench/report.py | 1052 | def test_json_diff_report_pretty_printing_aggregates_only(self): | CODE |
| LOW | tools/gbench/report.py | 1244 | def test_json_diff_report_pretty_printing(self): | CODE |
| LOW | tools/gbench/report.py | 1434 | def test_json_diff_report_pretty_printing(self): | CODE |
| LOW | tools/gbench/report.py | 1491 | def test_json_diff_report_pretty_printing(self): | CODE |
| LOW | tools/gbench/report.py | 1549 | 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 | tools/gbench/util.py | 54 | except BaseException: | 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 | .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 | 250 | # Check if we failed miserably with minimum required repetitions for utest | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .ycm_extra_conf.py | 85 | CODE | |
| LOW | tools/gbench/util.py | 59 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/compare.py | 79 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/gbench/__init__.py | 8 | __all__ = [] # type: ignore | CODE |