mirror of
https://github.com/nlohmann/json.git
synced 2026-10-06 14:40:32 +00:00
tests/benchmarks/json_view/ holds a comparison with other libraries, answering the question users ask when they pick one. It is not built by CMake and not run by CI. - bench_view.cpp: parse, traverse, select and dump of twitter, citm_catalog, canada, jeopardy, a tweet and an RPC request, against json_view, yyjson, simdjson, Boost.JSON and json::parse, all agreeing and run interleaved. - bench_corpus.cpp: parse, traverse and dump of any file list. - bench_edit.cpp: parses, edits through each library's own API, and serializes; all outputs must describe the same value. - compare.py: builds both programs with system or pinned, SHA-256-checked downloads, and writes results with the commit, CPU, OS, compiler and library versions. - README.md and a workflow that runs on demand or via a PR label. Fairness fixes folded in: each engine runs once untimed before each timed round, so the next one no longer pays for the previous one's cleanup; dump is also compared with source numbers against yyjson's raw-number mode; a "simdjson DOM (fresh)" column and a reused-document column for json_view were added; compare.py's paths are absolute; downloads use a .part file and a failed checksum removes the archive. Signed-off-by: Niels Lohmann <mail@nlohmann.me>
78 lines
1.9 KiB
YAML
78 lines
1.9 KiB
YAML
version: 1
|
|
|
|
labels:
|
|
- label: "documentation"
|
|
files:
|
|
- "README.md"
|
|
|
|
- label: "documentation"
|
|
files:
|
|
- "docs/.*"
|
|
|
|
- label: "tests"
|
|
files:
|
|
- "tests/.*"
|
|
|
|
- label: "CMake"
|
|
files:
|
|
- ".*CMakeLists.txt"
|
|
|
|
- label: "CMake"
|
|
files:
|
|
- "cmake/.*"
|
|
|
|
- label: "CI"
|
|
files:
|
|
- ".github/workflows/.*"
|
|
|
|
- label: "CI"
|
|
files:
|
|
- ".github/external_ci/.*"
|
|
|
|
- label: "CI"
|
|
files:
|
|
- ".github/(dependabot|labeler)\\.yml"
|
|
|
|
- label: "aspect: binary formats"
|
|
files:
|
|
- "include/nlohmann/detail/input/binary_reader\\.hpp"
|
|
- "include/nlohmann/detail/output/binary_writer\\.hpp"
|
|
- "tests/src/unit-(bson|cbor|msgpack|ubjson|bjdata|bon8|binary_formats)"
|
|
- "tests/src/fuzzer-parse_(bson|cbor|msgpack|ubjson|bjdata|bon8)"
|
|
- "docs/mkdocs/docs/features/binary_formats/"
|
|
- "docs/mkdocs/docs/(api/basic_json|examples)/(to|from)_(bson|cbor|msgpack|ubjson|bjdata|bon8)"
|
|
|
|
- label: "aspect: binary formats"
|
|
title: "(?i)(bson|cbor|msgpack|messagepack|ubjson|bjdata|bon8|binary format)"
|
|
|
|
- label: "aspect: json_view"
|
|
files:
|
|
- "include/nlohmann/json_view\\.hpp"
|
|
- "include/nlohmann/detail/view/.*"
|
|
- "single_include/nlohmann/json_view\\.hpp"
|
|
- "tests/src/unit-json_view.*"
|
|
- "tests/src/fuzzer-(parse_json_view|json_view_image)\\.cpp"
|
|
- "tests/benchmarks/json_view/.*"
|
|
- "tools/amalgamate/config_json_view\\.json"
|
|
- "docs/mkdocs/docs/features/json_view\\.md"
|
|
- "docs/mkdocs/docs/api/basic_json_(document|view)/.*"
|
|
- "docs/mkdocs/docs/api/(ordered_)?json_(editable_)?(document|view)\\.md"
|
|
- "docs/mkdocs/docs/examples/(basic_json_(document|view)__|(ordered_)?json_(editable_)?(document|view)).*"
|
|
- "tests/benchmarks/src/benchmarks_view\\.cpp"
|
|
|
|
- label: "aspect: json_view"
|
|
title: "(?i)(json_view|json_document|zero-copy)"
|
|
|
|
- label: "python"
|
|
files:
|
|
- "\\.py$"
|
|
- "requirements[^/]*\\.txt$"
|
|
|
|
- label: "S"
|
|
size-below: 10
|
|
- label: "M"
|
|
size-above: 9
|
|
size-below: 100
|
|
- label: "L"
|
|
size-above: 100
|