Repository Analysis

simdjson/simdjson

Parsing gigabytes of JSON per second : used by Facebook/Meta Velox, the Node.js runtime, ClickHouse, WatermelonDB, Apache Doris, Milvus, StarRocks

3.7 Likely human-written View on GitHub
3.7
Adjusted Score
3.7
Raw Score
100%
Time Factor
2026-05-30
Last Push
23,794
Stars
C++
Language
140,141
Lines of Code
695
Files
525
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 1MEDIUM 2LOW 522

Pattern Findings

525 matches across 11 categories. Click a row to expand file-level details.

Over-Commented Block484 hits · 472 pts
SeverityFileLineSnippet
LOW.travis.yml141 key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
LOWbenchmark/benchmarker.h1#ifndef __BENCHMARKER_H
LOWbenchmark/benchmarker.h21#include <chrono>
LOWbenchmark/benchfeatures.cpp1#include <counters/event_counter.h>
LOWbenchmark/benchfeatures.cpp21#include <iomanip>
LOWbenchmark/bench_ondemand.cpp1#include "simdjson.h"
LOWbenchmark/bench_ondemand.cpp21#include <nlohmann/json.hpp>
LOWbenchmark/bench_ondemand.cpp41
LOWbenchmark/bench_ondemand.cpp61#include "distinct_user_id/simdjson_dom.h"
LOWbenchmark/bench_ondemand.cpp81#include "find_tweet/sajson.h"
LOWbenchmark/bench_ondemand.cpp101#include "top_tweet/rapidjson_sax.h"
LOWbenchmark/bench_ondemand.cpp121#if SIMDJSON_COMPETITION_SAX
LOWbenchmark/bench_ondemand.cpp141#if SIMDJSON_COMPETITION_SAX
LOWbenchmark/distinct_user_id/rapidjson_sax.h61#endif // SIMDJSON_COMPETITION_RAPIDJSON
LOW…eflect/twitter_benchmark/benchmark_parsing_twitter.cpp1#include <cassert>
LOW…/twitter_benchmark/benchmark_serialization_twitter.cpp1#include <cassert>
LOWbenchmark/static_reflect/serde-benchmark/lib.rs241// FFI Overhead Measurement Functions
LOW…log_benchmark/benchmark_serialization_citm_catalog.cpp1#include <cassert>
LOW…lect/citm_catalog_benchmark/benchmark_parsing_citm.cpp1#include <cassert>
LOWbenchmark/partial_tweets/tweet.h1#pragma once
LOWbenchmark/dom/perfdiff.cpp1#include <cstdio>
LOWbenchmark/dom/parse.cpp1#include <counters/event_counter.h>
LOWbenchmark/dom/parse.cpp21#include <iostream>
LOWtools/minify.cpp1#include <chrono>
LOWtools/json2json.cpp1#include <iostream>
LOWinclude/simdjson.h41#include "simdjson/simdjson_version.h"
LOWinclude/simdjson.h61#include "simdjson/compile_time_json.h"
LOWinclude/simdjson/builtin.h1#ifndef SIMDJSON_BUILTIN_H
LOWinclude/simdjson/builtin.h21#elif SIMDJSON_BUILTIN_IMPLEMENTATION_IS(westmere)
LOWinclude/simdjson/fallback.h1#ifndef SIMDJSON_FALLBACK_H
LOWinclude/simdjson/dom.h1#ifndef SIMDJSON_DOM_H
LOWinclude/simdjson/dom.h21#include "simdjson/internal/tape_ref-inl.h"
LOWinclude/simdjson/ppc64.h1#ifndef SIMDJSON_PPC64_H
LOWinclude/simdjson/rvv-vls.h1#ifndef SIMDJSON_RVV_VLS_H
LOWinclude/simdjson/haswell.h1#ifndef SIMDJSON_HASWELL_H
LOWinclude/simdjson/convert-inl.h121#endif // SIMDJSON_SUPPORTS_CONCEPTS
LOWinclude/simdjson/icelake.h1#ifndef SIMDJSON_ICELAKE_H
LOWinclude/simdjson/portability.h1#ifndef SIMDJSON_PORTABILITY_H
LOWinclude/simdjson/portability.h41
LOWinclude/simdjson/portability.h61
LOWinclude/simdjson/portability.h81 // We are not using GCC, so we assume that we can support runtime dispatch for LASX.
LOWinclude/simdjson/portability.h101#elif defined(__PPC__) || defined(_M_PPC)
LOWinclude/simdjson/portability.h121#define SIMDJSON_STRINGIFY(a,...) SIMDJSON_CAT_IMPLEMENTATION_(a, __VA_ARGS__)
LOWinclude/simdjson/portability.h141//
LOWinclude/simdjson/portability.h161#endif // defined(SIMDJSON_IS_X86_64) || defined(SIMDJSON_IS_LSX)
LOWinclude/simdjson/portability.h181// Lack of compiler optimization may generate high stack usage.
LOWinclude/simdjson/portability.h201#define simdjson_pure
LOWinclude/simdjson/portability.h221#define simdjson_strncasecmp _strnicmp
LOWinclude/simdjson/portability.h241#endif
LOWinclude/simdjson/portability.h261#elif defined(__MVS__)
LOWinclude/simdjson/portability.h281#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
LOWinclude/simdjson/portability.h301// On Windows the class is disabled by default and must be explicitly
LOWinclude/simdjson/portability.h321// simply does not exist — any attempt to use it fails at compile time
LOWinclude/simdjson/common_defs.h21double from_chars(const char *first) noexcept;
LOWinclude/simdjson/common_defs.h41 #define SIMDJSON_BEGIN_DEBUG_BLOCK(name) __asm volatile("# LLVM-MCA-BEGIN " #name);
LOWinclude/simdjson/common_defs.h61 #define simdjson_unused
LOWinclude/simdjson/common_defs.h81 #endif
LOWinclude/simdjson/common_defs.h101
LOWinclude/simdjson/common_defs.h141 SIMDJSON_DISABLE_GCC_WARNING(-Wunused-variable) \
LOWinclude/simdjson/common_defs.h161
424 more matches not shown…
Fake / Example Data19 hits · 19 pts
SeverityFileLineSnippet
LOWbenchmark/benchmark_reflection_usage_compilation.sh322 "name": "John Doe",
LOWbenchmark/benchmark_reflection_usage_compilation.sh327 "street": "123 Main St",
LOWbenchmark/benchmark_reflection_usage_compilation.sh393 "name": "John Doe",
LOWbenchmark/benchmark_reflection_usage_compilation.sh398 "street": "123 Main St",
LOWbenchmark/accessor_performance/accessor_benchmark.h16 "street": "123 Main St",
LOWtests/ondemand/compile_time_json_path_tests.cpp47 "name": "John Doe",
LOWtests/ondemand/compile_time_json_path_tests.cpp58 "street": "123 Main St",
LOWtests/ondemand/compile_time_json_path_tests.cpp133 ASSERT_EQUAL(name, "John Doe");
LOWtests/ondemand/compile_time_json_path_tests.cpp178 ASSERT_EQUAL(street, "123 Main St");
LOWtests/ondemand/compile_time_json_pointer_tests.cpp47 "name": "John Doe",
LOWtests/ondemand/compile_time_json_pointer_tests.cpp96 "street": "123 Main St",
LOWtests/ondemand/compile_time_json_pointer_tests.cpp120 ASSERT_EQUAL(name, "John Doe");
LOWtests/ondemand/compile_time_json_pointer_tests.cpp432 ASSERT_EQUAL(street, "123 Main St");
LOWtests/ondemand/compile_time_json_pointer_tests.cpp527 ASSERT_EQUAL(name, "John Doe");
LOWtests/builder/static_reflection_comprehensive_tests.cpp577 Person person{"John Doe", 30, "john@example.com", std::nullopt};
LOWtests/builder/static_reflection_comprehensive_tests.cpp592 ASSERT_EQUAL(name, "John Doe");
LOWtests/builder/static_reflection_comprehensive_tests.cpp598 Person person{"Jane Smith", 25, "jane@example.com", "555-1234"};
LOWtests/builder/static_reflection_comprehensive_tests.cpp617 ASSERT_EQUAL(phone, "555-1234");
LOWtests/builder/static_reflection_comprehensive_tests.cpp672 Company company{"TechCorp", {"123 Main St", "San Francisco", "94105"}, 500};
Verbosity Indicators4 hits · 6 pts
SeverityFileLineSnippet
LOW…lude/simdjson/generic/builder/fractured_json_builder.h42 // Step 1: Serialize to minified JSON
LOW…lude/simdjson/generic/builder/fractured_json_builder.h49 // Step 2: Reformat with FracturedJson
LOW…lude/simdjson/generic/builder/fractured_json_builder.h73 // Step 1: Extract fields to minified JSON
LOW…lude/simdjson/generic/builder/fractured_json_builder.h80 // Step 2: Reformat with FracturedJson
Deep Nesting6 hits · 6 pts
SeverityFileLineSnippet
LOWstyle/run-clang-format.py36
LOWstyle/run-clang-format.py163
LOWscripts/detect_nonascii_sourcefiles.py5
LOWsingleheader/amalgamate.py717
LOWsingleheader/amalgamate.py375
LOWsingleheader/amalgamate.py540
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippet
HIGHtools/release.py188print("to issue release, enter \n git commit -a && git push && git tag -a v"+toversionstring(*newversion)+" -m \"versi
Decorative Section Separators1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMbenchmark/benchmark_reflection_usage_compilation.sh57# ───────────────────────────── BOX-PRINT HELPER ────────────────────────────
Unused Imports3 hits · 3 pts
SeverityFileLineSnippet
LOWtools/release.py8
LOWstyle/run-clang-format.py11
LOWstyle/run-clang-format.py11
Excessive Try-Catch Wrapping2 hits · 3 pts
SeverityFileLineSnippet
LOWstyle/run-clang-format.py97 except Exception as e:
MEDIUMstyle/run-clang-format.py91def run_clang_format_diff_wrapper(args, file):
Hyper-Verbose Identifiers3 hits · 2 pts
SeverityFileLineSnippet
LOWstyle/run-clang-format.py91def run_clang_format_diff_wrapper(args, file):
LOWsingleheader/amalgamate.py375 def validate_free_dependency_file(self):
LOWsingleheader/amalgamate.py423 def validate_free_dependency_files(self):
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippet
LOWbenchmark/benchmark_reflection_usage_compilation.sh167# Check if we found a working compiler
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippet
LOWfuzz/ossfuzz.sh9# make sure to exit on problems