Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e239b95619 | ||
|
|
8ddda7fc3e | ||
|
|
322063822f | ||
|
|
ccbbe8d0f0 | ||
|
|
745efa2673 | ||
|
|
90987b2a63 | ||
|
|
d957a10f55 | ||
|
|
e20f6dc35d | ||
|
|
7a67ccf6aa | ||
|
|
098eebd412 | ||
|
|
555ef48fb6 | ||
|
|
d732d616ba | ||
|
|
b927100ca1 | ||
|
|
ccb253baf1 | ||
|
|
8c3335d41f | ||
|
|
0ac14610d6 | ||
|
|
2951790d40 | ||
|
|
77611d412f | ||
|
|
f6eb5e4fb1 | ||
|
|
ac0d25f51c | ||
|
|
f91e900875 | ||
|
|
6ac411e14c | ||
|
|
1f7250f77f | ||
|
|
03ce377876 | ||
|
|
a1284028b2 | ||
|
|
abbc29963a | ||
|
|
7127a82fa1 | ||
|
|
99adff001d | ||
|
|
253e4c3926 | ||
|
|
73ec296320 | ||
|
|
79f6513cec | ||
|
|
81888ff9f0 | ||
|
|
38cb5d0573 | ||
|
|
72966ae73d |
No files matched your search
@@ -66,7 +66,7 @@ labels:
|
||||
- "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/features/json_view/.*"
|
||||
- "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)).*"
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
name: Big-endian
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- develop
|
||||
- master
|
||||
- release/*
|
||||
pull_request:
|
||||
schedule:
|
||||
- cron: '17 4 * * 1'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
ci_test_big_endian:
|
||||
# Allow manual fork validation, but avoid weekly emulation runs in forks.
|
||||
if: github.event_name != 'schedule' || github.repository == 'nlohmann/json'
|
||||
runs-on: ubuntu-26.04
|
||||
container: debian:trixie
|
||||
timeout-minutes: 90
|
||||
steps:
|
||||
- name: Install the s390x cross compiler and qemu-user
|
||||
run: |
|
||||
apt-get update
|
||||
# get-cmake uses unzip to extract Ninja's zip; debian:trixie does not include it.
|
||||
apt-get install -y --no-install-recommends g++ g++-s390x-linux-gnu qemu-user git ca-certificates unzip
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Get latest CMake and ninja
|
||||
uses: lukka/get-cmake@16e8153a8b4918849d92aad131befe67a3705daa # v4.5.0
|
||||
- name: Check that the target is big-endian
|
||||
run: echo | s390x-linux-gnu-g++ -dM -E - | grep -q '__BYTE_ORDER__ __ORDER_BIG_ENDIAN__'
|
||||
- name: Run CMake
|
||||
run: cmake -S . -B build -G Ninja -DJSON_CI=On
|
||||
- name: Build and test
|
||||
env:
|
||||
TEST_SCOPE: ${{ github.event_name == 'pull_request' && 'focused' || 'full' }}
|
||||
run: cmake --build build --target "ci_test_big_endian_${TEST_SCOPE}"
|
||||
@@ -28,7 +28,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
|
||||
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
runs-on: ubuntu-26.04
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
|
||||
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
@@ -46,7 +46,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
|
||||
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
@@ -115,9 +115,7 @@ jobs:
|
||||
|
||||
python3 $TOOL_DIR/amalgamate.py -c $TOOL_DIR/config_json.json -s .
|
||||
python3 $TOOL_DIR/amalgamate.py -c $TOOL_DIR/config_json_fwd.json -s .
|
||||
# the configuration of json_view.hpp comes with the pull request until
|
||||
# it is on develop; the tool itself is still develop's
|
||||
python3 $TOOL_DIR/amalgamate.py -c $MAIN_DIR/tools/amalgamate/config_json_view.json -s .
|
||||
python3 $TOOL_DIR/amalgamate.py -c $TOOL_DIR/config_json_view.json -s .
|
||||
|
||||
# the header list of the Bazel "json" target must match the files in include/
|
||||
cmake -P cmake/scripts/gen_bazel_build_file.cmake
|
||||
|
||||
@@ -20,7 +20,7 @@ jobs:
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
|
||||
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ jobs:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
|
||||
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
|
||||
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ jobs:
|
||||
pull-requests: write
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
|
||||
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ jobs:
|
||||
runs-on: ubuntu-26.04
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
|
||||
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
security-events: write
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
|
||||
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ jobs:
|
||||
timeout-minutes: 60
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
|
||||
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
|
||||
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ jobs:
|
||||
runs-on: ubuntu-26.04
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
|
||||
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
|
||||
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ jobs:
|
||||
runs-on: ubuntu-26.04
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
|
||||
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
|
||||
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Get latest CMake and ninja
|
||||
uses: lukka/get-cmake@f86dd60acae0d132056913e248bdabf0e0580b7a # v4.4.5
|
||||
uses: lukka/get-cmake@16e8153a8b4918849d92aad131befe67a3705daa # v4.5.0
|
||||
- name: Run CMake
|
||||
run: cmake -S . -B build -DJSON_CI=On
|
||||
- name: Build
|
||||
@@ -38,7 +38,7 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Get latest CMake and ninja
|
||||
uses: lukka/get-cmake@f86dd60acae0d132056913e248bdabf0e0580b7a # v4.4.5
|
||||
uses: lukka/get-cmake@16e8153a8b4918849d92aad131befe67a3705daa # v4.5.0
|
||||
- name: Check that Meson and pkg-config offer the CMake options
|
||||
run: make check_build_options
|
||||
- name: Install Meson
|
||||
@@ -80,7 +80,7 @@ jobs:
|
||||
runs-on: ubuntu-26.04
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
|
||||
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
@@ -92,7 +92,7 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Get latest CMake and ninja
|
||||
uses: lukka/get-cmake@f86dd60acae0d132056913e248bdabf0e0580b7a # v4.4.5
|
||||
uses: lukka/get-cmake@16e8153a8b4918849d92aad131befe67a3705daa # v4.5.0
|
||||
- name: Run CMake
|
||||
run: cmake -S . -B build -DJSON_CI=On
|
||||
- name: Build
|
||||
@@ -112,7 +112,7 @@ jobs:
|
||||
target: [ci_test_single_header, ci_cppcheck, ci_cpplint, ci_reproducible_tests, ci_non_git_tests, ci_offline_testdata, ci_reuse_compliance, ci_test_valgrind]
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
|
||||
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
@@ -123,7 +123,7 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Get latest CMake and ninja
|
||||
uses: lukka/get-cmake@f86dd60acae0d132056913e248bdabf0e0580b7a # v4.4.5
|
||||
uses: lukka/get-cmake@16e8153a8b4918849d92aad131befe67a3705daa # v4.5.0
|
||||
- name: Run CMake
|
||||
run: cmake -S . -B build -DJSON_CI=On
|
||||
- name: Build
|
||||
@@ -142,7 +142,7 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Get latest CMake and ninja
|
||||
uses: lukka/get-cmake@f86dd60acae0d132056913e248bdabf0e0580b7a # v4.4.5
|
||||
uses: lukka/get-cmake@16e8153a8b4918849d92aad131befe67a3705daa # v4.5.0
|
||||
- name: Run CMake
|
||||
run: cmake -S . -B build -DJSON_CI=On
|
||||
- name: Build
|
||||
@@ -168,7 +168,7 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Get latest CMake and ninja
|
||||
uses: lukka/get-cmake@f86dd60acae0d132056913e248bdabf0e0580b7a # v4.4.5
|
||||
uses: lukka/get-cmake@16e8153a8b4918849d92aad131befe67a3705daa # v4.5.0
|
||||
- name: Run CMake
|
||||
run: cmake -S . -B build -DJSON_CI=On
|
||||
- name: Build
|
||||
@@ -178,7 +178,7 @@ jobs:
|
||||
runs-on: ubuntu-26.04
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
|
||||
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
@@ -244,7 +244,7 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Get latest CMake and ninja
|
||||
uses: lukka/get-cmake@f86dd60acae0d132056913e248bdabf0e0580b7a # v4.4.5
|
||||
uses: lukka/get-cmake@16e8153a8b4918849d92aad131befe67a3705daa # v4.5.0
|
||||
- name: Run CMake
|
||||
run: CXX=g++-${{ matrix.compiler }} cmake -S . -B build -DJSON_CI=On
|
||||
- name: Build
|
||||
@@ -262,7 +262,7 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Get latest CMake and ninja
|
||||
uses: lukka/get-cmake@f86dd60acae0d132056913e248bdabf0e0580b7a # v4.4.5
|
||||
uses: lukka/get-cmake@16e8153a8b4918849d92aad131befe67a3705daa # v4.5.0
|
||||
- name: Run CMake
|
||||
run: cmake -S . -B build -DJSON_CI=On
|
||||
- name: Build
|
||||
@@ -279,7 +279,7 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Get latest CMake and ninja
|
||||
uses: lukka/get-cmake@f86dd60acae0d132056913e248bdabf0e0580b7a # v4.4.5
|
||||
uses: lukka/get-cmake@16e8153a8b4918849d92aad131befe67a3705daa # v4.5.0
|
||||
- name: Disable filesystem support (std::filesystem is unusable) for clang 7 / 8 / 9 / 10
|
||||
run: echo "JSON_FORCED_GLOBAL_COMPILE_OPTIONS=-DJSON_HAS_FILESYSTEM=0;-DJSON_HAS_EXPERIMENTAL_FILESYSTEM=0" >> "$GITHUB_ENV"
|
||||
if: ${{ matrix.compiler == '7' || matrix.compiler == '8' || matrix.compiler == '9' || matrix.compiler == '10' }}
|
||||
@@ -299,7 +299,7 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Get latest CMake and ninja
|
||||
uses: lukka/get-cmake@f86dd60acae0d132056913e248bdabf0e0580b7a # v4.4.5
|
||||
uses: lukka/get-cmake@16e8153a8b4918849d92aad131befe67a3705daa # v4.5.0
|
||||
- name: Run CMake
|
||||
run: cmake -S . -B build -DJSON_CI=On
|
||||
- name: Build
|
||||
@@ -319,7 +319,7 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Get latest CMake and ninja
|
||||
uses: lukka/get-cmake@f86dd60acae0d132056913e248bdabf0e0580b7a # v4.4.5
|
||||
uses: lukka/get-cmake@16e8153a8b4918849d92aad131befe67a3705daa # v4.5.0
|
||||
- name: Run CMake
|
||||
run: cmake -S . -B build -DJSON_CI=On
|
||||
- name: Build with libc++
|
||||
@@ -346,7 +346,7 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Get latest CMake and ninja
|
||||
uses: lukka/get-cmake@f86dd60acae0d132056913e248bdabf0e0580b7a # v4.4.5
|
||||
uses: lukka/get-cmake@16e8153a8b4918849d92aad131befe67a3705daa # v4.5.0
|
||||
- name: Run CMake
|
||||
run: cmake -S . -B build -DJSON_CI=On
|
||||
- name: Build
|
||||
@@ -362,13 +362,16 @@ jobs:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
# The module test uses `import std;`, which needs CMake's experimental
|
||||
# import-std support. Its opt-in token is CMake-version-specific, so pin
|
||||
# CMake to the version whose token is set in tests/module_cpp20/CMakeLists.txt.
|
||||
- name: Get pinned CMake and ninja
|
||||
uses: lukka/get-cmake@f86dd60acae0d132056913e248bdabf0e0580b7a # v4.4.5
|
||||
# get-cmake extracts the Ninja zip with the system unzip, which the Clang
|
||||
# image lacks; other Clang jobs get away with it by hitting the cache.
|
||||
- name: Install unzip (Clang)
|
||||
if: matrix.container == 'silkeh/clang:latest'
|
||||
run: apt-get update ; apt-get install -y unzip
|
||||
# The module test uses `import std;`, which needs CMake 4.5 or newer.
|
||||
- name: Get CMake 4.5+ and ninja
|
||||
uses: lukka/get-cmake@16e8153a8b4918849d92aad131befe67a3705daa # v4.5.0
|
||||
with:
|
||||
cmakeVersion: 4.3.4
|
||||
cmakeVersion: '^4.5.0'
|
||||
# Clang: the std library module is provided by libc++ (the image's libstdc++
|
||||
# ships none), and the image's libc++ module manifest has a broken relative
|
||||
# path — repoint it at the real module sources.
|
||||
@@ -392,7 +395,7 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Get latest CMake and ninja
|
||||
uses: lukka/get-cmake@f86dd60acae0d132056913e248bdabf0e0580b7a # v4.4.5
|
||||
uses: lukka/get-cmake@16e8153a8b4918849d92aad131befe67a3705daa # v4.5.0
|
||||
- name: Run CMake
|
||||
run: cmake -S . -B build -DJSON_CI=On
|
||||
- name: Build
|
||||
@@ -409,7 +412,7 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Get latest CMake and ninja
|
||||
uses: lukka/get-cmake@f86dd60acae0d132056913e248bdabf0e0580b7a # v4.4.5
|
||||
uses: lukka/get-cmake@16e8153a8b4918849d92aad131befe67a3705daa # v4.5.0
|
||||
- name: Run CMake
|
||||
run: cmake -S . -B build -DJSON_CI=On
|
||||
- name: Build
|
||||
@@ -423,7 +426,7 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Get latest CMake and ninja
|
||||
uses: lukka/get-cmake@f86dd60acae0d132056913e248bdabf0e0580b7a # v4.4.5
|
||||
uses: lukka/get-cmake@16e8153a8b4918849d92aad131befe67a3705daa # v4.5.0
|
||||
- name: Run CMake
|
||||
run: cmake -S . -B build -DJSON_CI=On
|
||||
- name: Build
|
||||
@@ -433,7 +436,7 @@ jobs:
|
||||
runs-on: ubuntu-26.04
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
|
||||
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
@@ -443,7 +446,7 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Get latest CMake and ninja
|
||||
uses: lukka/get-cmake@f86dd60acae0d132056913e248bdabf0e0580b7a # v4.4.5
|
||||
uses: lukka/get-cmake@16e8153a8b4918849d92aad131befe67a3705daa # v4.5.0
|
||||
- name: Run CMake
|
||||
run: cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=$EMSDK/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -GNinja
|
||||
- name: Build
|
||||
@@ -456,7 +459,7 @@ jobs:
|
||||
target: [ci_test_examples, ci_test_build_documentation, ci_test_documentation_mermaid]
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
|
||||
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
||||
with:
|
||||
egress-policy: audit
|
||||
|
||||
@@ -484,7 +487,7 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Get latest CMake and ninja
|
||||
uses: lukka/get-cmake@f86dd60acae0d132056913e248bdabf0e0580b7a # v4.4.5
|
||||
uses: lukka/get-cmake@16e8153a8b4918849d92aad131befe67a3705daa # v4.5.0
|
||||
- name: Check that the job runs natively on arm64
|
||||
run: uname -m && test "$(uname -m)" = aarch64
|
||||
- name: Run CMake
|
||||
|
||||
@@ -90,7 +90,7 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Get latest CMake and ninja
|
||||
uses: lukka/get-cmake@f86dd60acae0d132056913e248bdabf0e0580b7a # v4.4.5
|
||||
uses: lukka/get-cmake@16e8153a8b4918849d92aad131befe67a3705daa # v4.5.0
|
||||
- name: Set extra CXX_FLAGS for latest std_version
|
||||
# /wd5285 silences C5285 emitted by the bundled third-party doctest.h, which
|
||||
# specializes std::tuple (newly diagnosed by the VS2026 v145 toolset)
|
||||
@@ -212,13 +212,11 @@ jobs:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
# The module test uses `import std;`, which needs CMake's experimental
|
||||
# import-std support. Its opt-in token is CMake-version-specific, so pin
|
||||
# CMake to the version whose token is set in tests/module_cpp20/CMakeLists.txt.
|
||||
- name: Get pinned CMake and ninja
|
||||
uses: lukka/get-cmake@f86dd60acae0d132056913e248bdabf0e0580b7a # v4.4.5
|
||||
# The module test uses `import std;`, which needs CMake 4.5 or newer.
|
||||
- name: Get CMake 4.5+ and ninja
|
||||
uses: lukka/get-cmake@16e8153a8b4918849d92aad131befe67a3705daa # v4.5.0
|
||||
with:
|
||||
cmakeVersion: 4.3.4
|
||||
cmakeVersion: '^4.5.0'
|
||||
# CMAKE_CXX_FLAGS replaces CMake's MSVC defaults (which include /EHsc), and
|
||||
# ci_module_cpp20 forwards it to the module build, so list /EHsc explicitly
|
||||
- name: Run CMake (Debug)
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
# fuzzers
|
||||
/tests/corpus_*
|
||||
/tests/parse_*_fuzzer
|
||||
/tests/*_fuzzer
|
||||
|
||||
# documentation
|
||||
/docs/docset/JSON_for_Modern_C++.docset/
|
||||
@@ -47,11 +47,10 @@ nlohmann_json.spdx
|
||||
# Bazel-related
|
||||
MODULE.bazel.lock
|
||||
|
||||
# backups left by `make check-amalgamation` or the ci_test_amalgamation target if they are interrupted
|
||||
# backups left by `make check-amalgamation` if it is interrupted
|
||||
/BUILD.bazel~
|
||||
/nlohmann_json.natvis~
|
||||
/single_include/nlohmann/*.hpp~
|
||||
/venv_astyle/
|
||||
|
||||
# release outputs of `make release`
|
||||
/include.zip
|
||||
|
||||
@@ -28,6 +28,7 @@ The [GitHub Actions](https://docs.github.com/en/actions) workflows that build, t
|
||||
- `publish_documentation.yml` — build and publish the documentation on pushes to the `develop` branch that touch the documentation sources (or the files it embeds).
|
||||
- `check_docs_links.yml` — check the links of the documentation weekly, as external links can break without any change in this repository.
|
||||
- `cancel_closed_pr_runs.yml` — cancel unfinished workflow runs of a pull request once it is closed or merged.
|
||||
- `json_view_benchmarks.yml` — compare the performance of `json_view` with other JSON libraries on GitHub-hosted x86-64 and AArch64 Linux runners, on demand or when a pull request gets the label "benchmark".
|
||||
|
||||
Further documentation:
|
||||
|
||||
|
||||
@@ -215,7 +215,7 @@ release: include.zip json.tar.xz
|
||||
|
||||
# clean up
|
||||
clean:
|
||||
rm -fr *.dSYM tests/*.dSYM tests/parse_*_fuzzer
|
||||
rm -fr *.dSYM tests/*.dSYM tests/*_fuzzer
|
||||
rm -fr cmake-build-benchmarks cmake-build-pvs-studio release_files
|
||||
$(MAKE) clean -Cdocs
|
||||
|
||||
|
||||
@@ -165,7 +165,8 @@ std::ifstream f("example.json");
|
||||
json data = json::parse(f);
|
||||
```
|
||||
|
||||
If using modules (enabled with `NLOHMANN_JSON_BUILD_MODULES`), this example becomes:
|
||||
If using modules (enabled with `NLOHMANN_JSON_BUILD_MODULES`; `import std;` needs CMake 4.5 or newer, see the
|
||||
[modules documentation](https://json.nlohmann.me/features/modules/)), this example becomes:
|
||||
```cpp
|
||||
import std;
|
||||
import nlohmann.json;
|
||||
@@ -1382,6 +1383,7 @@ Use your favorite [**package manager**](https://json.nlohmann.me/integration/pac
|
||||
- [**build2**](https://json.nlohmann.me/integration/package_managers/#build2) `nlohmann-json`
|
||||
- <img src="https://raw.githubusercontent.com/nlohmann/json/refs/heads/develop/docs/mkdocs/docs/images/package_managers/CPM.png" height="20"> [**cpm.cmake**](https://json.nlohmann.me/integration/package_managers/#cpmcmake) `gh:nlohmann/json`
|
||||
- <img src="https://raw.githubusercontent.com/nlohmann/json/refs/heads/develop/docs/mkdocs/docs/images/package_managers/xmake.svg" height="20"> [**xmake**](https://json.nlohmann.me/integration/package_managers/#xmake) `nlohmann_json`
|
||||
- <img src="https://raw.githubusercontent.com/nlohmann/json/refs/heads/develop/docs/mkdocs/docs/images/package_managers/nix.svg" height="20"> [**Nix**](https://json.nlohmann.me/integration/package_managers/#nix) `nlohmann_json`
|
||||
|
||||
The library is part of many package managers. See the [**documentation**](https://json.nlohmann.me/integration/package_managers/) for detailed descriptions and examples.
|
||||
|
||||
|
||||
@@ -100,6 +100,40 @@ add_custom_target(ci_test_clang
|
||||
COMMENT "Compile and test with Clang using maximal warning flags"
|
||||
)
|
||||
|
||||
###############################################################################
|
||||
# Big-endian tests (cross-compiled for s390x, executed under qemu-user).
|
||||
###############################################################################
|
||||
|
||||
foreach(S390X_TEST_SCOPE IN ITEMS focused full)
|
||||
set(S390X_TEST_FILTER)
|
||||
if(S390X_TEST_SCOPE STREQUAL "focused")
|
||||
# Keep this filter in sync with new or renamed endianness-sensitive tests.
|
||||
# "serialization" intentionally includes "deserialization"; the develop
|
||||
# and weekly full runs cover tests outside this focused runtime subset.
|
||||
set(S390X_TEST_FILTER -R "cbor|msgpack|ubjson|bjdata|bson|bon8|binary|json_view|alt-string|serialization|class_parser|fmt_formatter")
|
||||
endif()
|
||||
|
||||
add_custom_target(ci_test_big_endian_${S390X_TEST_SCOPE}
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-DCMAKE_BUILD_TYPE=Debug -GNinja
|
||||
-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=s390x
|
||||
-DCMAKE_CXX_COMPILER=s390x-linux-gnu-g++
|
||||
"-DCMAKE_CROSSCOMPILING_EMULATOR=qemu-s390x;-L;/usr/s390x-linux-gnu"
|
||||
-DJSON_BuildTests=ON -DJSON_FastTests=ON
|
||||
-S${PROJECT_SOURCE_DIR} -B${PROJECT_BINARY_DIR}/build_big_endian
|
||||
# Build every test binary, even when executing only the focused subset.
|
||||
# Limit parallelism for memory-intensive compilation and emulated tests.
|
||||
COMMAND ${CMAKE_COMMAND} -E echo "s390x build timing:"
|
||||
COMMAND ${CMAKE_COMMAND} -E time ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR}/build_big_endian --parallel 2
|
||||
COMMAND ${CMAKE_COMMAND} -E echo "s390x test timing:"
|
||||
COMMAND ${CMAKE_COMMAND} -E time ${CMAKE_CTEST_COMMAND} --test-dir ${PROJECT_BINARY_DIR}/build_big_endian
|
||||
--parallel 2 --output-on-failure --no-tests=error ${S390X_TEST_FILTER}
|
||||
COMMENT "Cross-compile all tests for s390x and run the ${S390X_TEST_SCOPE} suite under qemu-user"
|
||||
VERBATIM
|
||||
USES_TERMINAL
|
||||
)
|
||||
endforeach()
|
||||
|
||||
###############################################################################
|
||||
# Different C++ Standards.
|
||||
###############################################################################
|
||||
@@ -406,61 +440,6 @@ add_custom_target(ci_test_clang_sanitizer
|
||||
COMMENT "Compile and test with sanitizers"
|
||||
)
|
||||
|
||||
###############################################################################
|
||||
# Check if header is amalgamated and sources are properly indented.
|
||||
###############################################################################
|
||||
|
||||
# Same file set as .github/workflows/check_amalgamation.yml, so this CMake target (which can be run locally) is held
|
||||
# to the same standard as the workflow (which runs for pull requests and for pushes to develop/master/release/*).
|
||||
file(GLOB_RECURSE INDENT_FILES
|
||||
${PROJECT_SOURCE_DIR}/docs/mkdocs/docs/examples/*.hpp
|
||||
${PROJECT_SOURCE_DIR}/docs/mkdocs/docs/examples/*.cpp
|
||||
${PROJECT_SOURCE_DIR}/docs/mkdocs/docs/examples/*.cu
|
||||
${PROJECT_SOURCE_DIR}/include/*.hpp
|
||||
${PROJECT_SOURCE_DIR}/include/*.cpp
|
||||
${PROJECT_SOURCE_DIR}/include/*.cu
|
||||
${PROJECT_SOURCE_DIR}/tests/*.hpp
|
||||
${PROJECT_SOURCE_DIR}/tests/*.cpp
|
||||
${PROJECT_SOURCE_DIR}/tests/*.cu
|
||||
)
|
||||
list(FILTER INDENT_FILES EXCLUDE REGEX "/tests/thirdparty/|/tests/abi/include/nlohmann/")
|
||||
|
||||
set(include_dir ${PROJECT_SOURCE_DIR}/single_include/nlohmann)
|
||||
set(tool_dir ${PROJECT_SOURCE_DIR}/tools/amalgamate)
|
||||
add_custom_target(ci_test_amalgamation
|
||||
COMMAND rm -fr ${include_dir}/json.hpp~ ${include_dir}/json_fwd.hpp~ ${include_dir}/json_literals.hpp~ ${include_dir}/json_view.hpp~
|
||||
COMMAND cp ${include_dir}/json.hpp ${include_dir}/json.hpp~
|
||||
COMMAND cp ${include_dir}/json_fwd.hpp ${include_dir}/json_fwd.hpp~
|
||||
COMMAND cp ${include_dir}/json_literals.hpp ${include_dir}/json_literals.hpp~
|
||||
COMMAND cp ${include_dir}/json_view.hpp ${include_dir}/json_view.hpp~
|
||||
COMMAND cp ${PROJECT_SOURCE_DIR}/BUILD.bazel ${PROJECT_SOURCE_DIR}/BUILD.bazel~
|
||||
|
||||
COMMAND ${Python3_EXECUTABLE} -mvenv venv_astyle
|
||||
COMMAND venv_astyle/bin/pip3 --quiet install -r ${CMAKE_SOURCE_DIR}/tools/astyle/requirements.txt
|
||||
COMMAND venv_astyle/bin/astyle --version
|
||||
|
||||
COMMAND ${Python3_EXECUTABLE} ${tool_dir}/amalgamate.py -c ${tool_dir}/config_json.json -s .
|
||||
COMMAND ${Python3_EXECUTABLE} ${tool_dir}/amalgamate.py -c ${tool_dir}/config_json_fwd.json -s .
|
||||
COMMAND cp ${PROJECT_SOURCE_DIR}/include/nlohmann/json_literals.hpp ${include_dir}/json_literals.hpp
|
||||
COMMAND ${Python3_EXECUTABLE} ${tool_dir}/amalgamate.py -c ${tool_dir}/config_json_view.json -s .
|
||||
COMMAND venv_astyle/bin/astyle --project=tools/astyle/.astylerc --suffix=none ${include_dir}/json.hpp ${include_dir}/json_fwd.hpp ${include_dir}/json_literals.hpp ${include_dir}/json_view.hpp
|
||||
COMMAND ${CMAKE_COMMAND} -P ${PROJECT_SOURCE_DIR}/cmake/scripts/gen_bazel_build_file.cmake
|
||||
|
||||
COMMAND diff ${include_dir}/json.hpp~ ${include_dir}/json.hpp
|
||||
COMMAND diff ${include_dir}/json_fwd.hpp~ ${include_dir}/json_fwd.hpp
|
||||
COMMAND diff ${include_dir}/json_literals.hpp~ ${include_dir}/json_literals.hpp
|
||||
COMMAND diff ${include_dir}/json_view.hpp~ ${include_dir}/json_view.hpp
|
||||
COMMAND diff ${PROJECT_SOURCE_DIR}/BUILD.bazel~ ${PROJECT_SOURCE_DIR}/BUILD.bazel
|
||||
|
||||
COMMAND venv_astyle/bin/astyle --project=tools/astyle/.astylerc --suffix=orig ${INDENT_FILES}
|
||||
COMMAND for FILE in `find . -name '*.orig'`\; do false \; done
|
||||
|
||||
COMMAND rm -f ${include_dir}/json.hpp~ ${include_dir}/json_fwd.hpp~ ${include_dir}/json_literals.hpp~ ${include_dir}/json_view.hpp~ ${PROJECT_SOURCE_DIR}/BUILD.bazel~
|
||||
|
||||
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
||||
COMMENT "Check amalgamation, formatting, and BUILD.bazel"
|
||||
)
|
||||
|
||||
###############################################################################
|
||||
# Build and test using the amalgamated header
|
||||
###############################################################################
|
||||
@@ -692,19 +671,6 @@ else()
|
||||
)
|
||||
endif()
|
||||
|
||||
###############################################################################
|
||||
# Benchmarks
|
||||
###############################################################################
|
||||
|
||||
add_custom_target(ci_benchmarks
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-DCMAKE_BUILD_TYPE=Release -GNinja
|
||||
-S${PROJECT_SOURCE_DIR}/tests/benchmarks -B${PROJECT_BINARY_DIR}/build_benchmarks
|
||||
COMMAND ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR}/build_benchmarks --target json_benchmarks
|
||||
COMMAND cd ${PROJECT_BINARY_DIR}/build_benchmarks && ./json_benchmarks
|
||||
COMMENT "Run benchmarks"
|
||||
)
|
||||
|
||||
###############################################################################
|
||||
# CMake flags
|
||||
###############################################################################
|
||||
@@ -965,12 +931,3 @@ add_custom_target(ci_test_documentation_mermaid
|
||||
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/docs/mkdocs
|
||||
COMMENT "Check the Mermaid diagrams of the documentation"
|
||||
)
|
||||
|
||||
###############################################################################
|
||||
# Clean up all generated files.
|
||||
###############################################################################
|
||||
|
||||
add_custom_target(ci_clean
|
||||
COMMAND rm -fr ${PROJECT_BINARY_DIR}/build_* ${PROJECT_BINARY_DIR}/cmake-3.5.0 ${PROJECT_BINARY_DIR}/cmake-3.31.6 ${PROJECT_BINARY_DIR}/cmake-4.0.0 ${JSON_CMAKE_FLAG_BUILD_DIRS} ${single_binaries}
|
||||
COMMENT "Clean generated directories"
|
||||
)
|
||||
@@ -1 +1 @@
|
||||
semgrep==1.184.0
|
||||
semgrep==1.185.0
|
||||
@@ -79,7 +79,14 @@ basic_json(basic_json&& other) noexcept;
|
||||
(e.g., `json j = std::move(vec);` or `json j(std::vector<std::string>{...});`), the elements are moved into
|
||||
the JSON value instead of copied. Afterwards, the elements of the source container are in a valid but
|
||||
unspecified state (**moved-from**). Keys of associative containers are `const` and therefore still copied.
|
||||
Lvalues and `const` rvalues are copied, and the source is left unchanged.
|
||||
Lvalues and `const` rvalues are copied, and the source is left unchanged. Only containers that own their
|
||||
elements are moved from, that is, containers whose elements are `const` when accessed through a `const`
|
||||
container. Non-owning ranges such as spans or iterator ranges (e.g., `gsl::span`, `std::span`) are copied, so
|
||||
converting an rvalue span leaves the referenced elements unchanged.
|
||||
A user-defined type whose elements are `const` through a `const` object, but which does not own them alone,
|
||||
is treated as owning: a view, or a handle that shares its storage with other handles (e.g., a wrapper of a
|
||||
`std::shared_ptr<std::vector<T>>`) and does not copy it before giving non-`const` access. Moving from such
|
||||
an rvalue changes the elements seen through the other handles; pass it as an lvalue to copy the elements.
|
||||
- **numbers**: [`number_integer_t`](number_integer_t.md), [`number_unsigned_t`](number_unsigned_t.md),
|
||||
[`number_float_t`](number_float_t.md), and all convertible number types such as `int`, `size_t`, `int64_t`, `float`
|
||||
or `double` can be used.
|
||||
@@ -265,7 +272,9 @@ basic_json(basic_json&& other) noexcept;
|
||||
4. Depends on the called constructor. For types directly supported by the library (i.e., all types for which no
|
||||
`to_json()` function was provided), a strong guarantee holds: if an exception is thrown, there are no changes to any
|
||||
JSON value.
|
||||
5. Strong guarantee: if an exception is thrown, there are no changes to any JSON value.
|
||||
5. Strong guarantee: if an exception is thrown, there are no changes to any JSON value. Values that are moved into
|
||||
`init` (e.g., `a` in `#!cpp json::object({std::move(a), 5})`) are moved when the initializer list is created,
|
||||
before the constructor runs, and stay moved-from if it throws.
|
||||
6. Strong guarantee: if an exception is thrown, there are no changes to any JSON value.
|
||||
7. Strong guarantee: if an exception is thrown, there are no changes to any JSON value.
|
||||
8. Strong guarantee: if an exception is thrown, there are no changes to any JSON value.
|
||||
|
||||
@@ -58,7 +58,9 @@ is not UTF-8 encoded and `error_handler` is set to `strict`
|
||||
|
||||
## Complexity
|
||||
|
||||
Linear.
|
||||
Linear in the size of the result. With an `indent`, every line starts with up to `indent` characters per nesting level,
|
||||
so the result can be larger than the value by a factor of its nesting depth (see
|
||||
[Parsing untrusted input](../../features/parsing/untrusted_input.md#nesting-depth)).
|
||||
|
||||
## Notes
|
||||
|
||||
|
||||
@@ -26,10 +26,12 @@ void erase(const size_type idx);
|
||||
|
||||
If called on a primitive type other than `#!json null`, the resulting JSON value will be `#!json null`.
|
||||
|
||||
2. Remove an element range specified by `[first; last)` from a JSON value. The iterator `first` does not need to be
|
||||
dereferenceable if `first == last`: erasing an empty range is a no-op.
|
||||
2. Remove an element range specified by `[first; last)` from a JSON value. For arrays and objects, the iterator `first`
|
||||
does not need to be dereferenceable if `first == last`: erasing an empty range is a no-op.
|
||||
|
||||
If called on a primitive type other than `#!json null`, the resulting JSON value will be `#!json null`.
|
||||
If called on a primitive type other than `#!json null`, the range must be `[begin(); end())`, and the resulting JSON
|
||||
value will be `#!json null`. Any other range, including the empty ranges `[begin(); begin())` and
|
||||
`[end(); end())`, throws [`invalid_iterator.204`](../../home/exceptions.md#jsonexceptioninvalid_iterator204).
|
||||
|
||||
3. Removes an element from a JSON object by key.
|
||||
|
||||
@@ -93,8 +95,8 @@ Strong exception safety: if an exception occurs, the original value stays intact
|
||||
- Throws [`invalid_iterator.203`](../../home/exceptions.md#jsonexceptioninvalid_iterator203) if called on iterators
|
||||
which does not belong to the current JSON value; example: `"iterators do not fit current value"`
|
||||
- Throws [`invalid_iterator.204`](../../home/exceptions.md#jsonexceptioninvalid_iterator204) if called on a
|
||||
primitive type with invalid iterators (i.e., if `first != begin()` and `last != end()`); example: `"iterators out
|
||||
of range"`
|
||||
primitive type with invalid iterators (i.e., if `first != begin()` or `last != end()`, which includes the empty
|
||||
ranges `[begin(); begin())` and `[end(); end())`); example: `"iterators out of range"`
|
||||
3. The function can throw the following exceptions:
|
||||
- Throws [`type_error.307`](../../home/exceptions.md#jsonexceptiontype_error307) when called on a type other than
|
||||
JSON object; example: `"cannot use erase() with null"`
|
||||
|
||||
@@ -18,7 +18,8 @@ Strong exception safety: if an exception occurs, the original value stays intact
|
||||
|
||||
## Complexity
|
||||
|
||||
Linear in the size of the JSON value.
|
||||
Linear in the size of the result. Every key repeats the path of its value, so the keys can be larger than the value by a
|
||||
factor of its nesting depth (see [Parsing untrusted input](../../features/parsing/untrusted_input.md#nesting-depth)).
|
||||
|
||||
## Notes
|
||||
|
||||
|
||||
@@ -69,8 +69,10 @@ Strong guarantee: if an exception is thrown, there are no changes in the JSON va
|
||||
|
||||
## Exceptions
|
||||
|
||||
- Throws [parse_error.110](../../home/exceptions.md#jsonexceptionparse_error110) if the given input ends prematurely or
|
||||
the end of the file was not reached when `strict` was set to true
|
||||
- Throws [parse_error.110](../../home/exceptions.md#jsonexceptionparse_error110) if the given input ends prematurely,
|
||||
if the end of the file was not reached when `strict` was set to true, or if a string at the end of the value is not
|
||||
terminated by 0xFF although a byte follows it (also when `strict` is false: the byte that ends the string is
|
||||
taken from the input, so the next value would be lost)
|
||||
- Throws [parse_error.112](../../home/exceptions.md#jsonexceptionparse_error112) if a parse error occurs, for instance
|
||||
an invalid byte, a string that is not valid UTF-8, or an object key that is not a string
|
||||
|
||||
|
||||
@@ -18,7 +18,9 @@ JSON object value
|
||||
|
||||
## Exception safety
|
||||
|
||||
Strong guarantee: if an exception is thrown, there are no changes in the JSON value.
|
||||
Strong guarantee: if an exception is thrown, there are no changes in the JSON value. Values that are moved into `init`
|
||||
(e.g., `a` in `#!cpp json::object({std::move(a), 5})`) are moved when the initializer list is created, before this
|
||||
function runs, and stay moved-from if it throws.
|
||||
|
||||
## Exceptions
|
||||
|
||||
|
||||
@@ -2,12 +2,21 @@
|
||||
|
||||
```cpp
|
||||
namespace std {
|
||||
void swap(nlohmann::basic_json& j1, nlohmann::basic_json& j2);
|
||||
void swap(nlohmann::basic_json& j1, nlohmann::basic_json& j2) noexcept(
|
||||
is_nothrow_move_constructible<nlohmann::basic_json>::value &&
|
||||
is_nothrow_move_assignable<nlohmann::basic_json>::value
|
||||
);
|
||||
}
|
||||
```
|
||||
|
||||
Exchanges the values of two JSON objects.
|
||||
|
||||
This specialization is only provided before C++20, which no longer allows specializing function templates in
|
||||
namespace `std`. With C++20 (and in generic code with any standard), use the idiom `#!cpp using std::swap; swap(j1, j2);`: it finds
|
||||
the [`swap`](swap.md) friend function (overload 2) by argument-dependent lookup. A qualified `#!cpp std::swap(j1, j2)`
|
||||
still compiles with C++20, but uses the generic `std::swap`, which swaps by three moves instead of exchanging the
|
||||
contents.
|
||||
|
||||
## Parameters
|
||||
|
||||
`j1` (in, out)
|
||||
@@ -18,7 +27,9 @@ Exchanges the values of two JSON objects.
|
||||
|
||||
## Exception safety
|
||||
|
||||
No-throw guarantee: this function never throws exceptions.
|
||||
No-throw guarantee if the `noexcept` condition above holds: it holds unless moving the
|
||||
[`json_base_class_t`](json_base_class_t.md) can throw. With the default base class, this function never throws
|
||||
exceptions.
|
||||
|
||||
## Complexity
|
||||
|
||||
@@ -57,3 +68,4 @@ void swap(nlohmann::basic_json& j1, nlohmann::basic_json& j2)
|
||||
|
||||
- Added in version 1.0.0.
|
||||
- Extended for arbitrary basic_json types in version 3.10.5.
|
||||
- Not provided with C++20 since version 3.9.0.
|
||||
@@ -75,8 +75,12 @@ void swap(typename binary_t::container_type& other);
|
||||
|
||||
## Exception safety
|
||||
|
||||
1. No-throw guarantee: this function never throws exceptions.
|
||||
2. No-throw guarantee: this function never throws exceptions.
|
||||
1. No-throw guarantee if the `noexcept` condition above holds: it holds unless moving the
|
||||
[`json_base_class_t`](json_base_class_t.md) can throw (moving the type tag and the stored value never throws).
|
||||
With the default base class, this function never throws exceptions.
|
||||
2. No-throw guarantee if the `noexcept` condition above holds: it holds unless moving the
|
||||
[`json_base_class_t`](json_base_class_t.md) can throw (moving the type tag and the stored value never throws).
|
||||
With the default base class, this function never throws exceptions.
|
||||
3. Strong guarantee: if an exception is thrown, there are no changes to any JSON value.
|
||||
4. Strong guarantee: if an exception is thrown, there are no changes to any JSON value.
|
||||
5. Strong guarantee: if an exception is thrown, there are no changes to any JSON value.
|
||||
@@ -85,8 +89,8 @@ void swap(typename binary_t::container_type& other);
|
||||
|
||||
## Exceptions
|
||||
|
||||
1. No-throw guarantee: this function never throws exceptions.
|
||||
2. No-throw guarantee: this function never throws exceptions.
|
||||
1. Throws only what moving the [`json_base_class_t`](json_base_class_t.md) throws; nothing with the default base class.
|
||||
2. Throws only what moving the [`json_base_class_t`](json_base_class_t.md) throws; nothing with the default base class.
|
||||
3. Throws [`type_error.310`](../../home/exceptions.md#jsonexceptiontype_error310) if called on JSON values other than
|
||||
arrays; example: `"cannot use swap(array_t&) with boolean"`
|
||||
4. Throws [`type_error.310`](../../home/exceptions.md#jsonexceptiontype_error310) if called on JSON values other than
|
||||
|
||||
@@ -57,7 +57,8 @@ Strong guarantee: if an exception is thrown, there are no changes in the JSON va
|
||||
## Exceptions
|
||||
|
||||
- Throws [`other_error.502`](../../home/exceptions.md#jsonexceptionother_error502) if `use_type` is true and `use_size`
|
||||
is false, and `j` contains a non-empty array, object, or binary value.
|
||||
is false, and `j` contains a non-empty array, object, or binary value. Scalars and empty arrays, objects, or binary
|
||||
values do not throw.
|
||||
- Throws [type_error.316](../../home/exceptions.md#jsonexceptiontype_error316) if a string or object key in `j` is
|
||||
not valid UTF-8 and `error_handler` is `strict` (the default only if
|
||||
[`JSON_STRICT_BINARY_UTF8`](../macros/json_strict_binary_utf8.md) is enabled)
|
||||
|
||||
@@ -26,7 +26,8 @@ The function can throw the following exceptions:
|
||||
- Throws [`type_error.314`](../../home/exceptions.md#jsonexceptiontype_error314) if value is not an object
|
||||
- Throws [`type_error.315`](../../home/exceptions.md#jsonexceptiontype_error315) if object values are not primitive
|
||||
- Throws [`type_error.313`](../../home/exceptions.md#jsonexceptiontype_error313) if a key (JSON pointer) leads to a
|
||||
conflicting nesting; example: `"invalid value to unflatten"`
|
||||
conflicting nesting, for example if a key with a value other than `#!json null` is a prefix of another key (as `/a`
|
||||
and `/a/b`), in whichever order the keys come; example: `"invalid value to unflatten"`
|
||||
- Throws [`parse_error.106`](../../home/exceptions.md#jsonexceptionparse_error106) if an array index in a key begins
|
||||
with '0'; example: `"array index '01' must not begin with '0'"`
|
||||
- Throws [`parse_error.107`](../../home/exceptions.md#jsonexceptionparse_error107) if a key is not empty and does not
|
||||
@@ -90,3 +91,6 @@ Apart from these three cases, for a JSON value `j`, the following is always true
|
||||
- Throws [`parse_error.109`](../../home/exceptions.md#jsonexceptionparse_error109) instead of
|
||||
[`out_of_range.404`](../../home/exceptions.md#jsonexceptionout_of_range404) for a one-character array index that is
|
||||
not a digit (e.g., `/x`) in version 3.13.0, as it already did for longer ones.
|
||||
- Throws [`type_error.313`](../../home/exceptions.md#jsonexceptiontype_error313) for a key that is a prefix of an
|
||||
earlier key in version 3.13.0; before, an object type that keeps the insertion order (such as
|
||||
[`ordered_json`](../ordered_json.md)) silently replaced the nested value.
|
||||
@@ -66,7 +66,8 @@ has `erase`; calling it on a read-only `basic_json_document` fails to compile (`
|
||||
[`parse_error.106`](../../home/exceptions.md#jsonexceptionparse_error106) (a leading `#!cpp '0'`),
|
||||
[`parse_error.109`](../../home/exceptions.md#jsonexceptionparse_error109) (not a number),
|
||||
[`out_of_range.410`](../../home/exceptions.md#jsonexceptionout_of_range410) (too large for `size_type`), or
|
||||
[`out_of_range.404`](../../home/exceptions.md#jsonexceptionout_of_range404) (an empty token); otherwise (an
|
||||
[`out_of_range.404`](../../home/exceptions.md#jsonexceptionout_of_range404) (an empty token, or the token
|
||||
`#!cpp "-"`, which never names an existing element); otherwise (an
|
||||
object, or a primitive value the pointer's parent resolves to) throws what 1. throws.
|
||||
|
||||
Overloads 1. and 2. also throw [`invalid_iterator.202`](../../home/exceptions.md#jsonexceptioninvalid_iterator202)
|
||||
|
||||
@@ -100,7 +100,8 @@ points apply to every edit:
|
||||
[`root()`](root.md). New values (and the element sequences of an edited array/object) go to storage owned by the
|
||||
document, allocated on demand.
|
||||
- **A view keeps referring to the same value.** After [`set`](set.md) replaces the value a view refers to, that view
|
||||
sees the new value; a view of a value that a later edit replaces or drops keeps showing what it last held. An edit
|
||||
sees the new value; a view of a value that a later edit replaces or drops keeps showing what it last held. Such a
|
||||
view can still be edited: the edit changes only that detached value, never anything reachable from `root()`. An edit
|
||||
of an array or object, however, **invalidates the iterators taken over it** (its members may now live in a
|
||||
different sequence), and a string obtained with [`get_string()`](../basic_json_view/get_string.md) stays valid even
|
||||
as further edits happen (earlier buffers of edited text are kept alive, not overwritten).
|
||||
|
||||
@@ -164,7 +164,9 @@ general.
|
||||
The same switch happens, for the same reason, when overload 1. replaces a multi-node array/object value with a
|
||||
scalar: the *parent's* element sequence is what has to switch to links, not `target` itself, because the parent
|
||||
originally stepped over `target`'s whole subtree by its node count, which no longer applies once `target` is a
|
||||
one-node scalar.
|
||||
one-node scalar. This also holds when `target` is no longer part of the document (an edit erased or replaced it, or
|
||||
a value that contains it): if the container that `target` was in still uses its parsed layout, it switches to links
|
||||
(otherwise nothing steps over `target` any more), and only the dropped values change.
|
||||
|
||||
## Examples
|
||||
|
||||
|
||||
@@ -62,10 +62,9 @@ view.
|
||||
|
||||
!!! info "Overload 2 never throws"
|
||||
|
||||
Unlike [`BasicJsonType::contains(const json_pointer&)`](../basic_json/contains.md), which can throw for certain
|
||||
malformed pointers (for instance an empty array-index reference token), overload 2 never throws: a missing key,
|
||||
an out-of-range or malformed array index, a `#!cpp "-"` index, or a reference token used on a primitive all
|
||||
simply make it return `#!cpp false`.
|
||||
Like [`BasicJsonType::contains(const json_pointer&)`](../basic_json/contains.md), overload 2 never throws: a
|
||||
missing key, an out-of-range or malformed array index, a `#!cpp "-"` index, or a reference token used on a
|
||||
primitive all simply make it return `#!cpp false`.
|
||||
|
||||
## Examples
|
||||
|
||||
|
||||
@@ -27,9 +27,10 @@ for (const auto [key, value] : v.items())
|
||||
}
|
||||
```
|
||||
|
||||
Note the `#!cpp const auto` (by value), not `#!cpp const auto&`: unlike `BasicJsonType::items()`, whose elements are
|
||||
references into an existing object, a view's `item` is produced on the fly for each step of the iteration, so there
|
||||
is nothing for a reference to bind to.
|
||||
Taking `item` by value (`#!cpp const auto`) is recommended: unlike `BasicJsonType::items()`, whose elements are
|
||||
references into an existing object, a view's `item` is produced on the fly for each step of the iteration and is
|
||||
cheap to copy. A `#!cpp const auto&` (as in the first snippet) also works, as it binds to that temporary, but a
|
||||
non-const `#!cpp auto&` does not compile.
|
||||
|
||||
## Return value
|
||||
|
||||
|
||||
@@ -7,6 +7,10 @@ bool operator==(const basic_json_view& lhs, const basic_json_view& rhs);
|
||||
// (2)
|
||||
bool operator==(const basic_json_view& lhs, const BasicJsonType& rhs);
|
||||
bool operator==(const BasicJsonType& lhs, const basic_json_view& rhs);
|
||||
|
||||
// (3)
|
||||
template<view_mode M>
|
||||
bool operator==(const basic_json_view& lhs, const basic_json_view<BasicJsonType, M>& rhs);
|
||||
```
|
||||
|
||||
1. Compares two views for equality: whether the values [`BasicJsonType::parse()`](../basic_json/parse.md) would
|
||||
@@ -14,8 +18,12 @@ bool operator==(const BasicJsonType& lhs, const basic_json_view& rhs);
|
||||
2. Compares a view and a `BasicJsonType` value for equality, in either order: whether the value `parse()` would
|
||||
produce for the view and the other operand are equal, according to `BasicJsonType`'s
|
||||
[`operator==`](../basic_json/operator_eq.md).
|
||||
3. Like overload 1, for two views of the same `BasicJsonType` but of different [view modes](../view_mode.md), in
|
||||
either order: a view of a read-only document (such as a [`json_view`](../json_view.md)) and a view of an editable
|
||||
document (such as a [`json_editable_view`](../json_editable_view.md)). This overload only takes part in overload
|
||||
resolution if `M` is not the mode of `lhs`.
|
||||
|
||||
Neither overload builds a `BasicJsonType` value for a view to do the comparison (see [Notes](#notes) below). Numbers
|
||||
No overload builds a `BasicJsonType` value for a view to do the comparison (see [Notes](#notes) below). Numbers
|
||||
compare by value across their types (`#!cpp 1 == 1.0`), and an object compares by its members, with duplicate keys
|
||||
resolved exactly as `parse()` resolves them — the last value, at the position of the first occurrence of the key.
|
||||
This is not what [`operator[]`](operator[].md) and the other lookups return for a duplicate key: they find the *first*
|
||||
|
||||
@@ -7,11 +7,17 @@ bool operator!=(const basic_json_view& lhs, const basic_json_view& rhs);
|
||||
// (2)
|
||||
bool operator!=(const basic_json_view& lhs, const BasicJsonType& rhs);
|
||||
bool operator!=(const BasicJsonType& lhs, const basic_json_view& rhs);
|
||||
|
||||
// (3)
|
||||
template<view_mode M>
|
||||
bool operator!=(const basic_json_view& lhs, const basic_json_view<BasicJsonType, M>& rhs);
|
||||
```
|
||||
|
||||
1. Compares two views for inequality. Returns `#!cpp !(lhs == rhs)`, see [operator==](operator_eq.md).
|
||||
2. Compares a view and a `BasicJsonType` value for inequality, in either order. Returns `#!cpp !(lhs == rhs)` (or,
|
||||
for the reversed order, `#!cpp !(rhs == lhs)`), see [operator==](operator_eq.md).
|
||||
3. Compares a read-only and an editable view of the same `BasicJsonType` for inequality, in either order. Returns
|
||||
`#!cpp !(lhs == rhs)`, see [operator==](operator_eq.md).
|
||||
|
||||
Since `operator!=` is defined as the negation of [`operator==`](operator_eq.md), it follows the same rules for
|
||||
special cases: for instance, since a [discarded](is_discarded.md) view is never equal to anything by default (see
|
||||
|
||||
@@ -15,6 +15,10 @@ materializing anything.
|
||||
- `#!cpp static_cast<std::size_t>(-1)` for a [discarded](is_discarded.md) view, and for a string that contains
|
||||
escapes — such a string was decoded once into the document's own buffer, so there is no single byte range in
|
||||
`source()` left to point at.
|
||||
- `#!cpp static_cast<std::size_t>(-1)` in an [editable document](../json_editable_document.md) for a value written
|
||||
by an edit ([`set`](../basic_json_document/set.md), [`push_back`](../basic_json_document/push_back.md),
|
||||
[`insert`](../basic_json_document/insert.md)), and for an array or object whose elements an edit added or removed.
|
||||
The values an edit did not touch keep their offsets.
|
||||
|
||||
## Exception safety
|
||||
|
||||
|
||||
@@ -8,8 +8,9 @@ using json_editable_document = basic_json_document<json, view_mode::editable>;
|
||||
|
||||
This type is an **editable** [`basic_json_document`](basic_json_document/index.md) of the default
|
||||
[`json`](json.md) specialization: in addition to everything [`json_document`](json_document.md) offers,
|
||||
[`set`](basic_json_document/set.md) and [`push_back`](basic_json_document/push_back.md) change values after
|
||||
parsing, without ever rewriting the source text — see [Edits](basic_json_document/index.md#edits) and
|
||||
[`set`](basic_json_document/set.md), [`push_back`](basic_json_document/push_back.md),
|
||||
[`insert`](basic_json_document/insert.md), and [`erase`](basic_json_document/erase.md) change values after parsing,
|
||||
without ever rewriting the source text — see [Edits](basic_json_document/index.md#edits) and
|
||||
[Editing a document](../features/json_view/editing.md).
|
||||
|
||||
## Examples
|
||||
|
||||
@@ -9,7 +9,8 @@ using json_editable_view = basic_json_view<json, view_mode::editable>;
|
||||
This type is a [`basic_json_view`](basic_json_view/index.md) of a value of a
|
||||
[`json_editable_document`](json_editable_document.md). It offers the same read-only interface as
|
||||
[`json_view`](json_view.md); what is different is what it can be a view *of* — a value that
|
||||
[`set`](basic_json_document/set.md) and [`push_back`](basic_json_document/push_back.md) can change, with every view
|
||||
[`set`](basic_json_document/set.md), [`push_back`](basic_json_document/push_back.md),
|
||||
[`insert`](basic_json_document/insert.md), and [`erase`](basic_json_document/erase.md) can change, with every view
|
||||
still referring to it seeing the change, see [Edits](basic_json_document/index.md#edits).
|
||||
|
||||
## Examples
|
||||
|
||||
@@ -47,11 +47,9 @@ Therefore, assertions can be switched off by defining `NDEBUG`.
|
||||
}
|
||||
```
|
||||
|
||||
Output:
|
||||
|
||||
```
|
||||
Assertion failed: (m_value.object->find(key) != m_value.object->end()), function operator[], file json.hpp, line 2144.
|
||||
```
|
||||
The assertion `#!cpp it != m_data.m_value.object->end()` fails in `#!cpp operator[]`.
|
||||
The exact diagnostic format, source filename, and line number depend on the platform,
|
||||
library version, and whether the single-header or multi-header version is used.
|
||||
|
||||
??? example "Example: user-defined behavior"
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ comparison of two [`json_view`](../basic_json_view/index.md) documents has a fix
|
||||
and does not depend on it either.
|
||||
|
||||
The call stack that these operations need grows with the limit: roughly *a few kilobytes plus a cost per level times the
|
||||
limit*, where the cost per level is up to about 2.3 KiB in an unoptimized and up to about 0.5 KiB in an optimized build
|
||||
limit*, where the cost per level is up to about 1.8 KiB in an unoptimized and up to about 0.5 KiB in an optimized build
|
||||
(see [Stack needed](#stack-needed)). The default of `128` levels is tuned for threads with ordinary stacks of a few
|
||||
hundred kilobytes or more. Set a lower limit if your threads have small stacks (RTOS tasks, fibers, threads of the musl
|
||||
C
|
||||
@@ -67,7 +67,7 @@ When the macro is not defined, the library defines it to its default value.
|
||||
the levels that are descended into are counted, so the count never exceeds the limit, not even when user code (a
|
||||
copy constructor of a custom base class, say) copies a value while a copy is going on. A byte holds `255` at
|
||||
most, and the limit stays below that, so that the count cannot wrap around. (More levels would hardly be
|
||||
useful: `254` levels need up to 576 KiB of stack in an unoptimized build already, twice as much as the
|
||||
useful: `254` levels need up to 448 KiB of stack in an unoptimized build already, twice as much as the
|
||||
default.)
|
||||
|
||||
### Stack needed
|
||||
@@ -83,7 +83,7 @@ Unoptimized (`-O0`):
|
||||
|
||||
| Operation | limit 16 | limit 32 | limit 64 | limit 128 | limit 254 |
|
||||
|---|---:|---:|---:|---:|---:|
|
||||
| `dump()` and `dump(indent)`, `operator<<` | 48 / 32 | 80 / 64 | 144 / 128 | 288 / 256 | 576 / 512 |
|
||||
| `dump()` and `dump(indent)`, `operator<<` | 16 / 16 | 16 / 16 | 32 / 32 | 48 / 48 | 96 / 96 |
|
||||
| copy construction and assignment | 32 / 16 | 48 / 32 | 112 / 80 | 224 / 144 | 432 / 304 |
|
||||
| `==` | 16 / 16 | 16 / 16 | 16 / 16 | 48 / 32 | 96 / 48 |
|
||||
| `<=>` (C++20) | 16 / 16 | 16 / 16 | 32 / 32 | 64 / 64 | 144 / 128 |
|
||||
@@ -123,23 +123,24 @@ The rule of thumb is
|
||||
|
||||
> stack needed ≈ a few KiB + cost per level × limit
|
||||
|
||||
with a cost per level of up to 2.3 KiB (`dump` at `-O0` with Clang; 2.1 KiB with GCC), 1.7 KiB for copying and merging
|
||||
(1.3 KiB with GCC), and 0.1 to 0.5 KiB for most other operations at `-O0`; and 0.5 KiB or less at `-O2`. The numbers
|
||||
come from the difference between the limits `128` and `254` in the tables, so they are rough: other compilers,
|
||||
other targets (the frames of x86-64 code are about as large), other standard libraries, `JSON_DIAGNOSTICS`, and
|
||||
sanitizers change them. Measure with your own tool chain (see the example below) rather than relying on the tables.
|
||||
The stack that your own code and the operating system need comes on top of these numbers.
|
||||
with a cost per level of up to 1.8 KiB (conversion to another `basic_json` type at `-O0` with Clang; 1.3 KiB with
|
||||
GCC), 1.7 KiB for copying and merging (1.3 KiB with GCC), 0.4 KiB for `dump`, and 0.1 to 0.5 KiB for most other
|
||||
operations at `-O0`; and 0.5 KiB or less at `-O2`. The numbers come from the difference between the limits `128` and
|
||||
`254` in the tables, so they are rough: other compilers, other targets (the frames of x86-64 code are about as large),
|
||||
other standard libraries, `JSON_DIAGNOSTICS`, and sanitizers change them. Measure with your own tool chain (see the
|
||||
example below) rather than relying on the tables. The stack that your own code and the operating system need comes on
|
||||
top of these numbers.
|
||||
|
||||
Which limit to choose, for the stack that you can spare for the library (the largest limit of those measured
|
||||
for which the slowest operation needs at most that much):
|
||||
|
||||
| Stack for the library | optimized (`-O2`) | unoptimized (`-O0`) |
|
||||
|---|---:|---:|
|
||||
| 32 KiB | 64 | 0 |
|
||||
| 64 KiB | 128 | 16 |
|
||||
| 128 KiB (the default stack of threads on musl) | 254 | 32 |
|
||||
| 256 KiB | 254 | 64 |
|
||||
| 512 KiB | 254 | 128 |
|
||||
| 32 KiB | 64 | 16 |
|
||||
| 64 KiB | 128 | 32 |
|
||||
| 128 KiB (the default stack of threads on musl) | 254 | 64 |
|
||||
| 256 KiB | 254 | 128 |
|
||||
| 512 KiB | 254 | 254 |
|
||||
| 1 MiB or more | 254 | 254 |
|
||||
|
||||
### Speed
|
||||
|
||||
@@ -171,7 +171,7 @@ See the examples below for the concrete generated code.
|
||||
|
||||
The macro is equivalent to:
|
||||
|
||||
```cpp hl_lines="22 22 23 24 25 26 27 28"
|
||||
```cpp hl_lines="22 23 24 25 26 27 28"
|
||||
--8<-- "examples/nlohmann_define_type_intrusive_only_serialize_explicit.cpp"
|
||||
```
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ For further information please refer to the corresponding macros without `WITH_N
|
||||
|
||||
The macro is equivalent to:
|
||||
|
||||
```cpp hl_lines="16 17 18 19 20 21 22 23 24 25 26 27 28"
|
||||
```cpp hl_lines="16 17 18 19 20 21 22 23 24 25 26 27 28 29 30"
|
||||
--8<-- "examples/nlohmann_define_type_non_intrusive_with_names_explicit.cpp"
|
||||
```
|
||||
|
||||
|
||||
@@ -89,19 +89,21 @@ This differs from `#!cpp std::map`, where the same operations are O(log n).
|
||||
!!! warning "Quadratic cost of building large objects"
|
||||
|
||||
Because every insertion scans all elements inserted so far, building an object of `n` distinct keys costs
|
||||
**O(n²)** in total. This applies to filling an [`ordered_json`](ordered_json.md) object key by key as well as to
|
||||
parsing one, since the parser inserts each key as it is read.
|
||||
**O(n²)** in total. This applies to filling an [`ordered_json`](ordered_json.md) object key by key (with
|
||||
`operator[]`, `emplace`, or `insert`) and, for now, to reading one with a binary reader such as
|
||||
[`from_cbor`](basic_json/from_cbor.md) ([#6104](https://github.com/nlohmann/json/issues/6104)). Parsing JSON text
|
||||
is not affected: the parser finds the keys of an object with many members in a hash table and takes linear time.
|
||||
|
||||
The cost is negligible for the object sizes typically found in configuration files or API payloads, but it grows
|
||||
steeply for machine-generated objects with many thousands of keys. Measured with `-O2 -DNDEBUG` for parsing a flat
|
||||
object of `n` keys, relative to `#!cpp nlohmann::json` (which uses `#!cpp std::map`):
|
||||
steeply for machine-generated objects with many thousands of keys. Measured with Apple clang 21, `-O2 -DNDEBUG`,
|
||||
arm64, for a flat object of `n` keys (best of seven runs):
|
||||
|
||||
| `n` | `json` | `ordered_json` | factor |
|
||||
|--------|--------|----------------|--------|
|
||||
| 2000 | 0.7 ms | 3.6 ms | 5× |
|
||||
| 4000 | 0.8 ms | 14.0 ms | 19× |
|
||||
| 8000 | 1.6 ms | 67.8 ms | 43× |
|
||||
| 16 000 | 3.3 ms | 181.6 ms | 54× |
|
||||
| `n` | `json::parse` | `ordered_json::parse` | `ordered_json`, key by key | `ordered_json::from_cbor` |
|
||||
|--------|---------------|-----------------------|----------------------------|---------------------------|
|
||||
| 2000 | 0.3 ms | 0.1 ms | 4.5 ms | 4.4 ms |
|
||||
| 4000 | 0.5 ms | 0.2 ms | 17.1 ms | 16.8 ms |
|
||||
| 8000 | 0.9 ms | 0.3 ms | 67.0 ms | 66.8 ms |
|
||||
| 16 000 | 2.0 ms | 0.7 ms | 282.4 ms | 282.4 ms |
|
||||
|
||||
If key order matters for objects of that size, consider a container with a lookup index, such as
|
||||
[`nlohmann::fifo_map`](https://github.com/nlohmann/fifo_map)
|
||||
|
||||
@@ -18,6 +18,10 @@ before including the `json.hpp` header.
|
||||
|
||||
## Function with runtime assertions
|
||||
|
||||
The examples below identify the failing assertion and the function containing it.
|
||||
The exact diagnostic format, source filename, and line number depend on the platform,
|
||||
library version, and whether the single-header or multi-header version is used.
|
||||
|
||||
### Unchecked access to a const value
|
||||
|
||||
Function [`operator[]`](../api/basic_json/operator%5B%5D.md) implements unchecked access for arrays and objects. Whereas
|
||||
@@ -46,11 +50,7 @@ See also the documentation on [element access](element_access/index.md).
|
||||
}
|
||||
```
|
||||
|
||||
Output:
|
||||
|
||||
```
|
||||
Assertion failed: (it != m_data.m_value.object->end()), function operator[], file json.hpp, line 28795.
|
||||
```
|
||||
The assertion `#!cpp it != m_data.m_value.object->end()` fails in `#!cpp operator[]`.
|
||||
|
||||
??? example "Example 2: Invalid array index in a JSON pointer"
|
||||
|
||||
@@ -69,11 +69,7 @@ See also the documentation on [element access](element_access/index.md).
|
||||
}
|
||||
```
|
||||
|
||||
Output:
|
||||
|
||||
```
|
||||
Assertion failed: (idx < m_data.m_value.array->size()), function operator[], file json.hpp, line 28758.
|
||||
```
|
||||
The assertion `#!cpp idx < ptr->m_data.m_value.array->size()` fails in `#!cpp get_unchecked`.
|
||||
|
||||
### Constructing from an uninitialized iterator range
|
||||
|
||||
@@ -96,11 +92,7 @@ uninitialized iterator is undefined behavior and yields a runtime assertion.
|
||||
}
|
||||
```
|
||||
|
||||
Output:
|
||||
|
||||
```
|
||||
Assertion failed: (m_object != nullptr), function operator++, file iter_impl.hpp, line 368.
|
||||
```
|
||||
The assertion `#!cpp first.m_object != nullptr` fails in `#!cpp basic_json`.
|
||||
|
||||
### Operations on uninitialized iterators
|
||||
|
||||
@@ -123,11 +115,7 @@ behavior and yields a runtime assertion.
|
||||
}
|
||||
```
|
||||
|
||||
Output:
|
||||
|
||||
```
|
||||
Assertion failed: (m_object != nullptr), function operator++, file iter_impl.hpp, line 368.
|
||||
```
|
||||
The assertion `#!cpp m_object != nullptr` fails in `#!cpp operator++`.
|
||||
|
||||
## Changes
|
||||
|
||||
|
||||
@@ -181,7 +181,10 @@ of the message are reported as [parse_error.110](../../home/exceptions.md#jsonex
|
||||
arrays and objects with up to four elements that are terminated by 0xFE, unsorted object keys, or a 0xFF after a
|
||||
string that would also end without it, are accepted. A second 0xFF is not a terminator but an empty string.
|
||||
|
||||
Strings must be valid UTF-8, and a string at the very end of a message must be terminated by 0xFF.
|
||||
Strings must be valid UTF-8, and a string at the very end of a message must be terminated by 0xFF. This also
|
||||
holds when `strict` is false and more data follows the value: the byte that would end the string belongs to the
|
||||
next value, and reading it would remove it from the input, so the missing 0xFF is reported as
|
||||
[parse_error.110](../../home/exceptions.md#jsonexceptionparse_error110).
|
||||
|
||||
Duplicate object keys are accepted; the last value wins (`ordered_json` keeps the position of the first occurrence).
|
||||
The specification does not say how to treat them; the HikoGUI reference decoder keeps the first value.
|
||||
|
||||
@@ -9,7 +9,19 @@ Importing the module instead of including the header reduces the compile time of
|
||||
## Requirements
|
||||
The `nlohmann.json` module requires that the build system is configured to build and resolve modules when imported. Obviously, as modules were introduced in C++20, this feature can only be used in C++20 and subsequent versions.
|
||||
|
||||
To enable building the `nlohmann.json` module (which is not done by default), the macro `NLOHMANN_JSON_BUILD_MODULES` must be passed to the build system.
|
||||
To enable building the `nlohmann.json` module (which is not done by default), set the CMake option
|
||||
[`NLOHMANN_JSON_BUILD_MODULES`](../integration/cmake.md#nlohmann_json_build_modules) and link the
|
||||
`nlohmann_json_modules` target.
|
||||
|
||||
With CMake, building the module needs:
|
||||
|
||||
- CMake 3.28 or newer, and
|
||||
- a generator that scans for modules: Ninja (1.11 or newer), Ninja Multi-Config, or Visual Studio 2022 or newer.
|
||||
|
||||
The example below also uses `import std;`. CMake supports it without experimental opt-in since version 4.5, and then
|
||||
only with the Ninja generators and these toolchains: Clang 18.1.2 or newer (with libc++ or libstdc++), MSVC toolset 14.36
|
||||
(Visual Studio 17.6) or newer, and GCC 15 or newer (GCC 16 on macOS). With older CMake versions, `import std;` needs
|
||||
CMake's version-specific experimental opt-in.
|
||||
|
||||
## Example
|
||||
When using modules rather than headers, the previous example for creating a `json` object through a JSON file, would instead be:
|
||||
@@ -67,7 +79,7 @@ and should not be used directly:
|
||||
|
||||
## Known issues
|
||||
|
||||
C++20 modules support is exercised in CI against current GCC and Clang on Ubuntu, and the default MSVC toolset on Windows Server 2022 — there is no documented minimum compiler version, unlike feature-test-macro-gated features such as [`JSON_HAS_RANGES`](../api/macros/json_has_ranges.md).
|
||||
C++20 modules support is exercised in CI with CMake 4.5 and `import std;` against current GCC and Clang on Ubuntu, and the default MSVC toolset on Windows Server 2022 — there is no documented minimum compiler version, unlike feature-test-macro-gated features such as [`JSON_HAS_RANGES`](../api/macros/json_has_ranges.md).
|
||||
|
||||
!!! info "Known compiler issues"
|
||||
|
||||
|
||||
@@ -64,13 +64,13 @@ stack for the nesting.)
|
||||
|
||||
The call stack still needs room for the levels that are recursed into, and the default limit assumes a stack of ordinary
|
||||
size. The stack that an operation needs is roughly proportional to the limit; with the default of 128 levels, the most
|
||||
demanding operation (`dump` in an unoptimized build) needed up to 288 KiB, and an optimized build needed 48 KiB or less,
|
||||
in measurements on macOS with arm64. The most demanding operation needed this much stack at the limits `0`, `32`,
|
||||
`128`, and `254`:
|
||||
demanding operations (copying a value and converting it to another `basic_json` type, in an unoptimized build) needed
|
||||
up to 224 KiB, and an optimized build needed 48 KiB or less, in measurements on macOS with arm64. The most demanding
|
||||
operation needed this much stack at the limits `0`, `32`, `128`, and `254`:
|
||||
|
||||
| Stack needed, in KiB | limit 0 | limit 32 | limit 128 (default) | limit 254 |
|
||||
|---|---:|---:|---:|---:|
|
||||
| unoptimized build (`-O0`) | 16 or less | 80 | 288 | 576 |
|
||||
| unoptimized build (`-O0`) | 16 or less | 64 | 224 | 448 |
|
||||
| optimized build (`-O2`) | 16 or less | 16 or less | 48 | 112 |
|
||||
|
||||
A thread with a smaller stack (a task of a real-time operating system, a fiber, or a thread of the musl C library, whose
|
||||
@@ -81,6 +81,20 @@ result. See the [documentation of the macro](../../api/macros/json_recursion_dep
|
||||
the speed, and the rules for choosing a value. Destroying a value (its destructor) recurses over the same number of
|
||||
levels and then continues without the call stack, and needs 32 KiB or less at every limit.
|
||||
|
||||
!!! warning "Indented output and flattened keys grow with the depth"
|
||||
|
||||
Some results are larger than the value by a factor of its nesting depth.
|
||||
[`dump`](../../api/basic_json/dump.md) with an `indent` of `n` (and likewise `operator<<` with `std::setw(n)` and
|
||||
[`basic_json_view::dump`](../../api/basic_json_view/dump.md)) writes up to `n` characters per nesting level in
|
||||
front of every line, and [`flatten`](../../api/basic_json/flatten.md) repeats the path of every value in its key.
|
||||
For the 80,001-byte array `[1,[1,...[1,1]...]]` with 20,000 levels, `dump(1)` returns 600 MB, `dump(4)` 2.4 GB,
|
||||
and the keys of `flatten()` hold 400 MB. A compact `dump()` without indentation stays the size of the value. If you
|
||||
pretty-print, log, or flatten untrusted input, limit its nesting depth while parsing, for example with a
|
||||
[parser callback](parser_callbacks.md#recipe-max-nesting-depth-via-a-callback): with a limit of `d`, every line has
|
||||
at most `n * d` indentation characters, and every flattened key has at most `d` reference tokens.
|
||||
[`JSON_RECURSION_DEPTH_LIMIT`](../../api/macros/json_recursion_depth_limit.md) does not help here: it changes only
|
||||
how much of the call stack a walk uses, never its result, and it does not limit the depth that `parse()` accepts.
|
||||
|
||||
## Input size
|
||||
|
||||
The library does not limit the overall size of a JSON text; a value nested or wide enough will use memory
|
||||
@@ -168,6 +182,20 @@ values for a repeated key ends up in the parsed object. If your application must
|
||||
silently resolving them one way or another, see the
|
||||
[parser callback recipe for rejecting duplicate keys](parser_callbacks.md#recipe-rejecting-duplicate-object-keys).
|
||||
|
||||
## Objects with many keys in `ordered_json`
|
||||
|
||||
[`ordered_json`](../../api/ordered_json.md) keeps the members of an object in a vector in insertion order
|
||||
([`ordered_map`](../../api/ordered_map.md)) and finds a key by searching all members. Parsing JSON text into an
|
||||
`ordered_json` avoids that search for objects with many keys and takes linear time. The binary readers
|
||||
([`from_cbor`](../../api/basic_json/from_cbor.md), [`from_msgpack`](../../api/basic_json/from_msgpack.md),
|
||||
[`from_ubjson`](../../api/basic_json/from_ubjson.md), [`from_bjdata`](../../api/basic_json/from_bjdata.md),
|
||||
[`from_bson`](../../api/basic_json/from_bson.md), and [`from_bon8`](../../api/basic_json/from_bon8.md)) do not yet:
|
||||
reading an object of `n` keys into an `ordered_json` costs time proportional to `n²`. A flat object of 40,000 keys
|
||||
(about 300 KB of CBOR) takes about 1.3 s, against a few milliseconds as JSON text or into a `json`
|
||||
([#6104](https://github.com/nlohmann/json/issues/6104)). `json` is not affected. If you read untrusted binary input
|
||||
into `ordered_json`, bound the input size more tightly, read it into a `json`, or reject objects with many keys in a
|
||||
[SAX handler](sax_interface.md).
|
||||
|
||||
## Numbers
|
||||
|
||||
A number whose value cannot be represented — for instance `1E1000`, which overflows `double` — is rejected while
|
||||
@@ -199,9 +227,11 @@ indices (or the pointer as a whole) before using them, or use [`at`](../../api/b
|
||||
|
||||
- Wrap parsing in a `#!cpp try`/`#!cpp catch` block, or use `allow_exceptions=false`/`accept()` if your environment
|
||||
cannot use exceptions; never let `JSON_NOEXCEPTION`'s `abort()` be the first time you think about error handling.
|
||||
- If the input's nesting depth matters to you, enforce your own limit with a
|
||||
[parser callback](parser_callbacks.md#recipe-max-nesting-depth-via-a-callback) or a
|
||||
- If the input's nesting depth matters to you (for example because you pretty-print, log, or flatten it), enforce your
|
||||
own limit with a [parser callback](parser_callbacks.md#recipe-max-nesting-depth-via-a-callback) or a
|
||||
[SAX handler](sax_interface.md); the library bounds the call stack but not memory use.
|
||||
- If you read untrusted binary input into `ordered_json`, mind that objects with many keys are
|
||||
[slow to read](#objects-with-many-keys-in-ordered_json).
|
||||
- Bound the size of the input itself before parsing, independent of the library's own bounded allocations for binary
|
||||
format lengths.
|
||||
- Decide up front how you want a string with invalid UTF-8 — from any source, not only parsing — to be serialized
|
||||
|
||||
@@ -98,7 +98,7 @@ serialization fails by default. The fourth argument of `dump` selects an
|
||||
|
||||
## Using `std::format`, `std::print`, and `fmt`
|
||||
|
||||
Since version 3.12.0, JSON values can be formatted directly with C++20's
|
||||
Since version 3.13.0, JSON values can be formatted directly with C++20's
|
||||
[`std::format`](https://en.cppreference.com/w/cpp/utility/format/format) whenever the standard library provides the
|
||||
`<format>` header (controlled by [`JSON_HAS_STD_FORMAT`](../api/macros/json_has_std_format.md)). This is enabled by the
|
||||
[`std::formatter<basic_json>`](../api/basic_json/std_formatter.md) specialization, which also makes JSON values work with
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Recipes for Common Types
|
||||
|
||||
The library converts the standard containers, strings, numbers, tuples, `std::optional`, and `std::filesystem::path`
|
||||
(the last two since version 3.12.0, C++17) out of the box, and your own types once you write conversion functions or use
|
||||
The library converts the standard containers, strings, numbers, tuples, `std::optional` (since version 3.12.0), and
|
||||
`std::filesystem::path` (since version 3.10.5), the last two with C++17, out of the box, and your own types once you write conversion functions or use
|
||||
the macros (see [Arbitrary type conversions](arbitrary_types.md)). It deliberately does **not** convert smart pointers,
|
||||
`std::variant`, `std::chrono` types, or class hierarchies, because there is more than one reasonable JSON
|
||||
representation for each of them. This page shows a representation for each that you can copy and adapt.
|
||||
|
||||
@@ -80,7 +80,7 @@ the result of an internet search. If you know further customers of the library,
|
||||
- [**Audinate**](https://www.audinate.com/legal/software-licensing/dante-av-h-open-source-licenses/), a provider of networked audio solutions specializing in Dante technology, which facilitates high-quality digital audio transport over IP networks
|
||||
- [**Canon CanoScan LIDE**](https://carolburo.com/wp-content/uploads/2024/06/LiDE400_OnlineManual_Win_FR_V02.pdf), a series of flatbed scanners offering high-resolution image scanning for home and office use
|
||||
- [**Canon PIXMA Printers**](https://www.mediaexpert.pl/products/files/73/7338196/Instrukcja-obslugi-CANON-Pixma-TS7450i.pdf), a line of all-in-one inkjet printers known for high-quality printing and wireless connectivity
|
||||
- [**Cisco Webex Desk Camera**](https://www.cisco.com/c/dam/en_us/about/doing_business/open_source/docs/CiscoWebexDeskCamera-23-1622100417.pdf), a video camera designed for professional-quality video conferencing and remote collaboration
|
||||
- [**Cisco Webex Desk Camera**](https://www.cisco.com/c/en/us/products/collaboration-endpoints/webex-desk-camera/index.html), a video camera designed for professional-quality video conferencing and remote collaboration
|
||||
- [**DJI Edge SDK**](https://github.com/dji-sdk/Edge-SDK-V2-Demo), the reference applications for DJI's Edge SDK, used to build edge computing services on DJI drone docks
|
||||
- [**Elgato Stream Deck**](https://github.com/elgatosf/streamdeck-obs-plugin2), a family of programmable control surfaces for content creators and their plugin ecosystem
|
||||
- [**Instagrid**](https://instagrid.co/intellectual-property/foss), a manufacturer of portable, high-performance battery systems for professional mobile power supply
|
||||
@@ -102,7 +102,7 @@ the result of an internet search. If you know further customers of the library,
|
||||
|
||||
- [**Apple iOS and macOS**](https://www.apple.com/macos), a family of operating systems developed by Apple, including iOS for mobile devices and macOS for desktop computers
|
||||
- [**Chromium**](https://chromium.googlesource.com/chromium/src/+/main/third_party/nlohmann_json/), the open-source browser project that Google Chrome, Microsoft Edge, and many other browsers are built on, where the library is used as data container for on-device model execution
|
||||
- [**Google Fuchsia**](https://fuchsia.googlesource.com/third_party/json/), an open-source operating system developed by Google, designed to be secure, updatable, and adaptable across various devices
|
||||
- [**Google Fuchsia**](https://fuchsia.googlesource.com/fuchsia/+/refs/heads/main/scripts/prebuilts/swiftshader/build_config), an open-source operating system developed by Google, designed to be secure, updatable, and adaptable across various devices, where the library is used indirectly through bundled dependencies such as SwiftShader's debugger support and cppdap
|
||||
- [**LG webOS**](https://github.com/webosose/com.webos.service.camera), a Linux-based operating system used in LG smart TVs, signage, and embedded devices
|
||||
- [**Microsoft Azure Linux**](https://github.com/microsoft/azurelinux), a Linux distribution developed by Microsoft for Azure infrastructure and edge workloads
|
||||
- [**OpenHarmony**](https://github.com/openharmony/third_party_json), an open-source operating system for smart devices and the foundation of HarmonyOS
|
||||
@@ -174,7 +174,7 @@ the result of an internet search. If you know further customers of the library,
|
||||
- [**NVIDIA Instant NGP**](https://github.com/NVlabs/instant-ngp/blob/master/src/nerf_loader.cu), an implementation of instant neural graphics primitives for rapid scene reconstruction
|
||||
- [**NVIDIA TensorRT**](https://github.com/NVIDIA/TensorRT), an SDK for high-performance deep learning inference, including its TensorRT-LLM extension for large language models
|
||||
- [**NVIDIA TensorRT-LLM**](https://github.com/NVIDIA/TensorRT-LLM/blob/main/cpp/tensorrt_llm/common/safetensors.cpp), a toolkit for optimizing and serving large language model inference on GPUs
|
||||
- [**ONNX Runtime**](https://github.com/microsoft/onnxruntime), a cross-platform inference and training accelerator for machine learning models
|
||||
- [**ONNX Runtime**](https://onnxruntime.ai), a cross-platform inference and training accelerator for machine learning models
|
||||
- [**OpenVINO**](https://github.com/openvinotoolkit/openvino), Intel's toolkit for optimizing and deploying deep learning inference across CPUs, GPUs, and NPUs
|
||||
- [**PaddleOCR**](https://github.com/PaddlePaddle/PaddleOCR/blob/main/deploy/cpp_infer/src/modules/text_detection/result.cc), an optical character recognition toolkit that turns documents and images into structured data
|
||||
- [**PaddlePaddle**](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/ap/src/axpr/anf_expr.cc), a deep learning framework for distributed training and inference
|
||||
@@ -216,7 +216,7 @@ the result of an internet search. If you know further customers of the library,
|
||||
- [**Check Point**](https://www.checkpoint.com/about-us/copyright-and-trademarks/), a cybersecurity company specializing in threat prevention and network security solutions, offering a range of products designed to protect enterprises from cyber threats and ensure data integrity
|
||||
- [**EasyEffects**](https://github.com/wwmm/easyeffects/blob/master/src/presets_manager.hpp), an audio effects processor for PipeWire offering limiting, compression and equalization
|
||||
- [**espanso**](https://github.com/espanso/espanso/blob/dev/espanso-ui/src/win32/native.cpp), a cross-platform text expander
|
||||
- [**Karabiner-Elements**](https://github.com/pqrs-org/Karabiner-Elements/blob/main/src/share/app_icon.hpp), a keyboard customizer for macOS
|
||||
- [**Karabiner-Elements**](https://github.com/pqrs-org/Karabiner-Elements/blob/main/src/share/json_utility.hpp), a keyboard customizer for macOS
|
||||
- [**MacType**](https://github.com/snowie2000/mactype/blob/directwrite/settings.h), a font rendering engine for Windows
|
||||
- [**magicplan**](https://help.magicplan.app/acknowledgments), a mobile application for creating floor plans and interior designs using augmented reality
|
||||
- [**Microsoft Office for Mac**](https://officecdnmac.microsoft.com/pr/legal/mac/OfficeforMacAttributions.html), a suite of productivity applications developed by Microsoft for macOS, including tools for word processing, spreadsheets, and presentations
|
||||
@@ -280,8 +280,8 @@ the result of an internet search. If you know further customers of the library,
|
||||
- [**Bitdefender Home Scanner**](https://www.bitdefender.com/site/Main/view/home-scanner-open-source.html), a tool from Bitdefender that scans devices for malware and security threats, providing a safeguard against potential online dangers
|
||||
- [**Cisco MLS++**](https://github.com/cisco/mlspp), an implementation of the Messaging Layer Security protocol for end-to-end encrypted group messaging
|
||||
- [**Citrix Provisioning**](https://docs.citrix.com/en-us/provisioning/2203-ltsr/downloads/pvs-third-party-notices-2203.pdf), a solution that streamlines the delivery of virtual desktops and applications by allowing administrators to manage and provision resources efficiently across multiple environments
|
||||
- [**Citrix Virtual Apps and Desktops**](https://docs.citrix.com/en-us/citrix-virtual-apps-desktops/2305/downloads/third-party-notices-apps-and-desktops.pdf), a solution from Citrix that delivers virtual apps and desktops
|
||||
- [**CyberArk**](https://docs.cyberark.com/Downloads/Legal/Privileged%20Session%20Manager%20for%20SSH%20Third-Party%20Notices.pdf), a security solution that specializes in privileged access management, enabling organizations to control and monitor access to critical systems and data, thereby enhancing overall cybersecurity posture
|
||||
- [**Citrix Virtual Apps and Desktops**](https://docs.citrix.com/en-us/citrix-virtual-apps-desktops/), a solution from Citrix that delivers virtual apps and desktops
|
||||
- [**CyberArk**](https://www.cyberark.com), a security solution that specializes in privileged access management, enabling organizations to control and monitor access to critical systems and data, thereby enhancing overall cybersecurity posture
|
||||
- [**Deutsche Telekom sysrepo-plugins**](https://github.com/telekom/sysrepo-plugins), a collection of YANG datastore plugins used to manage network devices
|
||||
- [**Egnyte Desktop**](https://helpdesk.egnyte.com/hc/en-us/articles/360007071732-Third-Party-Software-Acknowledgements), a secure cloud storage solution designed for businesses, enabling file sharing, collaboration, and data management across teams while ensuring compliance and data protection
|
||||
- [**Elster**](https://www.secunet.com/en/about-us/press/article/elstersecure-bietet-komfortablen-login-ohne-passwort-dank-secunet-protect4use), a digital platform developed by German tax authorities for secure and efficient electronic tax filing and management using secunet protect4use
|
||||
|
||||
@@ -140,6 +140,8 @@ Exceptions have ids 1xx.
|
||||
|
||||
This error indicates a syntax error while deserializing a JSON text. The error message describes that an unexpected token (character) was encountered, and the member `byte` indicates the error position.
|
||||
|
||||
The message ends with the last read token (`last read: '...'`), with control characters written as `<U+XXXX>`. A token of more than 8192 bytes is shown by its first and its last 4096 bytes, separated by `...`; each part is shortened by up to three bytes so that it does not end or begin within a UTF-8 character.
|
||||
|
||||
!!! failure "Example message"
|
||||
|
||||
Input ended prematurely:
|
||||
@@ -985,7 +987,9 @@ contains other characters (e.g., `1a`), or `-` where it cannot be used.
|
||||
|
||||
The JSON Patch operations 'remove' and 'move' cannot be applied to the root element of the JSON value. The exception is
|
||||
also thrown when the parent or a reference token of an empty JSON Pointer is requested, for instance by
|
||||
[`back`](../api/json_pointer/back.md) or [`pop_back`](../api/json_pointer/pop_back.md).
|
||||
[`front`](../api/json_pointer/front.md), [`back`](../api/json_pointer/back.md),
|
||||
[`pop_front`](../api/json_pointer/pop_front.md), or [`pop_back`](../api/json_pointer/pop_back.md), and when
|
||||
[`basic_json_document::erase`](../api/basic_json_document/erase.md) is called with an empty JSON Pointer.
|
||||
|
||||
!!! failure "Example message"
|
||||
|
||||
@@ -1261,9 +1265,9 @@ A JSON Patch operation 'test' failed. The unsuccessful operation is also printed
|
||||
### json.exception.other_error.502
|
||||
|
||||
[`to_ubjson`](../api/basic_json/to_ubjson.md) and [`to_bjdata`](../api/basic_json/to_bjdata.md) were called with
|
||||
`use_type = true` but `use_size = false`, and the value contains a non-empty array or object (or, with BJData Draft 3,
|
||||
any binary value). UBJSON requires a size marker (`#`) after a type marker (`$`); scalars and empty arrays or objects
|
||||
do not throw.
|
||||
`use_type = true` but `use_size = false`, and the value contains a non-empty array, object, or binary value (with
|
||||
BJData Draft 3, any binary value, including an empty one). UBJSON requires a size marker (`#`) after a type marker
|
||||
(`$`); scalars and empty arrays or objects do not throw.
|
||||
|
||||
!!! failure "Example message"
|
||||
|
||||
|
||||
@@ -7,7 +7,9 @@ These changes are part of the `develop` branch, but not of a release yet.
|
||||
2.3 ms). Two consequences: the source container is left in a valid but unspecified (moved-from) state, and if an
|
||||
exception is thrown during the conversion, the source may be partially moved-from, so the strong exception guarantee
|
||||
no longer holds for the source of an rvalue conversion (the JSON value itself is unaffected). Lvalues and `const`
|
||||
objects are still copied. See [`basic_json`](../../api/basic_json/basic_json.md).
|
||||
objects are still copied, and so are non-owning ranges such as spans (a range whose elements stay mutable through a
|
||||
`const` range): converting an rvalue span leaves the referenced elements unchanged.
|
||||
See [`basic_json`](../../api/basic_json/basic_json.md).
|
||||
- In C++20 (library support for `char8_t`, `__cpp_lib_char8_t`), a `#!cpp std::u8string` is a JSON **string**:
|
||||
`json j = std::u8string(u8"abc");` stores `"abc"`, and `#!cpp j.get<std::u8string>()` reads it back. Version 3.12.0
|
||||
stored a `#!cpp std::u8string` as an array of code units (`[97,98,99]`); on the 3.13.0 development branch it was
|
||||
|
||||
@@ -0,0 +1,187 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="535"
|
||||
height="535"
|
||||
viewBox="0 0 501.56251 501.56249"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="1.3.2 (091e20ef0f, 2023-11-25)"
|
||||
sodipodi:docname="nix-snowflake-colours.svg"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||
<defs
|
||||
id="defs4">
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient5562">
|
||||
<stop
|
||||
style="stop-color:#699ad7;stop-opacity:1"
|
||||
offset="0"
|
||||
id="stop5564" />
|
||||
<stop
|
||||
id="stop5566"
|
||||
offset="0.24345198"
|
||||
style="stop-color:#7eb1dd;stop-opacity:1" />
|
||||
<stop
|
||||
style="stop-color:#7ebae4;stop-opacity:1"
|
||||
offset="1"
|
||||
id="stop5568" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient5053">
|
||||
<stop
|
||||
style="stop-color:#415e9a;stop-opacity:1"
|
||||
offset="0"
|
||||
id="stop5055" />
|
||||
<stop
|
||||
id="stop5057"
|
||||
offset="0.23168644"
|
||||
style="stop-color:#4a6baf;stop-opacity:1" />
|
||||
<stop
|
||||
style="stop-color:#5277c3;stop-opacity:1"
|
||||
offset="1"
|
||||
id="stop5059" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient5562"
|
||||
id="linearGradient4328"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="translate(70.650339,-1055.1511)"
|
||||
x1="200.59668"
|
||||
y1="351.41116"
|
||||
x2="290.08701"
|
||||
y2="506.18814" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient5053"
|
||||
id="linearGradient4330"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="translate(864.69589,-1491.3405)"
|
||||
x1="-584.19934"
|
||||
y1="782.33563"
|
||||
x2="-496.29703"
|
||||
y2="937.71399" />
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="0.70904368"
|
||||
inkscape:cx="99.429699"
|
||||
inkscape:cy="195.33352"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer3"
|
||||
showgrid="false"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1050"
|
||||
inkscape:window-x="1920"
|
||||
inkscape:window-y="30"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:snap-global="true"
|
||||
fit-margin-top="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-bottom="0"
|
||||
inkscape:showpageshadow="2"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#d1d1d1" />
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:groupmode="layer"
|
||||
id="layer3"
|
||||
inkscape:label="gradient-logo"
|
||||
style="display:inline;opacity:1"
|
||||
transform="translate(-156.41121,933.30685)">
|
||||
<g
|
||||
id="g2"
|
||||
transform="matrix(0.99994059,0,0,0.99994059,-0.06321798,33.188377)"
|
||||
style="stroke-width:1.00006">
|
||||
<path
|
||||
sodipodi:nodetypes="cccccccccc"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3336-6"
|
||||
d="m 309.54892,-710.38827 122.19683,211.67512 -56.15706,0.5268 -32.6236,-56.8692 -32.85645,56.5653 -27.90237,-0.011 -14.29086,-24.6896 46.81047,-80.4901 -33.22946,-57.8257 z"
|
||||
style="opacity:1;fill:url(#linearGradient4328);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3.00018;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<use
|
||||
height="100%"
|
||||
width="100%"
|
||||
transform="rotate(60,407.11155,-715.78724)"
|
||||
id="use3439-6"
|
||||
inkscape:transform-center-y="151.59082"
|
||||
inkscape:transform-center-x="124.43045"
|
||||
xlink:href="#path3336-6"
|
||||
y="0"
|
||||
x="0"
|
||||
style="stroke-width:1.00006" />
|
||||
<use
|
||||
height="100%"
|
||||
width="100%"
|
||||
transform="rotate(-60,407.31177,-715.70016)"
|
||||
id="use3445-0"
|
||||
inkscape:transform-center-y="75.573958"
|
||||
inkscape:transform-center-x="-168.20651"
|
||||
xlink:href="#path3336-6"
|
||||
y="0"
|
||||
x="0"
|
||||
style="stroke-width:1.00006" />
|
||||
<use
|
||||
height="100%"
|
||||
width="100%"
|
||||
transform="rotate(180,407.41868,-715.7565)"
|
||||
id="use3449-5"
|
||||
inkscape:transform-center-y="-139.94592"
|
||||
inkscape:transform-center-x="59.669705"
|
||||
xlink:href="#path3336-6"
|
||||
y="0"
|
||||
x="0"
|
||||
style="stroke-width:1.00006" />
|
||||
<path
|
||||
style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:url(#linearGradient4330);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3.00018;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="m 309.54892,-710.38827 122.19683,211.67512 -56.15706,0.5268 -32.6236,-56.8692 -32.85645,56.5653 -27.90237,-0.011 -14.29086,-24.6896 46.81047,-80.4901 -33.22946,-57.8256 z"
|
||||
id="path4260-0"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cccccccccc" />
|
||||
<use
|
||||
height="100%"
|
||||
width="100%"
|
||||
transform="rotate(120,407.33916,-716.08356)"
|
||||
id="use4354-5"
|
||||
xlink:href="#path4260-0"
|
||||
y="0"
|
||||
x="0"
|
||||
style="display:inline;stroke-width:1.00006" />
|
||||
<use
|
||||
height="100%"
|
||||
width="100%"
|
||||
transform="rotate(-120,407.28823,-715.86995)"
|
||||
id="use4362-2"
|
||||
xlink:href="#path4260-0"
|
||||
y="0"
|
||||
x="0"
|
||||
style="display:inline;stroke-width:1.00006" />
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 6.4 KiB |
@@ -1,6 +1,6 @@
|
||||
<svg class="nj-fig nj-charts nj-charts--blog" viewBox="0 0 600 380" role="img" aria-labelledby="nj-blog-cliffs nj-blog-cliffs-d" xmlns="http://www.w3.org/2000/svg">
|
||||
<title id="nj-blog-cliffs">Operations that grew quadratically or worse: time with 3.12.0 and 3.13.0, log scale</title>
|
||||
<desc id="nj-blog-cliffs-d">Dot plot on a logarithmic time axis, less is better; an arrow leads from each 3.12.0 time to the 3.13.0 time. diff() 64k numbers vs []: 4237 ms to 10.8 ms; diff() 20k objects vs half: 122 ms to 4.13 ms; parse() callback, 32k objects: 1398 ms to 12.1 ms; operator< nested 24 deep: 64.4 ms to 0.002 ms; operator< citm, 10x: 284 ms to 3.94 ms; flatten() citm, ordered_json: 271 ms to 1.45 ms; to_bson() 200 deep, 100x: 20.3 ms to 0.352 ms; push_back() 100k, diagnostics: 1589 ms to 5.32 ms; at(i) 10k, diagnostics: 45.9 ms to 0.088 ms.</desc>
|
||||
<desc id="nj-blog-cliffs-d">Dot plot on a logarithmic time axis, less is better; an arrow leads from each 3.12.0 time to the 3.13.0 time. diff() 64k numbers vs []: 4131 ms to 11.2 ms; diff() 20k objects vs half: 134 ms to 7.16 ms; parse() callback, 32k objects: 826 ms to 7.67 ms; operator< nested 24 deep: 53.8 ms to 0.004 ms; operator< citm, 10x: 270 ms to 3.78 ms; flatten() citm, ordered_json: 261 ms to 1.59 ms; to_bson() 200 deep, 100x: 19.6 ms to 0.392 ms; push_back() 100k, diagnostics: 1515 ms to 0.936 ms; at(i) 10k, diagnostics: 30.4 ms to 0.0095 ms.</desc>
|
||||
<line class="nj-charts-grid" x1="250" y1="30" x2="250" y2="336"/>
|
||||
<text class="nj-charts-tick" x="250" y="352">1 µs</text>
|
||||
<line class="nj-charts-grid" x1="297.857" y1="30" x2="297.857" y2="336"/>
|
||||
@@ -22,48 +22,48 @@
|
||||
<circle class="nj-charts-ojson-dot" cx="250" cy="14" r="5"/><text class="nj-charts-leg" x="260" y="18.5">3.12.0</text>
|
||||
<circle class="nj-charts-json-dot" cx="330" cy="14" r="5"/><text class="nj-charts-leg" x="340" y="18.5">3.13.0</text>
|
||||
<text class="nj-charts-rowlabel" x="240" y="52" text-anchor="end">diff() 64k numbers vs []</text>
|
||||
<line class="nj-charts-axis" x1="561.152" y1="48" x2="450.028" y2="48" marker-end="url(#nj-blog-cliffs-head)"/>
|
||||
<circle class="nj-charts-ojson-dot" cx="567.152" cy="48" r="5"><title>diff() 64k numbers vs [], 3.12.0: 4237 ms</title></circle>
|
||||
<circle class="nj-charts-json-dot" cx="443.028" cy="48" r="5"><title>diff() 64k numbers vs [], 3.13.0: 10.8 ms</title></circle>
|
||||
<text class="nj-charts-factor" x="505.09" y="41">392×</text>
|
||||
<line class="nj-charts-axis" x1="560.625" y1="48" x2="450.784" y2="48" marker-end="url(#nj-blog-cliffs-head)"/>
|
||||
<circle class="nj-charts-ojson-dot" cx="566.625" cy="48" r="5"><title>diff() 64k numbers vs [], 3.12.0: 4131 ms</title></circle>
|
||||
<circle class="nj-charts-json-dot" cx="443.784" cy="48" r="5"><title>diff() 64k numbers vs [], 3.13.0: 11.2 ms</title></circle>
|
||||
<text class="nj-charts-factor" x="505.205" y="41">369×</text>
|
||||
<text class="nj-charts-rowlabel" x="240" y="86" text-anchor="end">diff() 20k objects vs half</text>
|
||||
<line class="nj-charts-axis" x1="487.419" y1="82" x2="430.049" y2="82" marker-end="url(#nj-blog-cliffs-head)"/>
|
||||
<circle class="nj-charts-ojson-dot" cx="493.419" cy="82" r="5"><title>diff() 20k objects vs half, 3.12.0: 122 ms</title></circle>
|
||||
<circle class="nj-charts-json-dot" cx="423.049" cy="82" r="5"><title>diff() 20k objects vs half, 3.13.0: 4.13 ms</title></circle>
|
||||
<text class="nj-charts-factor" x="458.234" y="75">30×</text>
|
||||
<line class="nj-charts-axis" x1="489.369" y1="82" x2="441.485" y2="82" marker-end="url(#nj-blog-cliffs-head)"/>
|
||||
<circle class="nj-charts-ojson-dot" cx="495.369" cy="82" r="5"><title>diff() 20k objects vs half, 3.12.0: 134 ms</title></circle>
|
||||
<circle class="nj-charts-json-dot" cx="434.485" cy="82" r="5"><title>diff() 20k objects vs half, 3.13.0: 7.16 ms</title></circle>
|
||||
<text class="nj-charts-factor" x="464.927" y="75">19×</text>
|
||||
<text class="nj-charts-rowlabel" x="240" y="120" text-anchor="end">parse() callback, 32k objects</text>
|
||||
<line class="nj-charts-axis" x1="538.106" y1="116" x2="452.39" y2="116" marker-end="url(#nj-blog-cliffs-head)"/>
|
||||
<circle class="nj-charts-ojson-dot" cx="544.106" cy="116" r="5"><title>parse() callback, 32k objects, 3.12.0: 1398 ms</title></circle>
|
||||
<circle class="nj-charts-json-dot" cx="445.39" cy="116" r="5"><title>parse() callback, 32k objects, 3.13.0: 12.1 ms</title></circle>
|
||||
<text class="nj-charts-factor" x="494.748" y="109">116×</text>
|
||||
<line class="nj-charts-axis" x1="527.17" y1="116" x2="442.915" y2="116" marker-end="url(#nj-blog-cliffs-head)"/>
|
||||
<circle class="nj-charts-ojson-dot" cx="533.17" cy="116" r="5"><title>parse() callback, 32k objects, 3.12.0: 826 ms</title></circle>
|
||||
<circle class="nj-charts-json-dot" cx="435.915" cy="116" r="5"><title>parse() callback, 32k objects, 3.13.0: 7.67 ms</title></circle>
|
||||
<text class="nj-charts-factor" x="484.542" y="109">108×</text>
|
||||
<text class="nj-charts-rowlabel" x="240" y="154" text-anchor="end">operator< nested 24 deep</text>
|
||||
<line class="nj-charts-axis" x1="474.14" y1="150" x2="271.406" y2="150" marker-end="url(#nj-blog-cliffs-head)"/>
|
||||
<circle class="nj-charts-ojson-dot" cx="480.14" cy="150" r="5"><title>operator< nested 24 deep, 3.12.0: 64.4 ms</title></circle>
|
||||
<circle class="nj-charts-json-dot" cx="264.406" cy="150" r="5"><title>operator< nested 24 deep, 3.13.0: 0.002 ms</title></circle>
|
||||
<text class="nj-charts-factor" x="372.273" y="143">32200×</text>
|
||||
<line class="nj-charts-axis" x1="470.402" y1="150" x2="285.813" y2="150" marker-end="url(#nj-blog-cliffs-head)"/>
|
||||
<circle class="nj-charts-ojson-dot" cx="476.402" cy="150" r="5"><title>operator< nested 24 deep, 3.12.0: 53.8 ms</title></circle>
|
||||
<circle class="nj-charts-json-dot" cx="278.813" cy="150" r="5"><title>operator< nested 24 deep, 3.13.0: 0.004 ms</title></circle>
|
||||
<text class="nj-charts-factor" x="377.607" y="143">13450×</text>
|
||||
<text class="nj-charts-rowlabel" x="240" y="188" text-anchor="end">operator< citm, 10x</text>
|
||||
<line class="nj-charts-axis" x1="504.98" y1="184" x2="429.07" y2="184" marker-end="url(#nj-blog-cliffs-head)"/>
|
||||
<circle class="nj-charts-ojson-dot" cx="510.98" cy="184" r="5"><title>operator< citm, 10x, 3.12.0: 284 ms</title></circle>
|
||||
<circle class="nj-charts-json-dot" cx="422.07" cy="184" r="5"><title>operator< citm, 10x, 3.13.0: 3.94 ms</title></circle>
|
||||
<text class="nj-charts-factor" x="466.525" y="177">72×</text>
|
||||
<line class="nj-charts-axis" x1="503.93" y1="184" x2="428.209" y2="184" marker-end="url(#nj-blog-cliffs-head)"/>
|
||||
<circle class="nj-charts-ojson-dot" cx="509.93" cy="184" r="5"><title>operator< citm, 10x, 3.12.0: 270 ms</title></circle>
|
||||
<circle class="nj-charts-json-dot" cx="421.209" cy="184" r="5"><title>operator< citm, 10x, 3.13.0: 3.78 ms</title></circle>
|
||||
<text class="nj-charts-factor" x="465.569" y="177">71×</text>
|
||||
<text class="nj-charts-rowlabel" x="240" y="222" text-anchor="end">flatten() citm, ordered_json</text>
|
||||
<line class="nj-charts-axis" x1="504.006" y1="218" x2="408.294" y2="218" marker-end="url(#nj-blog-cliffs-head)"/>
|
||||
<circle class="nj-charts-ojson-dot" cx="510.006" cy="218" r="5"><title>flatten() citm, ordered_json, 3.12.0: 271 ms</title></circle>
|
||||
<circle class="nj-charts-json-dot" cx="401.294" cy="218" r="5"><title>flatten() citm, ordered_json, 3.13.0: 1.45 ms</title></circle>
|
||||
<text class="nj-charts-factor" x="455.65" y="211">187×</text>
|
||||
<line class="nj-charts-axis" x1="503.225" y1="218" x2="410.21" y2="218" marker-end="url(#nj-blog-cliffs-head)"/>
|
||||
<circle class="nj-charts-ojson-dot" cx="509.225" cy="218" r="5"><title>flatten() citm, ordered_json, 3.12.0: 261 ms</title></circle>
|
||||
<circle class="nj-charts-json-dot" cx="403.21" cy="218" r="5"><title>flatten() citm, ordered_json, 3.13.0: 1.59 ms</title></circle>
|
||||
<text class="nj-charts-factor" x="456.217" y="211">164×</text>
|
||||
<text class="nj-charts-rowlabel" x="240" y="256" text-anchor="end">to_bson() 200 deep, 100x</text>
|
||||
<line class="nj-charts-axis" x1="450.144" y1="252" x2="378.87" y2="252" marker-end="url(#nj-blog-cliffs-head)"/>
|
||||
<circle class="nj-charts-ojson-dot" cx="456.144" cy="252" r="5"><title>to_bson() 200 deep, 100x, 3.12.0: 20.3 ms</title></circle>
|
||||
<circle class="nj-charts-json-dot" cx="371.87" cy="252" r="5"><title>to_bson() 200 deep, 100x, 3.13.0: 0.352 ms</title></circle>
|
||||
<text class="nj-charts-factor" x="414.007" y="245">58×</text>
|
||||
<line class="nj-charts-axis" x1="449.415" y1="252" x2="381.107" y2="252" marker-end="url(#nj-blog-cliffs-head)"/>
|
||||
<circle class="nj-charts-ojson-dot" cx="455.415" cy="252" r="5"><title>to_bson() 200 deep, 100x, 3.12.0: 19.6 ms</title></circle>
|
||||
<circle class="nj-charts-json-dot" cx="374.107" cy="252" r="5"><title>to_bson() 200 deep, 100x, 3.13.0: 0.392 ms</title></circle>
|
||||
<text class="nj-charts-factor" x="414.761" y="245">50×</text>
|
||||
<text class="nj-charts-rowlabel" x="240" y="290" text-anchor="end">push_back() 100k, diagnostics</text>
|
||||
<line class="nj-charts-axis" x1="540.768" y1="286" x2="435.311" y2="286" marker-end="url(#nj-blog-cliffs-head)"/>
|
||||
<circle class="nj-charts-ojson-dot" cx="546.768" cy="286" r="5"><title>push_back() 100k, diagnostics, 3.12.0: 1589 ms</title></circle>
|
||||
<circle class="nj-charts-json-dot" cx="428.311" cy="286" r="5"><title>push_back() 100k, diagnostics, 3.13.0: 5.32 ms</title></circle>
|
||||
<text class="nj-charts-factor" x="487.54" y="279">299×</text>
|
||||
<line class="nj-charts-axis" x1="539.777" y1="286" x2="399.197" y2="286" marker-end="url(#nj-blog-cliffs-head)"/>
|
||||
<circle class="nj-charts-ojson-dot" cx="545.777" cy="286" r="5"><title>push_back() 100k, diagnostics, 3.12.0: 1515 ms</title></circle>
|
||||
<circle class="nj-charts-json-dot" cx="392.197" cy="286" r="5"><title>push_back() 100k, diagnostics, 3.13.0: 0.936 ms</title></circle>
|
||||
<text class="nj-charts-factor" x="468.987" y="279">1619×</text>
|
||||
<text class="nj-charts-rowlabel" x="240" y="324" text-anchor="end">at(i) 10k, diagnostics</text>
|
||||
<line class="nj-charts-axis" x1="467.101" y1="320" x2="350.057" y2="320" marker-end="url(#nj-blog-cliffs-head)"/>
|
||||
<circle class="nj-charts-ojson-dot" cx="473.101" cy="320" r="5"><title>at(i) 10k, diagnostics, 3.12.0: 45.9 ms</title></circle>
|
||||
<circle class="nj-charts-json-dot" cx="343.057" cy="320" r="5"><title>at(i) 10k, diagnostics, 3.13.0: 0.088 ms</title></circle>
|
||||
<text class="nj-charts-factor" x="408.079" y="313">522×</text>
|
||||
<line class="nj-charts-axis" x1="458.538" y1="320" x2="303.791" y2="320" marker-end="url(#nj-blog-cliffs-head)"/>
|
||||
<circle class="nj-charts-ojson-dot" cx="464.538" cy="320" r="5"><title>at(i) 10k, diagnostics, 3.12.0: 30.4 ms</title></circle>
|
||||
<circle class="nj-charts-json-dot" cx="296.791" cy="320" r="5"><title>at(i) 10k, diagnostics, 3.13.0: 0.0095 ms</title></circle>
|
||||
<text class="nj-charts-factor" x="380.664" y="313">3200×</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 7.2 KiB |
@@ -1,6 +1,6 @@
|
||||
<svg class="nj-fig nj-charts nj-charts--blog" viewBox="0 0 560 250" role="img" aria-labelledby="nj-blog-dist nj-blog-dist-d" xmlns="http://www.w3.org/2000/svg">
|
||||
<title id="nj-blog-dist">Speedup of 3.13.0 over 3.12.0 for all 182 benchmarks of the suite</title>
|
||||
<desc id="nj-blog-dist-d">Bars counting the benchmarks per speedup range: below 1x: 2; 1 to 1.5x: 21; 1.5 to 2x: 18; 2 to 3x: 52; 3 to 5x: 48; 5 to 10x: 31; 10x or more: 10. Median 2.9x, geometric mean 3.3x.</desc>
|
||||
<title id="nj-blog-dist">Speedup of 3.13.0 over 3.12.0 for all 184 benchmarks of the suite</title>
|
||||
<desc id="nj-blog-dist-d">Bars counting the benchmarks per speedup range: below 1x: 2; 1 to 1.5x: 20; 1.5 to 2x: 17; 2 to 3x: 56; 3 to 5x: 49; 5 to 10x: 31; 10x or more: 9. Median 3.0x, geometric mean 3.3x.</desc>
|
||||
<line class="nj-charts-grid" x1="52" y1="196" x2="548" y2="196"/>
|
||||
<text class="nj-charts-tick nj-charts-tick--r" x="46" y="200">0</text>
|
||||
<line class="nj-charts-grid" x1="52" y1="136" x2="548" y2="136"/>
|
||||
@@ -12,23 +12,23 @@
|
||||
<rect class="nj-charts-c2" x="60.0" y="190.0" width="54.9" height="6.0" rx="3"><title>below 1×: 2</title></rect>
|
||||
<text class="nj-charts-val" x="87.4" y="185.0" text-anchor="middle">2</text>
|
||||
<text class="nj-charts-tick" x="87.4" y="212.0">below 1×</text>
|
||||
<rect class="nj-charts-c1" x="130.9" y="133.0" width="54.9" height="63.0" rx="3"><title>1 to 1.5×: 21</title></rect>
|
||||
<text class="nj-charts-val" x="158.3" y="128.0" text-anchor="middle">21</text>
|
||||
<rect class="nj-charts-c1" x="130.9" y="136.0" width="54.9" height="60.0" rx="3"><title>1 to 1.5×: 20</title></rect>
|
||||
<text class="nj-charts-val" x="158.3" y="131.0" text-anchor="middle">20</text>
|
||||
<text class="nj-charts-tick" x="158.3" y="212.0">1 to 1.5×</text>
|
||||
<rect class="nj-charts-c1" x="201.7" y="142.0" width="54.9" height="54.0" rx="3"><title>1.5 to 2×: 18</title></rect>
|
||||
<text class="nj-charts-val" x="229.1" y="137.0" text-anchor="middle">18</text>
|
||||
<rect class="nj-charts-c1" x="201.7" y="145.0" width="54.9" height="51.0" rx="3"><title>1.5 to 2×: 17</title></rect>
|
||||
<text class="nj-charts-val" x="229.1" y="140.0" text-anchor="middle">17</text>
|
||||
<text class="nj-charts-tick" x="229.1" y="212.0">1.5 to 2×</text>
|
||||
<rect class="nj-charts-c1" x="272.6" y="40.0" width="54.9" height="156.0" rx="3"><title>2 to 3×: 52</title></rect>
|
||||
<text class="nj-charts-val" x="300.0" y="35.0" text-anchor="middle">52</text>
|
||||
<rect class="nj-charts-c1" x="272.6" y="28.0" width="54.9" height="168.0" rx="3"><title>2 to 3×: 56</title></rect>
|
||||
<text class="nj-charts-val" x="300.0" y="23.0" text-anchor="middle">56</text>
|
||||
<text class="nj-charts-tick" x="300.0" y="212.0">2 to 3×</text>
|
||||
<rect class="nj-charts-c1" x="343.4" y="52.0" width="54.9" height="144.0" rx="3"><title>3 to 5×: 48</title></rect>
|
||||
<text class="nj-charts-val" x="370.9" y="47.0" text-anchor="middle">48</text>
|
||||
<rect class="nj-charts-c1" x="343.4" y="49.0" width="54.9" height="147.0" rx="3"><title>3 to 5×: 49</title></rect>
|
||||
<text class="nj-charts-val" x="370.9" y="44.0" text-anchor="middle">49</text>
|
||||
<text class="nj-charts-tick" x="370.9" y="212.0">3 to 5×</text>
|
||||
<rect class="nj-charts-c1" x="414.3" y="103.0" width="54.9" height="93.0" rx="3"><title>5 to 10×: 31</title></rect>
|
||||
<text class="nj-charts-val" x="441.7" y="98.0" text-anchor="middle">31</text>
|
||||
<text class="nj-charts-tick" x="441.7" y="212.0">5 to 10×</text>
|
||||
<rect class="nj-charts-c1" x="485.1" y="166.0" width="54.9" height="30.0" rx="3"><title>10× or more: 10</title></rect>
|
||||
<text class="nj-charts-val" x="512.6" y="161.0" text-anchor="middle">10</text>
|
||||
<rect class="nj-charts-c1" x="485.1" y="169.0" width="54.9" height="27.0" rx="3"><title>10× or more: 9</title></rect>
|
||||
<text class="nj-charts-val" x="512.6" y="164.0" text-anchor="middle">9</text>
|
||||
<text class="nj-charts-tick" x="512.6" y="212.0">10× or more</text>
|
||||
<line class="nj-charts-axis" x1="52" y1="196" x2="548" y2="196"/>
|
||||
<text class="nj-charts-tick" x="300" y="240">speedup over 3.12.0, more is better</text>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
@@ -1,6 +1,6 @@
|
||||
<svg class="nj-fig nj-charts nj-charts--blog" viewBox="0 0 620 482" role="img" aria-labelledby="nj-blog-heldout nj-blog-heldout-d" xmlns="http://www.w3.org/2000/svg">
|
||||
<title id="nj-blog-heldout">Validating 19 files 3.13.0 was not tuned on: json_document's time relative to the fastest other library per file</title>
|
||||
<desc id="nj-blog-heldout-d">Dot plot per file, less is better; below 1.0 json_document is the fastest fully validating library. mesh: Mac 0.72, x86-64 0.44 (serde_json (Rust)); semanticscholar-corpus: Mac 0.78, x86-64 0.63 (sonic-rs (Rust)); gsoc-2018: Mac 0.59, x86-64 0.64 (Boost.J​SON); marine_ik: Mac 0.62, x86-64 0.64 (Boost.J​SON); twitter_api_compact_response: Mac 0.91, x86-64 0.66 (yyjson); twitterescaped: Mac 0.94, x86-64 0.76 (simdjson); update-center: Mac 0.88, x86-64 0.77 (simdjson); github_events: Mac 0.78, x86-64 0.78 (simdjson); twitter_api_response: Mac 0.95, x86-64 0.81 (simdjson); twitter_timeline: Mac 0.99, x86-64 0.82 (yyjson); numbers: Mac 0.72, x86-64 0.82 (Boost.J​SON); random: Mac 0.82, x86-64 0.86 (simdjson); repeat: Mac 0.65, x86-64 0.89 (simdjson); apache_builds: Mac 1.08, x86-64 0.90 (simdjson); instruments: Mac 0.92, x86-64 0.91 (simdjson); google_maps_api_compact_response: Mac 0.87, x86-64 0.92 (yyjson); mesh.pretty: Mac 0.88, x86-64 0.93 (Boost.J​SON); tree-pretty: Mac 0.96, x86-64 0.94 (simdjson); google_maps_api_response: Mac 0.91, x86-64 1.00 (simdjson).</desc>
|
||||
<desc id="nj-blog-heldout-d">Dot plot per file, less is better; below 1.0 json_document is the fastest fully validating library. mesh: Mac 0.67, x86-64 0.57 (simdjson); marine_ik: Mac 0.59, x86-64 0.72 (Boost.J​SON); semanticscholar-corpus: Mac 0.77, x86-64 0.73 (sonic-rs (Rust)); gsoc-2018: Mac 0.59, x86-64 0.77 (simdjson); mesh.pretty: Mac 0.86, x86-64 0.90 (simdjson); twitterescaped: Mac 0.94, x86-64 1.05 (simdjson); numbers: Mac 0.62, x86-64 1.05 (Boost.J​SON); twitter_timeline: Mac 0.97, x86-64 1.16 (simdjson); twitter_api_compact_response: Mac 0.91, x86-64 1.17 (simdjson); github_events: Mac 0.79, x86-64 1.18 (simdjson); twitter_api_response: Mac 0.95, x86-64 1.25 (simdjson); instruments: Mac 0.92, x86-64 1.27 (simdjson); tree-pretty: Mac 0.93, x86-64 1.38 (simdjson); update-center: Mac 0.88, x86-64 1.42 (simdjson); google_maps_api_compact_response: Mac 0.86, x86-64 1.43 (yyjson); google_maps_api_response: Mac 0.91, x86-64 1.45 (simdjson); repeat: Mac 0.65, x86-64 1.54 (simdjson); apache_builds: Mac 1.10, x86-64 1.60 (simdjson); random: Mac 0.81, x86-64 1.60 (simdjson).</desc>
|
||||
<line class="nj-charts-grid" x1="262" y1="50" x2="262" y2="438"/>
|
||||
<text class="nj-charts-tick" x="262" y="454">0.4×</text>
|
||||
<line class="nj-charts-grid" x1="291.867" y1="50" x2="291.867" y2="438"/>
|
||||
@@ -22,81 +22,81 @@
|
||||
<circle class="nj-charts-ojson-dot" cx="134.2" cy="14" r="5"/><text class="nj-charts-leg" x="144.2" y="18.5">x86-64, G​CC 16.2</text>
|
||||
<text class="nj-charts-tick nj-charts-tick--l" x="500" y="48">next on x86-64</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="68" text-anchor="end">mesh</text>
|
||||
<circle class="nj-charts-json-dot" cx="357.0" cy="60.5" r="4.5"><title>mesh, Apple M1 Max: 0.72× the time of Glaze</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="273.8" cy="67.5" r="4.5"><title>mesh, x86-64, G​CC 16.2: 0.44× the time of serde_json (Rust)</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l" x="500" y="68">serde_json (Rust)</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="88" text-anchor="end">semanticscholar-corpus</text>
|
||||
<circle class="nj-charts-json-dot" cx="376.0" cy="80.5" r="4.5"><title>semanticscholar-corpus, Apple M1 Max: 0.78× the time of sonic-rs (Rust)</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="331.5" cy="87.5" r="4.5"><title>semanticscholar-corpus, x86-64, G​CC 16.2: 0.63× the time of sonic-rs (Rust)</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l" x="500" y="88">sonic-rs (Rust)</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="108" text-anchor="end">gsoc-2018</text>
|
||||
<circle class="nj-charts-json-dot" cx="318.5" cy="100.5" r="4.5"><title>gsoc-2018, Apple M1 Max: 0.59× the time of sonic-rs (Rust)</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="332.3" cy="107.5" r="4.5"><title>gsoc-2018, x86-64, G​CC 16.2: 0.64× the time of Boost.J​SON</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l" x="500" y="108">Boost.J​SON</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="128" text-anchor="end">marine_ik</text>
|
||||
<circle class="nj-charts-json-dot" cx="326.2" cy="120.5" r="4.5"><title>marine_ik, Apple M1 Max: 0.62× the time of Glaze</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="333.7" cy="127.5" r="4.5"><title>marine_ik, x86-64, G​CC 16.2: 0.64× the time of Boost.J​SON</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l" x="500" y="128">Boost.J​SON</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="148" text-anchor="end">twitter_api_compact_response</text>
|
||||
<circle class="nj-charts-json-dot" cx="414.0" cy="140.5" r="4.5"><title>twitter_api_compact_response, Apple M1 Max: 0.91× the time of yyjson</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="340.0" cy="147.5" r="4.5"><title>twitter_api_compact_response, x86-64, G​CC 16.2: 0.66× the time of yyjson</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l" x="500" y="148">yyjson</text>
|
||||
<circle class="nj-charts-json-dot" cx="341.4" cy="60.5" r="4.5"><title>mesh, Apple M1 Max: 0.67× the time of Glaze</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="312.3" cy="67.5" r="4.5"><title>mesh, x86-64, G​CC 16.2: 0.57× the time of simdjson</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l" x="500" y="68">simdjson</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="88" text-anchor="end">marine_ik</text>
|
||||
<circle class="nj-charts-json-dot" cx="319.7" cy="80.5" r="4.5"><title>marine_ik, Apple M1 Max: 0.59× the time of Glaze</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="357.4" cy="87.5" r="4.5"><title>marine_ik, x86-64, G​CC 16.2: 0.72× the time of Boost.J​SON</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l" x="500" y="88">Boost.J​SON</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="108" text-anchor="end">semanticscholar-corpus</text>
|
||||
<circle class="nj-charts-json-dot" cx="373.3" cy="100.5" r="4.5"><title>semanticscholar-corpus, Apple M1 Max: 0.77× the time of sonic-rs (Rust)</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="359.6" cy="107.5" r="4.5"><title>semanticscholar-corpus, x86-64, G​CC 16.2: 0.73× the time of sonic-rs (Rust)</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l" x="500" y="108">sonic-rs (Rust)</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="128" text-anchor="end">gsoc-2018</text>
|
||||
<circle class="nj-charts-json-dot" cx="319.2" cy="120.5" r="4.5"><title>gsoc-2018, Apple M1 Max: 0.59× the time of sonic-rs (Rust)</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="371.4" cy="127.5" r="4.5"><title>gsoc-2018, x86-64, G​CC 16.2: 0.77× the time of simdjson</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l" x="500" y="128">simdjson</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="148" text-anchor="end">mesh.pretty</text>
|
||||
<circle class="nj-charts-json-dot" cx="398.0" cy="140.5" r="4.5"><title>mesh.pretty, Apple M1 Max: 0.86× the time of Glaze</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="411.3" cy="147.5" r="4.5"><title>mesh.pretty, x86-64, G​CC 16.2: 0.90× the time of simdjson</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l" x="500" y="148">simdjson</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="168" text-anchor="end">twitterescaped</text>
|
||||
<circle class="nj-charts-json-dot" cx="423.0" cy="160.5" r="4.5"><title>twitterescaped, Apple M1 Max: 0.94× the time of yyjson</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="368.5" cy="167.5" r="4.5"><title>twitterescaped, x86-64, G​CC 16.2: 0.76× the time of simdjson</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l" x="500" y="168">simdjson</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="188" text-anchor="end">update-center</text>
|
||||
<circle class="nj-charts-json-dot" cx="404.3" cy="180.5" r="4.5"><title>update-center, Apple M1 Max: 0.88× the time of sonic-rs (Rust)</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="372.0" cy="187.5" r="4.5"><title>update-center, x86-64, G​CC 16.2: 0.77× the time of simdjson</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l" x="500" y="188">simdjson</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="208" text-anchor="end">github_events</text>
|
||||
<circle class="nj-charts-json-dot" cx="375.6" cy="200.5" r="4.5"><title>github_events, Apple M1 Max: 0.78× the time of simdjson</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="375.2" cy="207.5" r="4.5"><title>github_events, x86-64, G​CC 16.2: 0.78× the time of simdjson</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l" x="500" y="208">simdjson</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="228" text-anchor="end">twitter_api_response</text>
|
||||
<circle class="nj-charts-json-dot" cx="427.3" cy="220.5" r="4.5"><title>twitter_api_response, Apple M1 Max: 0.95× the time of yyjson</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="384.1" cy="227.5" r="4.5"><title>twitter_api_response, x86-64, G​CC 16.2: 0.81× the time of simdjson</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l" x="500" y="228">simdjson</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="248" text-anchor="end">twitter_timeline</text>
|
||||
<circle class="nj-charts-json-dot" cx="437.3" cy="240.5" r="4.5"><title>twitter_timeline, Apple M1 Max: 0.99× the time of yyjson</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="386.2" cy="247.5" r="4.5"><title>twitter_timeline, x86-64, G​CC 16.2: 0.82× the time of yyjson</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l" x="500" y="248">yyjson</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="268" text-anchor="end">numbers</text>
|
||||
<circle class="nj-charts-json-dot" cx="358.0" cy="260.5" r="4.5"><title>numbers, Apple M1 Max: 0.72× the time of Glaze</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="386.3" cy="267.5" r="4.5"><title>numbers, x86-64, G​CC 16.2: 0.82× the time of Boost.J​SON</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l" x="500" y="268">Boost.J​SON</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="288" text-anchor="end">random</text>
|
||||
<circle class="nj-charts-json-dot" cx="388.2" cy="280.5" r="4.5"><title>random, Apple M1 Max: 0.82× the time of simdjson</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="400.0" cy="287.5" r="4.5"><title>random, x86-64, G​CC 16.2: 0.86× the time of simdjson</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l" x="500" y="288">simdjson</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="308" text-anchor="end">repeat</text>
|
||||
<circle class="nj-charts-json-dot" cx="336.7" cy="300.5" r="4.5"><title>repeat, Apple M1 Max: 0.65× the time of simdjson</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="409.2" cy="307.5" r="4.5"><title>repeat, x86-64, G​CC 16.2: 0.89× the time of simdjson</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l" x="500" y="308">simdjson</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="328" text-anchor="end">apache_builds</text>
|
||||
<circle class="nj-charts-json-dot" cx="465.2" cy="320.5" r="4.5"><title>apache_builds, Apple M1 Max: 1.08× the time of simdjson</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="412.0" cy="327.5" r="4.5"><title>apache_builds, x86-64, G​CC 16.2: 0.90× the time of simdjson</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l" x="500" y="328">simdjson</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="348" text-anchor="end">instruments</text>
|
||||
<circle class="nj-charts-json-dot" cx="417.1" cy="340.5" r="4.5"><title>instruments, Apple M1 Max: 0.92× the time of yyjson</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="415.6" cy="347.5" r="4.5"><title>instruments, x86-64, G​CC 16.2: 0.91× the time of simdjson</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l" x="500" y="348">simdjson</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="368" text-anchor="end">google_maps_api_compact_response</text>
|
||||
<circle class="nj-charts-json-dot" cx="403.3" cy="360.5" r="4.5"><title>google_maps_api_compact_response, Apple M1 Max: 0.87× the time of yyjson</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="416.8" cy="367.5" r="4.5"><title>google_maps_api_compact_response, x86-64, G​CC 16.2: 0.92× the time of yyjson</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l" x="500" y="368">yyjson</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="388" text-anchor="end">mesh.pretty</text>
|
||||
<circle class="nj-charts-json-dot" cx="405.5" cy="380.5" r="4.5"><title>mesh.pretty, Apple M1 Max: 0.88× the time of Glaze</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="419.6" cy="387.5" r="4.5"><title>mesh.pretty, x86-64, G​CC 16.2: 0.93× the time of Boost.J​SON</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l" x="500" y="388">Boost.J​SON</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="408" text-anchor="end">tree-pretty</text>
|
||||
<circle class="nj-charts-json-dot" cx="427.9" cy="400.5" r="4.5"><title>tree-pretty, Apple M1 Max: 0.96× the time of yyjson</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="424.3" cy="407.5" r="4.5"><title>tree-pretty, x86-64, G​CC 16.2: 0.94× the time of simdjson</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l" x="500" y="408">simdjson</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="428" text-anchor="end">google_maps_api_response</text>
|
||||
<circle class="nj-charts-json-dot" cx="415.8" cy="420.5" r="4.5"><title>google_maps_api_response, Apple M1 Max: 0.91× the time of yyjson</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="441.2" cy="427.5" r="4.5"><title>google_maps_api_response, x86-64, G​CC 16.2: 1.00× the time of simdjson</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l" x="500" y="428">simdjson</text>
|
||||
<circle class="nj-charts-json-dot" cx="423.9" cy="160.5" r="4.5"><title>twitterescaped, Apple M1 Max: 0.94× the time of yyjson</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="454.7" cy="167.5" r="4.5"><title>twitterescaped, x86-64, G​CC 16.2: 1.05× the time of simdjson</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l nj-charts-best" x="500" y="168">simdjson</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="188" text-anchor="end">numbers</text>
|
||||
<circle class="nj-charts-json-dot" cx="326.8" cy="180.5" r="4.5"><title>numbers, Apple M1 Max: 0.62× the time of Glaze</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="455.0" cy="187.5" r="4.5"><title>numbers, x86-64, G​CC 16.2: 1.05× the time of Boost.J​SON</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l nj-charts-best" x="500" y="188">Boost.J​SON</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="208" text-anchor="end">twitter_timeline</text>
|
||||
<circle class="nj-charts-json-dot" cx="431.5" cy="200.5" r="4.5"><title>twitter_timeline, Apple M1 Max: 0.97× the time of yyjson</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="486.0" cy="207.5" r="4.5"><title>twitter_timeline, x86-64, G​CC 16.2: 1.16× the time of simdjson</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l nj-charts-best" x="500" y="208">simdjson</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="228" text-anchor="end">twitter_api_compact_response</text>
|
||||
<circle class="nj-charts-json-dot" cx="414.0" cy="220.5" r="4.5"><title>twitter_api_compact_response, Apple M1 Max: 0.91× the time of yyjson</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="486.0" cy="227.5" r="4.5"><title>twitter_api_compact_response, x86-64, G​CC 16.2: 1.17× the time of simdjson</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l nj-charts-best" x="500" y="228">simdjson</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="248" text-anchor="end">github_events</text>
|
||||
<circle class="nj-charts-json-dot" cx="377.4" cy="240.5" r="4.5"><title>github_events, Apple M1 Max: 0.79× the time of simdjson</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="486.0" cy="247.5" r="4.5"><title>github_events, x86-64, G​CC 16.2: 1.18× the time of simdjson</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l nj-charts-best" x="500" y="248">simdjson</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="268" text-anchor="end">twitter_api_response</text>
|
||||
<circle class="nj-charts-json-dot" cx="427.0" cy="260.5" r="4.5"><title>twitter_api_response, Apple M1 Max: 0.95× the time of yyjson</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="486.0" cy="267.5" r="4.5"><title>twitter_api_response, x86-64, G​CC 16.2: 1.25× the time of simdjson</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l nj-charts-best" x="500" y="268">simdjson</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="288" text-anchor="end">instruments</text>
|
||||
<circle class="nj-charts-json-dot" cx="417.4" cy="280.5" r="4.5"><title>instruments, Apple M1 Max: 0.92× the time of yyjson</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="486.0" cy="287.5" r="4.5"><title>instruments, x86-64, G​CC 16.2: 1.27× the time of simdjson</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l nj-charts-best" x="500" y="288">simdjson</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="308" text-anchor="end">tree-pretty</text>
|
||||
<circle class="nj-charts-json-dot" cx="419.9" cy="300.5" r="4.5"><title>tree-pretty, Apple M1 Max: 0.93× the time of yyjson</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="486.0" cy="307.5" r="4.5"><title>tree-pretty, x86-64, G​CC 16.2: 1.38× the time of simdjson</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l nj-charts-best" x="500" y="308">simdjson</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="328" text-anchor="end">update-center</text>
|
||||
<circle class="nj-charts-json-dot" cx="405.3" cy="320.5" r="4.5"><title>update-center, Apple M1 Max: 0.88× the time of sonic-rs (Rust)</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="486.0" cy="327.5" r="4.5"><title>update-center, x86-64, G​CC 16.2: 1.42× the time of simdjson</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l nj-charts-best" x="500" y="328">simdjson</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="348" text-anchor="end">google_maps_api_compact_response</text>
|
||||
<circle class="nj-charts-json-dot" cx="398.5" cy="340.5" r="4.5"><title>google_maps_api_compact_response, Apple M1 Max: 0.86× the time of yyjson</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="486.0" cy="347.5" r="4.5"><title>google_maps_api_compact_response, x86-64, G​CC 16.2: 1.43× the time of yyjson</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l nj-charts-best" x="500" y="348">yyjson</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="368" text-anchor="end">google_maps_api_response</text>
|
||||
<circle class="nj-charts-json-dot" cx="415.8" cy="360.5" r="4.5"><title>google_maps_api_response, Apple M1 Max: 0.91× the time of yyjson</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="486.0" cy="367.5" r="4.5"><title>google_maps_api_response, x86-64, G​CC 16.2: 1.45× the time of simdjson</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l nj-charts-best" x="500" y="368">simdjson</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="388" text-anchor="end">repeat</text>
|
||||
<circle class="nj-charts-json-dot" cx="336.7" cy="380.5" r="4.5"><title>repeat, Apple M1 Max: 0.65× the time of simdjson</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="486.0" cy="387.5" r="4.5"><title>repeat, x86-64, G​CC 16.2: 1.54× the time of simdjson</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l nj-charts-best" x="500" y="388">simdjson</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="408" text-anchor="end">apache_builds</text>
|
||||
<circle class="nj-charts-json-dot" cx="471.0" cy="400.5" r="4.5"><title>apache_builds, Apple M1 Max: 1.10× the time of simdjson</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="486.0" cy="407.5" r="4.5"><title>apache_builds, x86-64, G​CC 16.2: 1.60× the time of simdjson</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l nj-charts-best" x="500" y="408">simdjson</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="252" y="428" text-anchor="end">random</text>
|
||||
<circle class="nj-charts-json-dot" cx="383.8" cy="420.5" r="4.5"><title>random, Apple M1 Max: 0.81× the time of simdjson</title></circle>
|
||||
<circle class="nj-charts-ojson-dot" cx="486.0" cy="427.5" r="4.5"><title>random, x86-64, G​CC 16.2: 1.60× the time of simdjson</title></circle>
|
||||
<text class="nj-charts-tick nj-charts-tick--l nj-charts-best" x="500" y="428">simdjson</text>
|
||||
<line class="nj-charts-ref" x1="441.2" y1="50" x2="441.2" y2="438"/>
|
||||
<text class="nj-charts-tick" x="441.2" y="44">as fast as the next</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
@@ -1,6 +1,6 @@
|
||||
<svg class="nj-fig nj-charts nj-charts--blog" viewBox="0 0 560 604" role="img" aria-labelledby="nj-blog-overview nj-blog-overview-d" xmlns="http://www.w3.org/2000/svg">
|
||||
<title id="nj-blog-overview">Speedup of 3.13.0 over 3.12.0 per workload, Apple M1 Max, Apple clang</title>
|
||||
<desc id="nj-blog-overview-d">Horizontal bars of the speedup, more is better. twitter.json 3.5x; citm_catalog.json 5.1x; canada.json 4.1x; canada.json, indented 7.4x; citm, ordered_json 8.2x; twitter, std::ifstream 2.5x; citm, FILE* 15x; citm, accept() 14x; dump() twitter 6.6x; dump() canada 2.9x; dump(4) citm 4.6x; to_cbor() twitter 4.4x; twitter, memory 3.5x; twitter, FILE* 9.2x; diff() canada 10x; iterate canada 1.96x; copy + destroy citm 1.11x; == citm 1.01x.</desc>
|
||||
<desc id="nj-blog-overview-d">Horizontal bars of the speedup, more is better. twitter.json 3.5x; citm_catalog.json 5.0x; canada.json 4.0x; canada.json, indented 7.4x; citm, ordered_json 8.1x; twitter, std::ifstream 2.5x; citm, FILE* 15x; citm, accept() 13x; dump() twitter 6.6x; dump() canada 2.9x; dump(4) citm 4.6x; to_cbor() twitter 4.5x; twitter, memory 3.5x; twitter, FILE* 9.3x; diff() canada 10x; iterate canada 2.0x; copy + destroy citm 1.10x; == citm 1.01x.</desc>
|
||||
<text class="nj-charts-panel" x="8" y="20">Parsing</text>
|
||||
<text class="nj-charts-panel" x="8" y="244">Writing</text>
|
||||
<text class="nj-charts-panel" x="8" y="372">Reading C​BOR</text>
|
||||
@@ -38,56 +38,56 @@
|
||||
<line class="nj-charts-grid" x1="520" y1="8" x2="520" y2="560"/>
|
||||
<text class="nj-charts-tick" x="520" y="576">16×</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="42" text-anchor="end">twitter.json</text>
|
||||
<path class="nj-charts-c1" d="M190 30 H257.981 Q261.981 30 261.981 34 V41 Q261.981 45 257.981 45 H190 Z"><title>twitter.json: 3.5×</title></path>
|
||||
<text class="nj-charts-val" x="266.981" y="42">3.5×</text>
|
||||
<path class="nj-charts-c1" d="M190 30 H258.806 Q262.806 30 262.806 34 V41 Q262.806 45 258.806 45 H190 Z"><title>twitter.json: 3.5×</title></path>
|
||||
<text class="nj-charts-val" x="267.806" y="42">3.5×</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="66" text-anchor="end">citm_catalog.json</text>
|
||||
<path class="nj-charts-c1" d="M190 54 H291.394 Q295.394 54 295.394 58 V65 Q295.394 69 291.394 69 H190 Z"><title>citm_catalog.json: 5.1×</title></path>
|
||||
<text class="nj-charts-val" x="300.394" y="66">5.1×</text>
|
||||
<path class="nj-charts-c1" d="M190 54 H290.156 Q294.156 54 294.156 58 V65 Q294.156 69 290.156 69 H190 Z"><title>citm_catalog.json: 5.0×</title></path>
|
||||
<text class="nj-charts-val" x="299.156" y="66">5.0×</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="90" text-anchor="end">canada.json</text>
|
||||
<path class="nj-charts-c1" d="M190 78 H270.15 Q274.15 78 274.15 82 V89 Q274.15 93 270.15 93 H190 Z"><title>canada.json: 4.1×</title></path>
|
||||
<text class="nj-charts-val" x="279.15" y="90">4.1×</text>
|
||||
<path class="nj-charts-c1" d="M190 78 H269.531 Q273.531 78 273.531 82 V89 Q273.531 93 269.531 93 H190 Z"><title>canada.json: 4.0×</title></path>
|
||||
<text class="nj-charts-val" x="278.531" y="90">4.0×</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="114" text-anchor="end">canada.json, indented</text>
|
||||
<path class="nj-charts-c1" d="M190 102 H338.831 Q342.831 102 342.831 106 V113 Q342.831 117 338.831 117 H190 Z"><title>canada.json, indented: 7.4×</title></path>
|
||||
<text class="nj-charts-val" x="347.831" y="114">7.4×</text>
|
||||
<path class="nj-charts-c1" d="M190 102 H338.625 Q342.625 102 342.625 106 V113 Q342.625 117 338.625 117 H190 Z"><title>canada.json, indented: 7.4×</title></path>
|
||||
<text class="nj-charts-val" x="347.625" y="114">7.4×</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="138" text-anchor="end">citm, ordered_json</text>
|
||||
<path class="nj-charts-c1" d="M190 126 H354.712 Q358.712 126 358.712 130 V137 Q358.712 141 354.712 141 H190 Z"><title>citm, ordered_json: 8.2×</title></path>
|
||||
<text class="nj-charts-val" x="363.712" y="138">8.2×</text>
|
||||
<path class="nj-charts-c1" d="M190 126 H353.269 Q357.269 126 357.269 130 V137 Q357.269 141 353.269 141 H190 Z"><title>citm, ordered_json: 8.1×</title></path>
|
||||
<text class="nj-charts-val" x="362.269" y="138">8.1×</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="162" text-anchor="end">twitter, std::ifstream</text>
|
||||
<path class="nj-charts-c1" d="M190 150 H236.738 Q240.738 150 240.738 154 V161 Q240.738 165 236.738 165 H190 Z"><title>twitter, std::ifstream: 2.5×</title></path>
|
||||
<text class="nj-charts-val" x="245.738" y="162">2.5×</text>
|
||||
<path class="nj-charts-c1" d="M190 150 H236.944 Q240.944 150 240.944 154 V161 Q240.944 165 236.944 165 H190 Z"><title>twitter, std::ifstream: 2.5×</title></path>
|
||||
<text class="nj-charts-val" x="245.944" y="162">2.5×</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="186" text-anchor="end">citm, FILE*</text>
|
||||
<path class="nj-charts-c1" d="M190 174 H494.137 Q498.137 174 498.137 178 V185 Q498.137 189 494.137 189 H190 Z"><title>citm, FILE*: 15×</title></path>
|
||||
<text class="nj-charts-val" x="503.137" y="186">15×</text>
|
||||
<path class="nj-charts-c1" d="M190 174 H492.694 Q496.694 174 496.694 178 V185 Q496.694 189 492.694 189 H190 Z"><title>citm, FILE*: 15×</title></path>
|
||||
<text class="nj-charts-val" x="501.694" y="186">15×</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="210" text-anchor="end">citm, accept()</text>
|
||||
<path class="nj-charts-c1" d="M190 198 H467.738 Q471.738 198 471.738 202 V209 Q471.738 213 467.738 213 H190 Z"><title>citm, accept(): 14×</title></path>
|
||||
<text class="nj-charts-val" x="476.738" y="210">14×</text>
|
||||
<path class="nj-charts-c1" d="M190 198 H463.613 Q467.613 198 467.613 202 V209 Q467.613 213 463.613 213 H190 Z"><title>citm, accept(): 13×</title></path>
|
||||
<text class="nj-charts-val" x="472.613" y="210">13×</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="266" text-anchor="end">dump() twitter</text>
|
||||
<path class="nj-charts-c1" d="M190 254 H322.125 Q326.125 254 326.125 258 V265 Q326.125 269 322.125 269 H190 Z"><title>dump() twitter: 6.6×</title></path>
|
||||
<text class="nj-charts-val" x="331.125" y="266">6.6×</text>
|
||||
<path class="nj-charts-c1" d="M190 254 H321.712 Q325.712 254 325.712 258 V265 Q325.712 269 321.712 269 H190 Z"><title>dump() twitter: 6.6×</title></path>
|
||||
<text class="nj-charts-val" x="330.712" y="266">6.6×</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="290" text-anchor="end">dump() canada</text>
|
||||
<path class="nj-charts-c1" d="M190 278 H245.812 Q249.812 278 249.812 282 V289 Q249.812 293 245.812 293 H190 Z"><title>dump() canada: 2.9×</title></path>
|
||||
<text class="nj-charts-val" x="254.812" y="290">2.9×</text>
|
||||
<path class="nj-charts-c1" d="M190 278 H246.019 Q250.019 278 250.019 282 V289 Q250.019 293 246.019 293 H190 Z"><title>dump() canada: 2.9×</title></path>
|
||||
<text class="nj-charts-val" x="255.019" y="290">2.9×</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="314" text-anchor="end">dump(4) citm</text>
|
||||
<path class="nj-charts-c1" d="M190 302 H281.288 Q285.288 302 285.288 306 V313 Q285.288 317 281.288 317 H190 Z"><title>dump(4) citm: 4.6×</title></path>
|
||||
<text class="nj-charts-val" x="290.288" y="314">4.6×</text>
|
||||
<path class="nj-charts-c1" d="M190 302 H281.7 Q285.7 302 285.7 306 V313 Q285.7 317 281.7 317 H190 Z"><title>dump(4) citm: 4.6×</title></path>
|
||||
<text class="nj-charts-val" x="290.7" y="314">4.6×</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="338" text-anchor="end">to_cbor() twitter</text>
|
||||
<path class="nj-charts-c1" d="M190 326 H276.956 Q280.956 326 280.956 330 V337 Q280.956 341 276.956 341 H190 Z"><title>to_cbor() twitter: 4.4×</title></path>
|
||||
<text class="nj-charts-val" x="285.956" y="338">4.4×</text>
|
||||
<path class="nj-charts-c1" d="M190 326 H279.637 Q283.637 326 283.637 330 V337 Q283.637 341 279.637 341 H190 Z"><title>to_cbor() twitter: 4.5×</title></path>
|
||||
<text class="nj-charts-val" x="288.637" y="338">4.5×</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="394" text-anchor="end">twitter, memory</text>
|
||||
<path class="nj-charts-c1" d="M190 382 H258.6 Q262.6 382 262.6 386 V393 Q262.6 397 258.6 397 H190 Z"><title>twitter, memory: 3.5×</title></path>
|
||||
<text class="nj-charts-val" x="267.6" y="394">3.5×</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="418" text-anchor="end">twitter, FILE*</text>
|
||||
<path class="nj-charts-c1" d="M190 406 H376.369 Q380.369 406 380.369 410 V417 Q380.369 421 376.369 421 H190 Z"><title>twitter, FILE*: 9.2×</title></path>
|
||||
<text class="nj-charts-val" x="385.369" y="418">9.2×</text>
|
||||
<path class="nj-charts-c1" d="M190 406 H378.019 Q382.019 406 382.019 410 V417 Q382.019 421 378.019 421 H190 Z"><title>twitter, FILE*: 9.3×</title></path>
|
||||
<text class="nj-charts-val" x="387.019" y="418">9.3×</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="474" text-anchor="end">diff() canada</text>
|
||||
<path class="nj-charts-c1" d="M190 462 H401.325 Q405.325 462 405.325 466 V473 Q405.325 477 401.325 477 H190 Z"><title>diff() canada: 10×</title></path>
|
||||
<text class="nj-charts-val" x="410.325" y="474">10×</text>
|
||||
<path class="nj-charts-c1" d="M190 462 H396.581 Q400.581 462 400.581 466 V473 Q400.581 477 396.581 477 H190 Z"><title>diff() canada: 10×</title></path>
|
||||
<text class="nj-charts-val" x="405.581" y="474">10×</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="498" text-anchor="end">iterate canada</text>
|
||||
<path class="nj-charts-c1" d="M190 486 H226.425 Q230.425 486 230.425 490 V497 Q230.425 501 226.425 501 H190 Z"><title>iterate canada: 1.96×</title></path>
|
||||
<text class="nj-charts-val" x="235.425" y="498">1.96×</text>
|
||||
<path class="nj-charts-c1" d="M190 486 H228.075 Q232.075 486 232.075 490 V497 Q232.075 501 228.075 501 H190 Z"><title>iterate canada: 2.0×</title></path>
|
||||
<text class="nj-charts-val" x="237.075" y="498">2.0×</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="522" text-anchor="end">copy + destroy citm</text>
|
||||
<path class="nj-charts-c1" d="M190 510 H208.894 Q212.894 510 212.894 514 V521 Q212.894 525 208.894 525 H190 Z"><title>copy + destroy citm: 1.11×</title></path>
|
||||
<text class="nj-charts-val" x="217.894" y="522">1.11×</text>
|
||||
<path class="nj-charts-c1" d="M190 510 H208.688 Q212.688 510 212.688 514 V521 Q212.688 525 208.688 525 H190 Z"><title>copy + destroy citm: 1.10×</title></path>
|
||||
<text class="nj-charts-val" x="217.688" y="522">1.10×</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-tick--r" x="182" y="546" text-anchor="end">== citm</text>
|
||||
<path class="nj-charts-c1" d="M190 534 H206.831 Q210.831 534 210.831 538 V545 Q210.831 549 206.831 549 H190 Z"><title>== citm: 1.01×</title></path>
|
||||
<text class="nj-charts-val" x="215.831" y="546">1.01×</text>
|
||||
|
||||
|
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
@@ -1,6 +1,6 @@
|
||||
<svg class="nj-fig nj-charts nj-charts--blog" viewBox="0 0 600 618" role="img" aria-labelledby="nj-blog-price nj-blog-price-d" xmlns="http://www.w3.org/2000/svg">
|
||||
<title id="nj-blog-price">Compile time of two programs with 3.13.0, alone, with a precompiled header and as a module, compared with 3.12.0</title>
|
||||
<desc id="nj-blog-price-d">Horizontal bars of the change in compile time against 3.12.0, less is better. Apple clang 21, -O0 (debug), count_numbers, 3.13.0: +36%; Apple clang 21, -O0 (debug), count_numbers, 3.13.0, precompiled header: -23%; Apple clang 21, -O0 (debug), count_numbers, 3.13.0, module: -5%; Apple clang 21, -O0 (debug), server_config, 3.13.0: +36%; Apple clang 21, -O0 (debug), server_config, 3.13.0, precompiled header: -20%; Apple clang 21, -O0 (debug), server_config, 3.13.0, module: +8%; Apple clang 21, -O2, count_numbers, 3.13.0: +43%; Apple clang 21, -O2, count_numbers, 3.13.0, precompiled header: -1%; Apple clang 21, -O2, count_numbers, 3.13.0, module: +12%; Apple clang 21, -O2, server_config, 3.13.0: +42%; Apple clang 21, -O2, server_config, 3.13.0, precompiled header: +12%; Apple clang 21, -O2, server_config, 3.13.0, module: +22%; G​CC 16, -O0 (debug), count_numbers, 3.13.0: +68%; G​CC 16, -O0 (debug), count_numbers, 3.13.0, precompiled header: +12%; G​CC 16, -O0 (debug), count_numbers, 3.13.0, module: +13%; G​CC 16, -O0 (debug), server_config, 3.13.0: +50%; G​CC 16, -O0 (debug), server_config, 3.13.0, precompiled header: +15%; G​CC 16, -O0 (debug), server_config, 3.13.0, module: +16%; G​CC 16, -O2, count_numbers, 3.13.0: +60%; G​CC 16, -O2, count_numbers, 3.13.0, precompiled header: +28%; G​CC 16, -O2, count_numbers, 3.13.0, module: +27%; G​CC 16, -O2, server_config, 3.13.0: +52%; G​CC 16, -O2, server_config, 3.13.0, precompiled header: +29%; G​CC 16, -O2, server_config, 3.13.0, module: +31%.</desc>
|
||||
<desc id="nj-blog-price-d">Horizontal bars of the change in compile time against 3.12.0, less is better. Apple clang 21, -O0 (debug), count_numbers, 3.13.0: +41%; Apple clang 21, -O0 (debug), count_numbers, 3.13.0, precompiled header: -25%; Apple clang 21, -O0 (debug), count_numbers, 3.13.0, module: -2%; Apple clang 21, -O0 (debug), server_config, 3.13.0: +42%; Apple clang 21, -O0 (debug), server_config, 3.13.0, precompiled header: -22%; Apple clang 21, -O0 (debug), server_config, 3.13.0, module: +3%; Apple clang 21, -O2, count_numbers, 3.13.0: +48%; Apple clang 21, -O2, count_numbers, 3.13.0, precompiled header: +3%; Apple clang 21, -O2, count_numbers, 3.13.0, module: +21%; Apple clang 21, -O2, server_config, 3.13.0: +46%; Apple clang 21, -O2, server_config, 3.13.0, precompiled header: +13%; Apple clang 21, -O2, server_config, 3.13.0, module: +24%; G​CC 16, -O0 (debug), count_numbers, 3.13.0: +64%; G​CC 16, -O0 (debug), count_numbers, 3.13.0, precompiled header: +10%; G​CC 16, -O0 (debug), count_numbers, 3.13.0, module: +9%; G​CC 16, -O0 (debug), server_config, 3.13.0: +50%; G​CC 16, -O0 (debug), server_config, 3.13.0, precompiled header: +13%; G​CC 16, -O0 (debug), server_config, 3.13.0, module: +13%; G​CC 16, -O2, count_numbers, 3.13.0: +62%; G​CC 16, -O2, count_numbers, 3.13.0, precompiled header: +27%; G​CC 16, -O2, count_numbers, 3.13.0, module: +27%; G​CC 16, -O2, server_config, 3.13.0: +54%; G​CC 16, -O2, server_config, 3.13.0, precompiled header: +31%; G​CC 16, -O2, server_config, 3.13.0, module: +31%.</desc>
|
||||
<rect class="nj-charts-c2" x="8" y="6" width="12" height="12" rx="3"/>
|
||||
<text class="nj-charts-leg" x="26" y="16.5">3.13.0</text>
|
||||
<rect class="nj-charts-c1" x="97.2" y="6" width="12" height="12" rx="3"/>
|
||||
@@ -15,19 +15,19 @@
|
||||
<line class="nj-charts-grid" x1="457.5" y1="74" x2="457.5" y2="170"/>
|
||||
<line class="nj-charts-grid" x1="525.833" y1="74" x2="525.833" y2="170"/>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="142" y="101" text-anchor="end">count_numbers</text>
|
||||
<path class="nj-charts-c2" d="M320.833 78 H439.833 Q443.833 78 443.833 82 V85 Q443.833 89 439.833 89 H320.833 Z"><title>count_numbers, Apple clang 21, -O0 (debug), 3.13.0: 1,131 ms against 831 ms with 3.12.0 (+36%)</title></path>
|
||||
<text class="nj-charts-val" x="448.833" y="87.5">+36%</text>
|
||||
<path class="nj-charts-c1" d="M320.833 92 H246.25 Q242.25 92 242.25 96 V99 Q242.25 103 246.25 103 H320.833 Z"><title>count_numbers, Apple clang 21, -O0 (debug), 3.13.0, precompiled header: 639 ms against 831 ms with 3.12.0 (−23%)</title></path>
|
||||
<text class="nj-charts-val" x="237.25" y="101.5" text-anchor="end">−23%</text>
|
||||
<path class="nj-charts-c3" d="M320.833 106 H307.75 Q303.75 106 303.75 110 V113 Q303.75 117 307.75 117 H320.833 Z"><title>count_numbers, Apple clang 21, -O0 (debug), 3.13.0, module: 790 ms against 831 ms with 3.12.0 (−5%)</title></path>
|
||||
<text class="nj-charts-val" x="298.75" y="115.5" text-anchor="end">−5%</text>
|
||||
<path class="nj-charts-c2" d="M320.833 78 H456.917 Q460.917 78 460.917 82 V85 Q460.917 89 456.917 89 H320.833 Z"><title>count_numbers, Apple clang 21, -O0 (debug), 3.13.0: 1,245 ms against 886 ms with 3.12.0 (+41%)</title></path>
|
||||
<text class="nj-charts-val" x="465.917" y="87.5">+41%</text>
|
||||
<path class="nj-charts-c1" d="M320.833 92 H239.417 Q235.417 92 235.417 96 V99 Q235.417 103 239.417 103 H320.833 Z"><title>count_numbers, Apple clang 21, -O0 (debug), 3.13.0, precompiled header: 664 ms against 886 ms with 3.12.0 (−25%)</title></path>
|
||||
<text class="nj-charts-val" x="230.417" y="101.5" text-anchor="end">−25%</text>
|
||||
<path class="nj-charts-c3" d="M320.833 106 H318 Q314 106 314 110 V113 Q314 117 318 117 H320.833 Z"><title>count_numbers, Apple clang 21, -O0 (debug), 3.13.0, module: 871 ms against 886 ms with 3.12.0 (−2%)</title></path>
|
||||
<text class="nj-charts-val" x="309" y="115.5" text-anchor="end">−2%</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="142" y="150" text-anchor="end">server_config</text>
|
||||
<path class="nj-charts-c2" d="M320.833 127 H439.833 Q443.833 127 443.833 131 V134 Q443.833 138 439.833 138 H320.833 Z"><title>server_config, Apple clang 21, -O0 (debug), 3.13.0: 1,312 ms against 963 ms with 3.12.0 (+36%)</title></path>
|
||||
<text class="nj-charts-val" x="448.833" y="136.5">+36%</text>
|
||||
<path class="nj-charts-c1" d="M320.833 141 H256.5 Q252.5 141 252.5 145 V148 Q252.5 152 256.5 152 H320.833 Z"><title>server_config, Apple clang 21, -O0 (debug), 3.13.0, precompiled header: 774 ms against 963 ms with 3.12.0 (−20%)</title></path>
|
||||
<text class="nj-charts-val" x="247.5" y="150.5" text-anchor="end">−20%</text>
|
||||
<path class="nj-charts-c3" d="M320.833 155 H344.167 Q348.167 155 348.167 159 V162 Q348.167 166 344.167 166 H320.833 Z"><title>server_config, Apple clang 21, -O0 (debug), 3.13.0, module: 1,036 ms against 963 ms with 3.12.0 (+8%)</title></path>
|
||||
<text class="nj-charts-val" x="353.167" y="164.5">+8%</text>
|
||||
<path class="nj-charts-c2" d="M320.833 127 H460.333 Q464.333 127 464.333 131 V134 Q464.333 138 460.333 138 H320.833 Z"><title>server_config, Apple clang 21, -O0 (debug), 3.13.0: 1,472 ms against 1,037 ms with 3.12.0 (+42%)</title></path>
|
||||
<text class="nj-charts-val" x="469.333" y="136.5">+42%</text>
|
||||
<path class="nj-charts-c1" d="M320.833 141 H249.667 Q245.667 141 245.667 145 V148 Q245.667 152 249.667 152 H320.833 Z"><title>server_config, Apple clang 21, -O0 (debug), 3.13.0, precompiled header: 809 ms against 1,037 ms with 3.12.0 (−22%)</title></path>
|
||||
<text class="nj-charts-val" x="240.667" y="150.5" text-anchor="end">−22%</text>
|
||||
<path class="nj-charts-c3" d="M320.833 155 H327.083 Q331.083 155 331.083 159 V162 Q331.083 166 327.083 166 H320.833 Z"><title>server_config, Apple clang 21, -O0 (debug), 3.13.0, module: 1,072 ms against 1,037 ms with 3.12.0 (+3%)</title></path>
|
||||
<text class="nj-charts-val" x="336.083" y="164.5">+3%</text>
|
||||
<text class="nj-charts-panel" x="8" y="198">Apple clang 21, -O2</text>
|
||||
<line class="nj-charts-grid" x1="184.167" y1="204" x2="184.167" y2="300"/>
|
||||
<line class="nj-charts-grid" x1="252.5" y1="204" x2="252.5" y2="300"/>
|
||||
@@ -35,19 +35,19 @@
|
||||
<line class="nj-charts-grid" x1="457.5" y1="204" x2="457.5" y2="300"/>
|
||||
<line class="nj-charts-grid" x1="525.833" y1="204" x2="525.833" y2="300"/>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="142" y="231" text-anchor="end">count_numbers</text>
|
||||
<path class="nj-charts-c2" d="M320.833 208 H463.75 Q467.75 208 467.75 212 V215 Q467.75 219 463.75 219 H320.833 Z"><title>count_numbers, Apple clang 21, -O2, 3.13.0: 1,898 ms against 1,328 ms with 3.12.0 (+43%)</title></path>
|
||||
<text class="nj-charts-val" x="472.75" y="217.5">+43%</text>
|
||||
<path class="nj-charts-c1" d="M320.833 222 H320.833 Q317.417 222 317.417 225.417 V229.583 Q317.417 233 320.833 233 H320.833 Z"><title>count_numbers, Apple clang 21, -O2, 3.13.0, precompiled header: 1,312 ms against 1,328 ms with 3.12.0 (−1%)</title></path>
|
||||
<text class="nj-charts-val" x="312.417" y="231.5" text-anchor="end">−1%</text>
|
||||
<path class="nj-charts-c3" d="M320.833 236 H357.833 Q361.833 236 361.833 240 V243 Q361.833 247 357.833 247 H320.833 Z"><title>count_numbers, Apple clang 21, -O2, 3.13.0, module: 1,491 ms against 1,328 ms with 3.12.0 (+12%)</title></path>
|
||||
<text class="nj-charts-val" x="366.833" y="245.5">+12%</text>
|
||||
<path class="nj-charts-c2" d="M320.833 208 H480.833 Q484.833 208 484.833 212 V215 Q484.833 219 480.833 219 H320.833 Z"><title>count_numbers, Apple clang 21, -O2, 3.13.0: 1,992 ms against 1,348 ms with 3.12.0 (+48%)</title></path>
|
||||
<text class="nj-charts-val" x="489.833" y="217.5">+48%</text>
|
||||
<path class="nj-charts-c1" d="M320.833 222 H327.083 Q331.083 222 331.083 226 V229 Q331.083 233 327.083 233 H320.833 Z"><title>count_numbers, Apple clang 21, -O2, 3.13.0, precompiled header: 1,391 ms against 1,348 ms with 3.12.0 (+3%)</title></path>
|
||||
<text class="nj-charts-val" x="336.083" y="231.5">+3%</text>
|
||||
<path class="nj-charts-c3" d="M320.833 236 H388.583 Q392.583 236 392.583 240 V243 Q392.583 247 388.583 247 H320.833 Z"><title>count_numbers, Apple clang 21, -O2, 3.13.0, module: 1,637 ms against 1,348 ms with 3.12.0 (+21%)</title></path>
|
||||
<text class="nj-charts-val" x="397.583" y="245.5">+21%</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="142" y="280" text-anchor="end">server_config</text>
|
||||
<path class="nj-charts-c2" d="M320.833 257 H460.333 Q464.333 257 464.333 261 V264 Q464.333 268 460.333 268 H320.833 Z"><title>server_config, Apple clang 21, -O2, 3.13.0: 2,251 ms against 1,584 ms with 3.12.0 (+42%)</title></path>
|
||||
<text class="nj-charts-val" x="469.333" y="266.5">+42%</text>
|
||||
<path class="nj-charts-c1" d="M320.833 271 H357.833 Q361.833 271 361.833 275 V278 Q361.833 282 357.833 282 H320.833 Z"><title>server_config, Apple clang 21, -O2, 3.13.0, precompiled header: 1,779 ms against 1,584 ms with 3.12.0 (+12%)</title></path>
|
||||
<text class="nj-charts-val" x="366.833" y="280.5">+12%</text>
|
||||
<path class="nj-charts-c3" d="M320.833 285 H392 Q396 285 396 289 V292 Q396 296 392 296 H320.833 Z"><title>server_config, Apple clang 21, -O2, 3.13.0, module: 1,926 ms against 1,584 ms with 3.12.0 (+22%)</title></path>
|
||||
<text class="nj-charts-val" x="401" y="294.5">+22%</text>
|
||||
<path class="nj-charts-c2" d="M320.833 257 H474 Q478 257 478 261 V264 Q478 268 474 268 H320.833 Z"><title>server_config, Apple clang 21, -O2, 3.13.0: 2,412 ms against 1,647 ms with 3.12.0 (+46%)</title></path>
|
||||
<text class="nj-charts-val" x="483" y="266.5">+46%</text>
|
||||
<path class="nj-charts-c1" d="M320.833 271 H361.25 Q365.25 271 365.25 275 V278 Q365.25 282 361.25 282 H320.833 Z"><title>server_config, Apple clang 21, -O2, 3.13.0, precompiled header: 1,854 ms against 1,647 ms with 3.12.0 (+13%)</title></path>
|
||||
<text class="nj-charts-val" x="370.25" y="280.5">+13%</text>
|
||||
<path class="nj-charts-c3" d="M320.833 285 H398.833 Q402.833 285 402.833 289 V292 Q402.833 296 398.833 296 H320.833 Z"><title>server_config, Apple clang 21, -O2, 3.13.0, module: 2,047 ms against 1,647 ms with 3.12.0 (+24%)</title></path>
|
||||
<text class="nj-charts-val" x="407.833" y="294.5">+24%</text>
|
||||
<text class="nj-charts-panel" x="8" y="328">G​CC 16, -O0 (debug)</text>
|
||||
<line class="nj-charts-grid" x1="184.167" y1="334" x2="184.167" y2="430"/>
|
||||
<line class="nj-charts-grid" x1="252.5" y1="334" x2="252.5" y2="430"/>
|
||||
@@ -55,19 +55,19 @@
|
||||
<line class="nj-charts-grid" x1="457.5" y1="334" x2="457.5" y2="430"/>
|
||||
<line class="nj-charts-grid" x1="525.833" y1="334" x2="525.833" y2="430"/>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="142" y="361" text-anchor="end">count_numbers</text>
|
||||
<path class="nj-charts-c2" d="M320.833 338 H549.167 Q553.167 338 553.167 342 V345 Q553.167 349 549.167 349 H320.833 Z"><title>count_numbers, G​CC 16, -O0 (debug), 3.13.0: 2,385 ms against 1,416 ms with 3.12.0 (+68%)</title></path>
|
||||
<text class="nj-charts-val" x="558.167" y="347.5">+68%</text>
|
||||
<path class="nj-charts-c1" d="M320.833 352 H357.833 Q361.833 352 361.833 356 V359 Q361.833 363 357.833 363 H320.833 Z"><title>count_numbers, G​CC 16, -O0 (debug), 3.13.0, precompiled header: 1,593 ms against 1,416 ms with 3.12.0 (+12%)</title></path>
|
||||
<text class="nj-charts-val" x="366.833" y="361.5">+12%</text>
|
||||
<path class="nj-charts-c3" d="M320.833 366 H361.25 Q365.25 366 365.25 370 V373 Q365.25 377 361.25 377 H320.833 Z"><title>count_numbers, G​CC 16, -O0 (debug), 3.13.0, module: 1,604 ms against 1,416 ms with 3.12.0 (+13%)</title></path>
|
||||
<text class="nj-charts-val" x="370.25" y="375.5">+13%</text>
|
||||
<path class="nj-charts-c2" d="M320.833 338 H535.5 Q539.5 338 539.5 342 V345 Q539.5 349 535.5 349 H320.833 Z"><title>count_numbers, G​CC 16, -O0 (debug), 3.13.0: 2,490 ms against 1,514 ms with 3.12.0 (+64%)</title></path>
|
||||
<text class="nj-charts-val" x="544.5" y="347.5">+64%</text>
|
||||
<path class="nj-charts-c1" d="M320.833 352 H351 Q355 352 355 356 V359 Q355 363 351 363 H320.833 Z"><title>count_numbers, G​CC 16, -O0 (debug), 3.13.0, precompiled header: 1,667 ms against 1,514 ms with 3.12.0 (+10%)</title></path>
|
||||
<text class="nj-charts-val" x="360" y="361.5">+10%</text>
|
||||
<path class="nj-charts-c3" d="M320.833 366 H347.583 Q351.583 366 351.583 370 V373 Q351.583 377 347.583 377 H320.833 Z"><title>count_numbers, G​CC 16, -O0 (debug), 3.13.0, module: 1,652 ms against 1,514 ms with 3.12.0 (+9%)</title></path>
|
||||
<text class="nj-charts-val" x="356.583" y="375.5">+9%</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="142" y="410" text-anchor="end">server_config</text>
|
||||
<path class="nj-charts-c2" d="M320.833 387 H487.667 Q491.667 387 491.667 391 V394 Q491.667 398 487.667 398 H320.833 Z"><title>server_config, G​CC 16, -O0 (debug), 3.13.0: 2,820 ms against 1,878 ms with 3.12.0 (+50%)</title></path>
|
||||
<path class="nj-charts-c2" d="M320.833 387 H487.667 Q491.667 387 491.667 391 V394 Q491.667 398 487.667 398 H320.833 Z"><title>server_config, G​CC 16, -O0 (debug), 3.13.0: 2,926 ms against 1,948 ms with 3.12.0 (+50%)</title></path>
|
||||
<text class="nj-charts-val" x="496.667" y="396.5">+50%</text>
|
||||
<path class="nj-charts-c1" d="M320.833 401 H368.083 Q372.083 401 372.083 405 V408 Q372.083 412 368.083 412 H320.833 Z"><title>server_config, G​CC 16, -O0 (debug), 3.13.0, precompiled header: 2,152 ms against 1,878 ms with 3.12.0 (+15%)</title></path>
|
||||
<text class="nj-charts-val" x="377.083" y="410.5">+15%</text>
|
||||
<path class="nj-charts-c3" d="M320.833 415 H371.5 Q375.5 415 375.5 419 V422 Q375.5 426 371.5 426 H320.833 Z"><title>server_config, G​CC 16, -O0 (debug), 3.13.0, module: 2,180 ms against 1,878 ms with 3.12.0 (+16%)</title></path>
|
||||
<text class="nj-charts-val" x="380.5" y="424.5">+16%</text>
|
||||
<path class="nj-charts-c1" d="M320.833 401 H361.25 Q365.25 401 365.25 405 V408 Q365.25 412 361.25 412 H320.833 Z"><title>server_config, G​CC 16, -O0 (debug), 3.13.0, precompiled header: 2,192 ms against 1,948 ms with 3.12.0 (+13%)</title></path>
|
||||
<text class="nj-charts-val" x="370.25" y="410.5">+13%</text>
|
||||
<path class="nj-charts-c3" d="M320.833 415 H361.25 Q365.25 415 365.25 419 V422 Q365.25 426 361.25 426 H320.833 Z"><title>server_config, G​CC 16, -O0 (debug), 3.13.0, module: 2,208 ms against 1,948 ms with 3.12.0 (+13%)</title></path>
|
||||
<text class="nj-charts-val" x="370.25" y="424.5">+13%</text>
|
||||
<text class="nj-charts-panel" x="8" y="458">G​CC 16, -O2</text>
|
||||
<line class="nj-charts-grid" x1="184.167" y1="464" x2="184.167" y2="560"/>
|
||||
<line class="nj-charts-grid" x1="252.5" y1="464" x2="252.5" y2="560"/>
|
||||
@@ -75,18 +75,18 @@
|
||||
<line class="nj-charts-grid" x1="457.5" y1="464" x2="457.5" y2="560"/>
|
||||
<line class="nj-charts-grid" x1="525.833" y1="464" x2="525.833" y2="560"/>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="142" y="491" text-anchor="end">count_numbers</text>
|
||||
<path class="nj-charts-c2" d="M320.833 468 H521.833 Q525.833 468 525.833 472 V475 Q525.833 479 521.833 479 H320.833 Z"><title>count_numbers, G​CC 16, -O2, 3.13.0: 3,464 ms against 2,159 ms with 3.12.0 (+60%)</title></path>
|
||||
<text class="nj-charts-val" x="530.833" y="477.5">+60%</text>
|
||||
<path class="nj-charts-c1" d="M320.833 482 H412.5 Q416.5 482 416.5 486 V489 Q416.5 493 412.5 493 H320.833 Z"><title>count_numbers, G​CC 16, -O2, 3.13.0, precompiled header: 2,765 ms against 2,159 ms with 3.12.0 (+28%)</title></path>
|
||||
<text class="nj-charts-val" x="421.5" y="491.5">+28%</text>
|
||||
<path class="nj-charts-c3" d="M320.833 496 H409.083 Q413.083 496 413.083 500 V503 Q413.083 507 409.083 507 H320.833 Z"><title>count_numbers, G​CC 16, -O2, 3.13.0, module: 2,740 ms against 2,159 ms with 3.12.0 (+27%)</title></path>
|
||||
<path class="nj-charts-c2" d="M320.833 468 H528.667 Q532.667 468 532.667 472 V475 Q532.667 479 528.667 479 H320.833 Z"><title>count_numbers, G​CC 16, -O2, 3.13.0: 3,653 ms against 2,254 ms with 3.12.0 (+62%)</title></path>
|
||||
<text class="nj-charts-val" x="537.667" y="477.5">+62%</text>
|
||||
<path class="nj-charts-c1" d="M320.833 482 H409.083 Q413.083 482 413.083 486 V489 Q413.083 493 409.083 493 H320.833 Z"><title>count_numbers, G​CC 16, -O2, 3.13.0, precompiled header: 2,863 ms against 2,254 ms with 3.12.0 (+27%)</title></path>
|
||||
<text class="nj-charts-val" x="418.083" y="491.5">+27%</text>
|
||||
<path class="nj-charts-c3" d="M320.833 496 H409.083 Q413.083 496 413.083 500 V503 Q413.083 507 409.083 507 H320.833 Z"><title>count_numbers, G​CC 16, -O2, 3.13.0, module: 2,854 ms against 2,254 ms with 3.12.0 (+27%)</title></path>
|
||||
<text class="nj-charts-val" x="418.083" y="505.5">+27%</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-code" x="142" y="540" text-anchor="end">server_config</text>
|
||||
<path class="nj-charts-c2" d="M320.833 517 H494.5 Q498.5 517 498.5 521 V524 Q498.5 528 494.5 528 H320.833 Z"><title>server_config, G​CC 16, -O2, 3.13.0: 4,388 ms against 2,878 ms with 3.12.0 (+52%)</title></path>
|
||||
<text class="nj-charts-val" x="503.5" y="526.5">+52%</text>
|
||||
<path class="nj-charts-c1" d="M320.833 531 H415.917 Q419.917 531 419.917 535 V538 Q419.917 542 415.917 542 H320.833 Z"><title>server_config, G​CC 16, -O2, 3.13.0, precompiled header: 3,722 ms against 2,878 ms with 3.12.0 (+29%)</title></path>
|
||||
<text class="nj-charts-val" x="424.917" y="540.5">+29%</text>
|
||||
<path class="nj-charts-c3" d="M320.833 545 H422.75 Q426.75 545 426.75 549 V552 Q426.75 556 422.75 556 H320.833 Z"><title>server_config, G​CC 16, -O2, 3.13.0, module: 3,774 ms against 2,878 ms with 3.12.0 (+31%)</title></path>
|
||||
<path class="nj-charts-c2" d="M320.833 517 H501.333 Q505.333 517 505.333 521 V524 Q505.333 528 501.333 528 H320.833 Z"><title>server_config, G​CC 16, -O2, 3.13.0: 4,589 ms against 2,984 ms with 3.12.0 (+54%)</title></path>
|
||||
<text class="nj-charts-val" x="510.333" y="526.5">+54%</text>
|
||||
<path class="nj-charts-c1" d="M320.833 531 H422.75 Q426.75 531 426.75 535 V538 Q426.75 542 422.75 542 H320.833 Z"><title>server_config, G​CC 16, -O2, 3.13.0, precompiled header: 3,913 ms against 2,984 ms with 3.12.0 (+31%)</title></path>
|
||||
<text class="nj-charts-val" x="431.75" y="540.5">+31%</text>
|
||||
<path class="nj-charts-c3" d="M320.833 545 H422.75 Q426.75 545 426.75 549 V552 Q426.75 556 422.75 556 H320.833 Z"><title>server_config, G​CC 16, -O2, 3.13.0, module: 3,897 ms against 2,984 ms with 3.12.0 (+31%)</title></path>
|
||||
<text class="nj-charts-val" x="431.75" y="554.5">+31%</text>
|
||||
<line class="nj-charts-ref" x1="320.833" y1="52" x2="320.833" y2="574"/>
|
||||
<text class="nj-charts-tick" x="184.167" y="590">−40%</text>
|
||||
|
||||
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
@@ -1,6 +1,6 @@
|
||||
<svg class="nj-fig nj-charts nj-charts--timeline" viewBox="0 0 340 270" role="img" aria-labelledby="nj-blog-tl-accept_twitter nj-blog-tl-accept_twitter-d" xmlns="http://www.w3.org/2000/svg">
|
||||
<title id="nj-blog-tl-accept_twitter">accept() twitter.json: speedup over 3.12.0 by commit</title>
|
||||
<desc id="nj-blog-tl-accept_twitter-d">accept() twitter.json: speedup over 3.12.0 at each of 360 commits, ending at 10x. Labeled steps, by theme: 4, 1, 4, 4, 2, 2, 1.</desc>
|
||||
<desc id="nj-blog-tl-accept_twitter-d">accept() twitter.json: speedup over 3.12.0 at each of 387 commits, ending at 10x. Labeled steps, by theme: 4, 1, 4, 4, 2, 2, 1.</desc>
|
||||
<text class="nj-charts-panel" x="8" y="18">accept() twitter.json</text>
|
||||
<line class="nj-charts-grid" x1="44" y1="208" x2="330" y2="208"/>
|
||||
<text class="nj-charts-tick nj-charts-tick--r" x="38" y="212">1×</text>
|
||||
@@ -14,40 +14,40 @@
|
||||
<text class="nj-charts-tick nj-charts-tick--r" x="38" y="70">16×</text>
|
||||
<line class="nj-charts-axis" x1="44" y1="208" x2="44" y2="212"/>
|
||||
<text class="nj-charts-tick" x="44" y="225">3.12.0</text>
|
||||
<line class="nj-charts-axis" x1="116.496" y1="208" x2="116.496" y2="212"/>
|
||||
<text class="nj-charts-tick" x="116.496" y="225">Sep 2026</text>
|
||||
<line class="nj-charts-axis" x1="195.365" y1="208" x2="195.365" y2="212"/>
|
||||
<text class="nj-charts-tick" x="195.365" y="225">Oct</text>
|
||||
<line class="nj-charts-axis" x1="302.117" y1="208" x2="302.117" y2="212"/>
|
||||
<text class="nj-charts-tick" x="302.117" y="225">Nov</text>
|
||||
<polyline class="nj-charts-json" points="44.0,208.0 44.8,208.0 44.8,208.1 45.6,208.1 45.6,207.9 46.4,207.9 46.4,208.0 47.2,208.0 47.2,207.8 48.0,207.8 48.0,207.9 48.8,207.9 48.8,208.0 49.6,208.0 49.6,208.1 50.4,208.1 50.4,208.3 51.2,208.3 51.2,207.3 52.0,207.3 52.0,207.9 52.8,207.9 52.8,208.1 53.6,208.1 53.6,208.0 54.4,208.0 54.4,207.9 55.2,207.9 55.2,207.8 55.9,207.8 55.9,207.9 56.7,207.9 56.7,207.9 57.5,207.9 57.5,207.8 58.3,207.8 58.3,208.1 59.1,208.1 59.1,207.4 59.9,207.4 59.9,208.0 60.7,208.0 60.7,208.0 61.5,208.0 61.5,207.8 62.3,207.8 62.3,207.9 63.1,207.9 63.1,208.0 63.9,208.0 63.9,207.4 64.7,207.4 64.7,207.9 65.5,207.9 65.5,207.7 66.3,207.7 66.3,207.8 67.1,207.8 67.1,208.0 67.9,208.0 67.9,208.0 68.7,208.0 68.7,207.5 69.5,207.5 69.5,207.8 70.3,207.8 70.3,207.7 71.1,207.7 71.1,207.8 71.9,207.8 71.9,208.1 72.7,208.1 72.7,207.8 73.5,207.8 73.5,207.3 74.3,207.3 74.3,207.9 75.1,207.9 75.1,207.4 75.9,207.4 75.9,207.8 76.7,207.8 76.7,207.5 77.5,207.5 77.5,208.1 78.3,208.1 78.3,207.7 79.1,207.7 79.1,207.7 79.8,207.7 79.8,208.1 80.6,208.1 80.6,208.2 81.4,208.2 81.4,207.9 82.2,207.9 82.2,207.8 83.0,207.8 83.0,207.9 83.8,207.9 83.8,207.9 84.6,207.9 84.6,207.6 85.4,207.6 85.4,207.9 86.2,207.9 86.2,207.9 87.0,207.9 87.0,208.0 87.8,208.0 87.8,197.9 88.6,197.9 88.6,198.5 89.4,198.5 89.4,198.7 90.2,198.7 90.2,198.3 91.0,198.3 91.0,198.7 91.8,198.7 91.8,198.0 92.6,198.0 92.6,198.0 93.4,198.0 93.4,198.5 94.2,198.5 94.2,198.3 95.0,198.3 95.0,198.4 95.8,198.4 95.8,198.7 96.6,198.7 96.6,198.0 97.4,198.0 97.4,198.4 98.2,198.4 98.2,198.5 99.0,198.5 99.0,198.7 99.8,198.7 99.8,198.5 100.6,198.5 100.6,198.5 101.4,198.5 101.4,198.4 102.2,198.4 102.2,198.9 103.0,198.9 103.0,198.3 103.7,198.3 103.7,198.5 104.5,198.5 104.5,199.2 105.3,199.2 105.3,198.8 106.1,198.8 106.1,197.9 106.9,197.9 106.9,198.0 107.7,198.0 107.7,198.4 108.5,198.4 108.5,198.7 109.3,198.7 109.3,198.7 110.1,198.7 110.1,198.7 110.9,198.7 110.9,197.9 111.7,197.9 111.7,197.8 112.5,197.8 112.5,198.3 113.3,198.3 113.3,198.5 114.1,198.5 114.1,198.9 114.9,198.9 114.9,198.0 115.7,198.0 115.7,198.3 116.5,198.3 116.5,198.6 117.3,198.6 117.3,198.4 118.1,198.4 118.1,198.6 118.9,198.6 118.9,197.1 119.7,197.1 119.7,198.2 120.5,198.2 120.5,198.3 121.3,198.3 121.3,198.1 122.1,198.1 122.1,198.0 122.9,198.0 122.9,198.0 123.7,198.0 123.7,198.3 124.5,198.3 124.5,198.3 125.3,198.3 125.3,198.1 126.1,198.1 126.1,198.5 126.9,198.5 126.9,198.0 127.6,198.0 127.6,198.0 128.4,198.0 128.4,159.4 129.2,159.4 129.2,159.2 130.0,159.2 130.0,158.7 130.8,158.7 130.8,158.5 131.6,158.5 131.6,159.3 132.4,159.3 132.4,158.9 133.2,158.9 133.2,158.8 134.0,158.8 134.0,159.2 134.8,159.2 134.8,159.3 135.6,159.3 135.6,159.4 136.4,159.4 136.4,158.6 137.2,158.6 137.2,159.3 138.0,159.3 138.0,158.8 138.8,158.8 138.8,159.3 139.6,159.3 139.6,158.4 140.4,158.4 140.4,159.3 141.2,159.3 141.2,158.4 142.0,158.4 142.0,159.3 142.8,159.3 142.8,159.2 143.6,159.2 143.6,158.5 144.4,158.5 144.4,158.8 145.2,158.8 145.2,158.8 146.0,158.8 146.0,159.6 146.8,159.6 146.8,159.2 147.6,159.2 147.6,158.7 148.4,158.7 148.4,159.3 149.2,159.3 149.2,158.5 150.0,158.5 150.0,158.8 150.8,158.8 150.8,158.5 151.5,158.5 151.5,158.4 152.3,158.4 152.3,157.9 153.1,157.9 153.1,159.2 153.9,159.2 153.9,157.9 154.7,157.9 154.7,159.1 155.5,159.1 155.5,159.0 156.3,159.0 156.3,158.7 157.1,158.7 157.1,159.0 157.9,159.0 157.9,158.5 158.7,158.5 158.7,158.1 159.5,158.1 159.5,157.9 160.3,157.9 160.3,158.0 161.1,158.0 161.1,158.4 161.9,158.4 161.9,158.2 162.7,158.2 162.7,158.4 163.5,158.4 163.5,158.5 164.3,158.5 164.3,158.5 165.1,158.5 165.1,158.1 165.9,158.1 165.9,158.8 166.7,158.8 166.7,158.3 167.5,158.3 167.5,158.8 168.3,158.8 168.3,158.5 169.1,158.5 169.1,158.3 169.9,158.3 169.9,157.8 170.7,157.8 170.7,158.2 171.5,158.2 171.5,158.2 172.3,158.2 172.3,158.3 173.1,158.3 173.1,157.2 173.9,157.2 173.9,157.5 174.7,157.5 174.7,157.5 175.4,157.5 175.4,157.8 176.2,157.8 176.2,158.4 177.0,158.4 177.0,158.2 177.8,158.2 177.8,158.1 178.6,158.1 178.6,157.7 179.4,157.7 179.4,157.9 180.2,157.9 180.2,157.5 181.0,157.5 181.0,157.3 181.8,157.3 181.8,158.6 182.6,158.6 182.6,158.2 183.4,158.2 183.4,157.9 184.2,157.9 184.2,158.1 185.0,158.1 185.0,157.3 185.8,157.3 185.8,157.7 186.6,157.7 186.6,158.1 187.4,158.1 187.4,157.9 188.2,157.9 188.2,158.5 189.0,158.5 189.0,157.3 189.8,157.3 189.8,157.8 190.6,157.8 190.6,158.2 191.4,158.2 191.4,157.7 192.2,157.7 192.2,158.3 193.0,158.3 193.0,157.3 193.8,157.3 193.8,158.4 194.6,158.4 194.6,157.9 195.4,157.9 195.4,158.1 196.2,158.1 196.2,157.4 197.0,157.4 197.0,158.0 197.8,158.0 197.8,157.0 198.6,157.0 198.6,157.9 199.3,157.9 199.3,157.6 200.1,157.6 200.1,158.0 200.9,158.0 200.9,158.1 201.7,158.1 201.7,157.9 202.5,157.9 202.5,158.5 203.3,158.5 203.3,158.9 204.1,158.9 204.1,158.7 204.9,158.7 204.9,157.4 205.7,157.4 205.7,157.6 206.5,157.6 206.5,157.7 207.3,157.7 207.3,157.8 208.1,157.8 208.1,158.2 208.9,158.2 208.9,157.8 209.7,157.8 209.7,158.1 210.5,158.1 210.5,158.1 211.3,158.1 211.3,158.5 212.1,158.5 212.1,157.4 212.9,157.4 212.9,158.6Line truncated
|
||||
<circle class="nj-charts-json-dot" cx="87.8" cy="197.9" r="3.5"><title>#5234: 1.22×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="87.8" y1="54.0" x2="87.8" y2="192.9"/>
|
||||
<circle class="nj-theme-dot" cx="87.8" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="87.8" y="50.0" text-anchor="middle">4</text>
|
||||
<circle class="nj-charts-json-dot" cx="128.4" cy="159.4" r="3.5"><title>#5283: 2.6×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="128.4" y1="54.0" x2="128.4" y2="154.4"/>
|
||||
<circle class="nj-theme-dot" cx="128.4" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="128.4" y="50.0" text-anchor="middle">1</text>
|
||||
<circle class="nj-charts-json-dot" cx="219.3" cy="153.4" r="3.5"><title>#5592: 2.9×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="219.3" y1="54.0" x2="219.3" y2="148.4"/>
|
||||
<circle class="nj-theme-dot" cx="219.3" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="219.3" y="50.0" text-anchor="middle">4</text>
|
||||
<circle class="nj-charts-json-dot" cx="239.2" cy="141.0" r="3.5"><title>#5809: 3.7×</title></circle>
|
||||
<circle class="nj-charts-json-dot" cx="240.0" cy="136.5" r="3.5"><title>#5810: 4.0×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="240.0" y1="36.0" x2="240.0" y2="131.5"/>
|
||||
<circle class="nj-theme-dot" cx="231.0" cy="28.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="231.0" y="32.0" text-anchor="middle">4</text>
|
||||
<circle class="nj-theme-dot" cx="249.0" cy="28.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="249.0" y="32.0" text-anchor="middle">2</text>
|
||||
<circle class="nj-charts-json-dot" cx="268.7" cy="126.4" r="3.5"><title>#5853: 4.9×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="268.7" y1="54.0" x2="268.7" y2="121.4"/>
|
||||
<circle class="nj-theme-dot" cx="268.7" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="268.7" y="50.0" text-anchor="middle">2</text>
|
||||
<circle class="nj-charts-json-dot" cx="330.0" cy="89.0" r="3.5"><title>#6031: 10×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="330.0" y1="54.0" x2="330.0" y2="84.0"/>
|
||||
<circle class="nj-theme-dot" cx="322.5" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="322.5" y="50.0" text-anchor="middle">1</text>
|
||||
<line class="nj-charts-axis" x1="111.425" y1="208" x2="111.425" y2="212"/>
|
||||
<text class="nj-charts-tick" x="111.425" y="225">Sep 2026</text>
|
||||
<line class="nj-charts-axis" x1="184.777" y1="208" x2="184.777" y2="212"/>
|
||||
<text class="nj-charts-tick" x="184.777" y="225">Oct</text>
|
||||
<line class="nj-charts-axis" x1="284.062" y1="208" x2="284.062" y2="212"/>
|
||||
<text class="nj-charts-tick" x="284.062" y="225">Nov</text>
|
||||
<polyline class="nj-charts-json" points="44.0,208.0 44.7,208.0 44.7,208.1 45.5,208.1 45.5,207.9 46.2,207.9 46.2,208.0 47.0,208.0 47.0,207.8 47.7,207.8 47.7,207.9 48.4,207.9 48.4,208.0 49.2,208.0 49.2,208.1 49.9,208.1 49.9,208.3 50.7,208.3 50.7,207.3 51.4,207.3 51.4,207.9 52.2,207.9 52.2,208.1 52.9,208.1 52.9,208.0 53.6,208.0 53.6,207.9 54.4,207.9 54.4,207.8 55.1,207.8 55.1,207.9 55.9,207.9 55.9,207.9 56.6,207.9 56.6,207.8 57.3,207.8 57.3,208.1 58.1,208.1 58.1,207.4 58.8,207.4 58.8,208.0 59.6,208.0 59.6,208.0 60.3,208.0 60.3,207.8 61.0,207.8 61.0,207.9 61.8,207.9 61.8,208.0 62.5,208.0 62.5,207.4 63.3,207.4 63.3,207.9 64.0,207.9 64.0,207.7 64.7,207.7 64.7,207.8 65.5,207.8 65.5,208.0 66.2,208.0 66.2,208.0 67.0,208.0 67.0,207.5 67.7,207.5 67.7,207.8 68.5,207.8 68.5,207.7 69.2,207.7 69.2,207.8 69.9,207.8 69.9,208.1 70.7,208.1 70.7,207.8 71.4,207.8 71.4,207.3 72.2,207.3 72.2,207.9 72.9,207.9 72.9,207.4 73.6,207.4 73.6,207.8 74.4,207.8 74.4,207.5 75.1,207.5 75.1,208.1 75.9,208.1 75.9,207.7 76.6,207.7 76.6,207.7 77.3,207.7 77.3,208.1 78.1,208.1 78.1,208.2 78.8,208.2 78.8,207.9 79.6,207.9 79.6,207.8 80.3,207.8 80.3,207.9 81.0,207.9 81.0,207.9 81.8,207.9 81.8,207.6 82.5,207.6 82.5,207.9 83.3,207.9 83.3,207.9 84.0,207.9 84.0,208.0 84.8,208.0 84.8,197.9 85.5,197.9 85.5,198.5 86.2,198.5 86.2,198.7 87.0,198.7 87.0,198.3 87.7,198.3 87.7,198.7 88.5,198.7 88.5,198.0 89.2,198.0 89.2,198.0 89.9,198.0 89.9,198.5 90.7,198.5 90.7,198.3 91.4,198.3 91.4,198.4 92.2,198.4 92.2,198.7 92.9,198.7 92.9,198.0 93.6,198.0 93.6,198.4 94.4,198.4 94.4,198.5 95.1,198.5 95.1,198.7 95.9,198.7 95.9,198.5 96.6,198.5 96.6,198.5 97.3,198.5 97.3,198.4 98.1,198.4 98.1,198.9 98.8,198.9 98.8,198.3 99.6,198.3 99.6,198.5 100.3,198.5 100.3,199.2 101.1,199.2 101.1,198.8 101.8,198.8 101.8,197.9 102.5,197.9 102.5,198.0 103.3,198.0 103.3,198.4 104.0,198.4 104.0,198.7 104.8,198.7 104.8,198.7 105.5,198.7 105.5,198.7 106.2,198.7 106.2,197.9 107.0,197.9 107.0,197.8 107.7,197.8 107.7,198.3 108.5,198.3 108.5,198.5 109.2,198.5 109.2,198.9 109.9,198.9 109.9,198.0 110.7,198.0 110.7,198.3 111.4,198.3 111.4,198.6 112.2,198.6 112.2,198.4 112.9,198.4 112.9,198.6 113.6,198.6 113.6,197.1 114.4,197.1 114.4,198.2 115.1,198.2 115.1,198.3 115.9,198.3 115.9,198.1 116.6,198.1 116.6,198.0 117.4,198.0 117.4,198.0 118.1,198.0 118.1,198.3 118.8,198.3 118.8,198.3 119.6,198.3 119.6,198.1 120.3,198.1 120.3,198.5 121.1,198.5 121.1,198.0 121.8,198.0 121.8,198.0 122.5,198.0 122.5,159.4 123.3,159.4 123.3,159.2 124.0,159.2 124.0,158.7 124.8,158.7 124.8,158.5 125.5,158.5 125.5,159.3 126.2,159.3 126.2,158.9 127.0,158.9 127.0,158.8 127.7,158.8 127.7,159.2 128.5,159.2 128.5,159.3 129.2,159.3 129.2,159.4 129.9,159.4 129.9,158.6 130.7,158.6 130.7,159.3 131.4,159.3 131.4,158.8 132.2,158.8 132.2,159.3 132.9,159.3 132.9,158.4 133.7,158.4 133.7,159.3 134.4,159.3 134.4,158.4 135.1,158.4 135.1,159.3 135.9,159.3 135.9,159.2 136.6,159.2 136.6,158.5 137.4,158.5 137.4,158.8 138.1,158.8 138.1,158.8 138.8,158.8 138.8,159.6 139.6,159.6 139.6,159.2 140.3,159.2 140.3,158.7 141.1,158.7 141.1,159.3 141.8,159.3 141.8,158.5 142.5,158.5 142.5,158.8 143.3,158.8 143.3,158.5 144.0,158.5 144.0,158.4 144.8,158.4 144.8,157.9 145.5,157.9 145.5,159.2 146.2,159.2 146.2,157.9 147.0,157.9 147.0,159.1 147.7,159.1 147.7,159.0 148.5,159.0 148.5,158.7 149.2,158.7 149.2,159.0 150.0,159.0 150.0,158.5 150.7,158.5 150.7,158.1 151.4,158.1 151.4,157.9 152.2,157.9 152.2,158.0 152.9,158.0 152.9,158.4 153.7,158.4 153.7,158.2 154.4,158.2 154.4,158.4 155.1,158.4 155.1,158.5 155.9,158.5 155.9,158.5 156.6,158.5 156.6,158.1 157.4,158.1 157.4,158.8 158.1,158.8 158.1,158.3 158.8,158.3 158.8,158.8 159.6,158.8 159.6,158.5 160.3,158.5 160.3,158.3 161.1,158.3 161.1,157.8 161.8,157.8 161.8,158.2 162.5,158.2 162.5,158.2 163.3,158.2 163.3,158.3 164.0,158.3 164.0,157.2 164.8,157.2 164.8,157.5 165.5,157.5 165.5,157.5 166.3,157.5 166.3,157.8 167.0,157.8 167.0,158.4 167.7,158.4 167.7,158.2 168.5,158.2 168.5,158.1 169.2,158.1 169.2,157.7 170.0,157.7 170.0,157.9 170.7,157.9 170.7,157.5 171.4,157.5 171.4,157.3 172.2,157.3 172.2,158.6 172.9,158.6 172.9,158.2 173.7,158.2 173.7,157.9 174.4,157.9 174.4,158.1 175.1,158.1 175.1,157.3 175.9,157.3 175.9,157.7 176.6,157.7 176.6,158.1 177.4,158.1 177.4,157.9 178.1,157.9 178.1,158.5 178.8,158.5 178.8,157.3 179.6,157.3 179.6,157.8 180.3,157.8 180.3,158.2 181.1,158.2 181.1,157.7 181.8,157.7 181.8,158.3 182.6,158.3 182.6,157.3 183.3,157.3 183.3,158.4 184.0,158.4 184.0,157.9 184.8,157.9 184.8,158.1 185.5,158.1 185.5,157.4 186.3,157.4 186.3,158.0 187.0,158.0 187.0,157.0 187.7,157.0 187.7,157.9 188.5,157.9 188.5,157.6 189.2,157.6 189.2,158.0 190.0,158.0 190.0,158.1 190.7,158.1 190.7,157.9 191.4,157.9 191.4,158.5 192.2,158.5 192.2,158.9 192.9,158.9 192.9,158.7 193.7,158.7 193.7,157.4 194.4,157.4 194.4,157.6 195.2,157.6 195.2,157.7 195.9,157.7 195.9,157.8 196.6,157.8 196.6,158.2 197.4,158.2 197.4,157.8 198.1,157.8 198.1,158.1 198.9,158.1 198.9,158.1 199.6,158.1 199.6,158.5 200.3,158.5 200.3,157.4 201.1,157.4 201.1,158.6 201.8,158Line truncated
|
||||
<circle class="nj-charts-json-dot" cx="84.8" cy="197.9" r="3.5"><title>#5234: 1.22×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="84.8" y1="54.0" x2="84.8" y2="192.9"/>
|
||||
<circle class="nj-theme-dot" cx="84.8" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="84.8" y="50.0" text-anchor="middle">4</text>
|
||||
<circle class="nj-charts-json-dot" cx="122.5" cy="159.4" r="3.5"><title>#5283: 2.6×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="122.5" y1="54.0" x2="122.5" y2="154.4"/>
|
||||
<circle class="nj-theme-dot" cx="122.5" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="122.5" y="50.0" text-anchor="middle">1</text>
|
||||
<circle class="nj-charts-json-dot" cx="207.0" cy="153.4" r="3.5"><title>#5592: 2.9×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="207.0" y1="54.0" x2="207.0" y2="148.4"/>
|
||||
<circle class="nj-theme-dot" cx="207.0" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="207.0" y="50.0" text-anchor="middle">4</text>
|
||||
<circle class="nj-charts-json-dot" cx="225.5" cy="141.0" r="3.5"><title>#5809: 3.7×</title></circle>
|
||||
<circle class="nj-charts-json-dot" cx="226.3" cy="136.5" r="3.5"><title>#5810: 4.0×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="226.3" y1="36.0" x2="226.3" y2="131.5"/>
|
||||
<circle class="nj-theme-dot" cx="217.3" cy="28.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="217.3" y="32.0" text-anchor="middle">4</text>
|
||||
<circle class="nj-theme-dot" cx="235.3" cy="28.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="235.3" y="32.0" text-anchor="middle">2</text>
|
||||
<circle class="nj-charts-json-dot" cx="252.9" cy="126.4" r="3.5"><title>#5853: 4.9×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="252.9" y1="54.0" x2="252.9" y2="121.4"/>
|
||||
<circle class="nj-theme-dot" cx="252.9" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="252.9" y="50.0" text-anchor="middle">2</text>
|
||||
<circle class="nj-charts-json-dot" cx="310.7" cy="88.1" r="3.5"><title>#6031: 10×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="310.7" y1="54.0" x2="310.7" y2="83.1"/>
|
||||
<circle class="nj-theme-dot" cx="310.7" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="310.7" y="50.0" text-anchor="middle">1</text>
|
||||
<line class="nj-charts-axis" x1="44" y1="208" x2="330" y2="208"/>
|
||||
<text class="nj-charts-note" x="8" y="262">speedup over 3.12.0 (log scale), more is better</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 13 KiB |
@@ -1,6 +1,6 @@
|
||||
<svg class="nj-fig nj-charts nj-charts--timeline" viewBox="0 0 340 270" role="img" aria-labelledby="nj-blog-tl-dump_canada nj-blog-tl-dump_canada-d" xmlns="http://www.w3.org/2000/svg">
|
||||
<title id="nj-blog-tl-dump_canada">dump() canada.json: speedup over 3.12.0 by commit</title>
|
||||
<desc id="nj-blog-tl-dump_canada-d">dump() canada.json: speedup over 3.12.0 at each of 360 commits, ending at 3.2x. Labeled steps, by theme: 6, 3.</desc>
|
||||
<desc id="nj-blog-tl-dump_canada-d">dump() canada.json: speedup over 3.12.0 at each of 387 commits, ending at 3.3x. Labeled steps, by theme: 6, 3.</desc>
|
||||
<text class="nj-charts-panel" x="8" y="18">dump() canada.json</text>
|
||||
<line class="nj-charts-grid" x1="44" y1="208" x2="330" y2="208"/>
|
||||
<text class="nj-charts-tick nj-charts-tick--r" x="38" y="212">1×</text>
|
||||
@@ -12,21 +12,21 @@
|
||||
<text class="nj-charts-tick nj-charts-tick--r" x="38" y="70">8×</text>
|
||||
<line class="nj-charts-axis" x1="44" y1="208" x2="44" y2="212"/>
|
||||
<text class="nj-charts-tick" x="44" y="225">3.12.0</text>
|
||||
<line class="nj-charts-axis" x1="116.496" y1="208" x2="116.496" y2="212"/>
|
||||
<text class="nj-charts-tick" x="116.496" y="225">Sep 2026</text>
|
||||
<line class="nj-charts-axis" x1="195.365" y1="208" x2="195.365" y2="212"/>
|
||||
<text class="nj-charts-tick" x="195.365" y="225">Oct</text>
|
||||
<line class="nj-charts-axis" x1="302.117" y1="208" x2="302.117" y2="212"/>
|
||||
<text class="nj-charts-tick" x="302.117" y="225">Nov</text>
|
||||
<polyline class="nj-charts-json" points="44.0,208.0 44.8,208.0 44.8,208.0 45.6,208.0 45.6,207.2 46.4,207.2 46.4,207.9 47.2,207.9 47.2,206.7 48.0,206.7 48.0,207.5 48.8,207.5 48.8,207.7 49.6,207.7 49.6,207.3 50.4,207.3 50.4,207.9 51.2,207.9 51.2,206.6 52.0,206.6 52.0,207.5 52.8,207.5 52.8,208.0 53.6,208.0 53.6,207.6 54.4,207.6 54.4,207.2 55.2,207.2 55.2,207.5 55.9,207.5 55.9,206.6 56.7,206.6 56.7,207.1 57.5,207.1 57.5,207.1 58.3,207.1 58.3,207.2 59.1,207.2 59.1,206.6 59.9,206.6 59.9,207.5 60.7,207.5 60.7,207.6 61.5,207.6 61.5,207.7 62.3,207.7 62.3,207.2 63.1,207.2 63.1,206.5 63.9,206.5 63.9,206.8 64.7,206.8 64.7,207.1 65.5,207.1 65.5,207.0 66.3,207.0 66.3,207.1 67.1,207.1 67.1,206.7 67.9,206.7 67.9,208.2 68.7,208.2 68.7,207.5 69.5,207.5 69.5,206.6 70.3,206.6 70.3,206.7 71.1,206.7 71.1,206.3 71.9,206.3 71.9,208.4 72.7,208.4 72.7,207.3 73.5,207.3 73.5,206.8 74.3,206.8 74.3,208.0 75.1,208.0 75.1,207.8 75.9,207.8 75.9,207.1 76.7,207.1 76.7,207.5 77.5,207.5 77.5,207.9 78.3,207.9 78.3,206.3 79.1,206.3 79.1,206.8 79.8,206.8 79.8,207.5 80.6,207.5 80.6,208.1 81.4,208.1 81.4,206.6 82.2,206.6 82.2,207.2 83.0,207.2 83.0,207.2 83.8,207.2 83.8,207.4 84.6,207.4 84.6,207.0 85.4,207.0 85.4,206.7 86.2,206.7 86.2,206.5 87.0,206.5 87.0,207.6 87.8,207.6 87.8,207.4 88.6,207.4 88.6,207.2 89.4,207.2 89.4,207.5 90.2,207.5 90.2,207.6 91.0,207.6 91.0,208.0 91.8,208.0 91.8,208.2 92.6,208.2 92.6,206.7 93.4,206.7 93.4,207.4 94.2,207.4 94.2,206.7 95.0,206.7 95.0,206.6 95.8,206.6 95.8,208.0 96.6,208.0 96.6,208.0 97.4,208.0 97.4,206.3 98.2,206.3 98.2,208.3 99.0,208.3 99.0,207.8 99.8,207.8 99.8,207.4 100.6,207.4 100.6,206.3 101.4,206.3 101.4,208.1 102.2,208.1 102.2,207.5 103.0,207.5 103.0,207.4 103.7,207.4 103.7,207.5 104.5,207.5 104.5,207.7 105.3,207.7 105.3,208.0 106.1,208.0 106.1,207.0 106.9,207.0 106.9,207.5 107.7,207.5 107.7,207.2 108.5,207.2 108.5,207.7 109.3,207.7 109.3,207.3 110.1,207.3 110.1,208.0 110.9,208.0 110.9,206.7 111.7,206.7 111.7,206.6 112.5,206.6 112.5,207.2 113.3,207.2 113.3,208.1 114.1,208.1 114.1,208.1 114.9,208.1 114.9,206.7 115.7,206.7 115.7,207.8 116.5,207.8 116.5,207.6 117.3,207.6 117.3,207.4 118.1,207.4 118.1,207.1 118.9,207.1 118.9,207.5 119.7,207.5 119.7,208.8 120.5,208.8 120.5,209.2 121.3,209.2 121.3,208.4 122.1,208.4 122.1,208.3 122.9,208.3 122.9,208.0 123.7,208.0 123.7,209.0 124.5,209.0 124.5,208.5 125.3,208.5 125.3,209.1 126.1,209.1 126.1,209.2 126.9,209.2 126.9,208.6 127.6,208.6 127.6,207.7 128.4,207.7 128.4,207.7 129.2,207.7 129.2,207.5 130.0,207.5 130.0,202.2 130.8,202.2 130.8,202.3 131.6,202.3 131.6,201.7 132.4,201.7 132.4,202.3 133.2,202.3 133.2,201.9 134.0,201.9 134.0,201.2 134.8,201.2 134.8,202.1 135.6,202.1 135.6,202.6 136.4,202.6 136.4,201.5 137.2,201.5 137.2,202.3 138.0,202.3 138.0,202.3 138.8,202.3 138.8,201.7 139.6,201.7 139.6,201.3 140.4,201.3 140.4,202.5 141.2,202.5 141.2,201.1 142.0,201.1 142.0,202.9 142.8,202.9 142.8,202.2 143.6,202.2 143.6,201.7 144.4,201.7 144.4,201.7 145.2,201.7 145.2,201.6 146.0,201.6 146.0,203.0 146.8,203.0 146.8,202.7 147.6,202.7 147.6,202.4 148.4,202.4 148.4,202.8 149.2,202.8 149.2,202.1 150.0,202.1 150.0,203.1 150.8,203.1 150.8,202.3 151.5,202.3 151.5,202.3 152.3,202.3 152.3,201.8 153.1,201.8 153.1,203.1 153.9,203.1 153.9,201.8 154.7,201.8 154.7,202.6 155.5,202.6 155.5,202.6 156.3,202.6 156.3,202.9 157.1,202.9 157.1,202.3 157.9,202.3 157.9,202.3 158.7,202.3 158.7,201.6 159.5,201.6 159.5,201.5 160.3,201.5 160.3,202.4 161.1,202.4 161.1,201.7 161.9,201.7 161.9,201.2 162.7,201.2 162.7,202.2 163.5,202.2 163.5,201.6 164.3,201.6 164.3,201.6 165.1,201.6 165.1,201.8 165.9,201.8 165.9,202.1 166.7,202.1 166.7,201.7 167.5,201.7 167.5,201.4 168.3,201.4 168.3,202.2 169.1,202.2 169.1,202.7 169.9,202.7 169.9,202.4 170.7,202.4 170.7,201.7 171.5,201.7 171.5,201.7 172.3,201.7 172.3,202.3 173.1,202.3 173.1,201.6 173.9,201.6 173.9,201.7 174.7,201.7 174.7,202.2 175.4,202.2 175.4,202.2 176.2,202.2 176.2,202.4 177.0,202.4 177.0,201.7 177.8,201.7 177.8,202.1 178.6,202.1 178.6,201.6 179.4,201.6 179.4,202.2 180.2,202.2 180.2,201.9 181.0,201.9 181.0,201.9 181.8,201.9 181.8,202.5 182.6,202.5 182.6,201.6 183.4,201.6 183.4,202.1 184.2,202.1 184.2,202.3 185.0,202.3 185.0,201.8 185.8,201.8 185.8,201.5 186.6,201.5 186.6,202.3 187.4,202.3 187.4,202.2 188.2,202.2 188.2,202.9 189.0,202.9 189.0,201.3 189.8,201.3 189.8,202.2 190.6,202.2 190.6,203.6 191.4,203.6 191.4,201.9 192.2,201.9 192.2,202.4 193.0,202.4 193.0,201.7 193.8,201.7 193.8,202.7 194.6,202.7 194.6,202.3 195.4,202.3 195.4,202.5 196.2,202.5 196.2,202.1 197.0,202.1 197.0,203.4 197.8,203.4 197.8,202.1 198.6,202.1 198.6,202.3 199.3,202.3 199.3,201.9 200.1,201.9 200.1,202.3 200.9,202.3 200.9,201.7 201.7,201.7 201.7,202.4 202.5,202.4 202.5,202.3 203.3,202.3 203.3,202.9 204.1,202.9 204.1,202.9 204.9,202.9 204.9,202.2 205.7,202.2 205.7,202.4 206.5,202.4 206.5,202.2 207.3,202.2 207.3,202.7 208.1,202.7 208.1,202.5 208.9,202.5 208.9,202.5 209.7,202.5 209.7,201.5 210.5,201.5 210.5,203.1 211.3,203.1 211.3,203.2 212.1,203.2 212.1,201.5 212.9,201.5 212.9,203.3Line truncated
|
||||
<circle class="nj-charts-json-dot" cx="130.0" cy="202.2" r="3.5"><title>#5285: 1.09×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="130.0" y1="54.0" x2="130.0" y2="197.2"/>
|
||||
<circle class="nj-theme-dot" cx="130.0" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="130.0" y="50.0" text-anchor="middle">6</text>
|
||||
<circle class="nj-charts-json-dot" cx="242.4" cy="130.7" r="3.5"><title>#5634: 3.1×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="242.4" y1="54.0" x2="242.4" y2="125.7"/>
|
||||
<circle class="nj-theme-dot" cx="242.4" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="242.4" y="50.0" text-anchor="middle">3</text>
|
||||
<line class="nj-charts-axis" x1="111.425" y1="208" x2="111.425" y2="212"/>
|
||||
<text class="nj-charts-tick" x="111.425" y="225">Sep 2026</text>
|
||||
<line class="nj-charts-axis" x1="184.777" y1="208" x2="184.777" y2="212"/>
|
||||
<text class="nj-charts-tick" x="184.777" y="225">Oct</text>
|
||||
<line class="nj-charts-axis" x1="284.062" y1="208" x2="284.062" y2="212"/>
|
||||
<text class="nj-charts-tick" x="284.062" y="225">Nov</text>
|
||||
<polyline class="nj-charts-json" points="44.0,208.0 44.7,208.0 44.7,208.0 45.5,208.0 45.5,207.2 46.2,207.2 46.2,207.9 47.0,207.9 47.0,206.7 47.7,206.7 47.7,207.5 48.4,207.5 48.4,207.7 49.2,207.7 49.2,207.3 49.9,207.3 49.9,207.9 50.7,207.9 50.7,206.6 51.4,206.6 51.4,207.5 52.2,207.5 52.2,208.0 52.9,208.0 52.9,207.6 53.6,207.6 53.6,207.2 54.4,207.2 54.4,207.5 55.1,207.5 55.1,206.6 55.9,206.6 55.9,207.1 56.6,207.1 56.6,207.1 57.3,207.1 57.3,207.2 58.1,207.2 58.1,206.6 58.8,206.6 58.8,207.5 59.6,207.5 59.6,207.6 60.3,207.6 60.3,207.7 61.0,207.7 61.0,207.2 61.8,207.2 61.8,206.5 62.5,206.5 62.5,206.8 63.3,206.8 63.3,207.1 64.0,207.1 64.0,207.0 64.7,207.0 64.7,207.1 65.5,207.1 65.5,206.7 66.2,206.7 66.2,208.2 67.0,208.2 67.0,207.5 67.7,207.5 67.7,206.6 68.5,206.6 68.5,206.7 69.2,206.7 69.2,206.3 69.9,206.3 69.9,208.4 70.7,208.4 70.7,207.3 71.4,207.3 71.4,206.8 72.2,206.8 72.2,208.0 72.9,208.0 72.9,207.8 73.6,207.8 73.6,207.1 74.4,207.1 74.4,207.5 75.1,207.5 75.1,207.9 75.9,207.9 75.9,206.3 76.6,206.3 76.6,206.8 77.3,206.8 77.3,207.5 78.1,207.5 78.1,208.1 78.8,208.1 78.8,206.6 79.6,206.6 79.6,207.2 80.3,207.2 80.3,207.2 81.0,207.2 81.0,207.4 81.8,207.4 81.8,207.0 82.5,207.0 82.5,206.7 83.3,206.7 83.3,206.5 84.0,206.5 84.0,207.6 84.8,207.6 84.8,207.4 85.5,207.4 85.5,207.2 86.2,207.2 86.2,207.5 87.0,207.5 87.0,207.6 87.7,207.6 87.7,208.0 88.5,208.0 88.5,208.2 89.2,208.2 89.2,206.7 89.9,206.7 89.9,207.4 90.7,207.4 90.7,206.7 91.4,206.7 91.4,206.6 92.2,206.6 92.2,208.0 92.9,208.0 92.9,208.0 93.6,208.0 93.6,206.3 94.4,206.3 94.4,208.3 95.1,208.3 95.1,207.8 95.9,207.8 95.9,207.4 96.6,207.4 96.6,206.3 97.3,206.3 97.3,208.1 98.1,208.1 98.1,207.5 98.8,207.5 98.8,207.4 99.6,207.4 99.6,207.5 100.3,207.5 100.3,207.7 101.1,207.7 101.1,208.0 101.8,208.0 101.8,207.0 102.5,207.0 102.5,207.5 103.3,207.5 103.3,207.2 104.0,207.2 104.0,207.7 104.8,207.7 104.8,207.3 105.5,207.3 105.5,208.0 106.2,208.0 106.2,206.7 107.0,206.7 107.0,206.6 107.7,206.6 107.7,207.2 108.5,207.2 108.5,208.1 109.2,208.1 109.2,208.1 109.9,208.1 109.9,206.7 110.7,206.7 110.7,207.8 111.4,207.8 111.4,207.6 112.2,207.6 112.2,207.4 112.9,207.4 112.9,207.1 113.6,207.1 113.6,207.5 114.4,207.5 114.4,208.8 115.1,208.8 115.1,209.2 115.9,209.2 115.9,208.4 116.6,208.4 116.6,208.3 117.4,208.3 117.4,208.0 118.1,208.0 118.1,209.0 118.8,209.0 118.8,208.5 119.6,208.5 119.6,209.1 120.3,209.1 120.3,209.2 121.1,209.2 121.1,208.6 121.8,208.6 121.8,207.7 122.5,207.7 122.5,207.7 123.3,207.7 123.3,207.5 124.0,207.5 124.0,202.2 124.8,202.2 124.8,202.3 125.5,202.3 125.5,201.7 126.2,201.7 126.2,202.3 127.0,202.3 127.0,201.9 127.7,201.9 127.7,201.2 128.5,201.2 128.5,202.1 129.2,202.1 129.2,202.6 129.9,202.6 129.9,201.5 130.7,201.5 130.7,202.3 131.4,202.3 131.4,202.3 132.2,202.3 132.2,201.7 132.9,201.7 132.9,201.3 133.7,201.3 133.7,202.5 134.4,202.5 134.4,201.1 135.1,201.1 135.1,202.9 135.9,202.9 135.9,202.2 136.6,202.2 136.6,201.7 137.4,201.7 137.4,201.7 138.1,201.7 138.1,201.6 138.8,201.6 138.8,203.0 139.6,203.0 139.6,202.7 140.3,202.7 140.3,202.4 141.1,202.4 141.1,202.8 141.8,202.8 141.8,202.1 142.5,202.1 142.5,203.1 143.3,203.1 143.3,202.3 144.0,202.3 144.0,202.3 144.8,202.3 144.8,201.8 145.5,201.8 145.5,203.1 146.2,203.1 146.2,201.8 147.0,201.8 147.0,202.6 147.7,202.6 147.7,202.6 148.5,202.6 148.5,202.9 149.2,202.9 149.2,202.3 150.0,202.3 150.0,202.3 150.7,202.3 150.7,201.6 151.4,201.6 151.4,201.5 152.2,201.5 152.2,202.4 152.9,202.4 152.9,201.7 153.7,201.7 153.7,201.2 154.4,201.2 154.4,202.2 155.1,202.2 155.1,201.6 155.9,201.6 155.9,201.6 156.6,201.6 156.6,201.8 157.4,201.8 157.4,202.1 158.1,202.1 158.1,201.7 158.8,201.7 158.8,201.4 159.6,201.4 159.6,202.2 160.3,202.2 160.3,202.7 161.1,202.7 161.1,202.4 161.8,202.4 161.8,201.7 162.5,201.7 162.5,201.7 163.3,201.7 163.3,202.3 164.0,202.3 164.0,201.6 164.8,201.6 164.8,201.7 165.5,201.7 165.5,202.2 166.3,202.2 166.3,202.2 167.0,202.2 167.0,202.4 167.7,202.4 167.7,201.7 168.5,201.7 168.5,202.1 169.2,202.1 169.2,201.6 170.0,201.6 170.0,202.2 170.7,202.2 170.7,201.9 171.4,201.9 171.4,201.9 172.2,201.9 172.2,202.5 172.9,202.5 172.9,201.6 173.7,201.6 173.7,202.1 174.4,202.1 174.4,202.3 175.1,202.3 175.1,201.8 175.9,201.8 175.9,201.5 176.6,201.5 176.6,202.3 177.4,202.3 177.4,202.2 178.1,202.2 178.1,202.9 178.8,202.9 178.8,201.3 179.6,201.3 179.6,202.2 180.3,202.2 180.3,203.6 181.1,203.6 181.1,201.9 181.8,201.9 181.8,202.4 182.6,202.4 182.6,201.7 183.3,201.7 183.3,202.7 184.0,202.7 184.0,202.3 184.8,202.3 184.8,202.5 185.5,202.5 185.5,202.1 186.3,202.1 186.3,203.4 187.0,203.4 187.0,202.1 187.7,202.1 187.7,202.3 188.5,202.3 188.5,201.9 189.2,201.9 189.2,202.3 190.0,202.3 190.0,201.7 190.7,201.7 190.7,202.4 191.4,202.4 191.4,202.3 192.2,202.3 192.2,202.9 192.9,202.9 192.9,202.9 193.7,202.9 193.7,202.2 194.4,202.2 194.4,202.4 195.2,202.4 195.2,202.2 195.9,202.2 195.9,202.7 196.6,202.7 196.6,202.5 197.4,202.5 197.4,202.5 198.1,202.5 198.1,201.5 198.9,201.5 198.9,203.1 199.6,203.1 199.6,203.2 200.3,203.2 200.3,201.5 201.1,201.5 201.1,203.3 201.8,203Line truncated
|
||||
<circle class="nj-charts-json-dot" cx="124.0" cy="202.2" r="3.5"><title>#5285: 1.09×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="124.0" y1="54.0" x2="124.0" y2="197.2"/>
|
||||
<circle class="nj-theme-dot" cx="124.0" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="124.0" y="50.0" text-anchor="middle">6</text>
|
||||
<circle class="nj-charts-json-dot" cx="228.5" cy="130.7" r="3.5"><title>#5634: 3.1×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="228.5" y1="54.0" x2="228.5" y2="125.7"/>
|
||||
<circle class="nj-theme-dot" cx="228.5" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="228.5" y="50.0" text-anchor="middle">3</text>
|
||||
<line class="nj-charts-axis" x1="44" y1="208" x2="330" y2="208"/>
|
||||
<text class="nj-charts-note" x="8" y="262">speedup over 3.12.0 (log scale), more is better</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
@@ -1,6 +1,6 @@
|
||||
<svg class="nj-fig nj-charts nj-charts--timeline" viewBox="0 0 340 270" role="img" aria-labelledby="nj-blog-tl-dump_twitter nj-blog-tl-dump_twitter-d" xmlns="http://www.w3.org/2000/svg">
|
||||
<title id="nj-blog-tl-dump_twitter">dump() twitter.json: speedup over 3.12.0 by commit</title>
|
||||
<desc id="nj-blog-tl-dump_twitter-d">dump() twitter.json: speedup over 3.12.0 at each of 360 commits, ending at 6.8x. Labeled steps, by theme: 6, 2, 2, 2.</desc>
|
||||
<desc id="nj-blog-tl-dump_twitter-d">dump() twitter.json: speedup over 3.12.0 at each of 387 commits, ending at 6.8x. Labeled steps, by theme: 6, 2, 2, 2.</desc>
|
||||
<text class="nj-charts-panel" x="8" y="18">dump() twitter.json</text>
|
||||
<line class="nj-charts-grid" x1="44" y1="208" x2="330" y2="208"/>
|
||||
<text class="nj-charts-tick nj-charts-tick--r" x="38" y="212">1×</text>
|
||||
@@ -14,26 +14,26 @@
|
||||
<text class="nj-charts-tick nj-charts-tick--r" x="38" y="70">16×</text>
|
||||
<line class="nj-charts-axis" x1="44" y1="208" x2="44" y2="212"/>
|
||||
<text class="nj-charts-tick" x="44" y="225">3.12.0</text>
|
||||
<line class="nj-charts-axis" x1="116.496" y1="208" x2="116.496" y2="212"/>
|
||||
<text class="nj-charts-tick" x="116.496" y="225">Sep 2026</text>
|
||||
<line class="nj-charts-axis" x1="195.365" y1="208" x2="195.365" y2="212"/>
|
||||
<text class="nj-charts-tick" x="195.365" y="225">Oct</text>
|
||||
<line class="nj-charts-axis" x1="302.117" y1="208" x2="302.117" y2="212"/>
|
||||
<text class="nj-charts-tick" x="302.117" y="225">Nov</text>
|
||||
<polyline class="nj-charts-json" points="44.0,208.0 44.8,208.0 44.8,208.0 45.6,208.0 45.6,207.2 46.4,207.2 46.4,207.9 47.2,207.9 47.2,206.8 48.0,206.8 48.0,208.0 48.8,208.0 48.8,207.4 49.6,207.4 49.6,207.3 50.4,207.3 50.4,208.0 51.2,208.0 51.2,206.8 52.0,206.8 52.0,207.2 52.8,207.2 52.8,208.0 53.6,208.0 53.6,207.2 54.4,207.2 54.4,207.5 55.2,207.5 55.2,206.8 55.9,206.8 55.9,206.9 56.7,206.9 56.7,207.5 57.5,207.5 57.5,207.3 58.3,207.3 58.3,207.8 59.1,207.8 59.1,206.8 59.9,206.8 59.9,207.8 60.7,207.8 60.7,207.4 61.5,207.4 61.5,208.0 62.3,208.0 62.3,207.4 63.1,207.4 63.1,207.3 63.9,207.3 63.9,206.9 64.7,206.9 64.7,207.3 65.5,207.3 65.5,207.4 66.3,207.4 66.3,207.6 67.1,207.6 67.1,207.5 67.9,207.5 67.9,207.6 68.7,207.6 68.7,207.4 69.5,207.4 69.5,207.2 70.3,207.2 70.3,207.1 71.1,207.1 71.1,207.3 71.9,207.3 71.9,207.7 72.7,207.7 72.7,207.8 73.5,207.8 73.5,206.9 74.3,206.9 74.3,207.6 75.1,207.6 75.1,207.0 75.9,207.0 75.9,207.0 76.7,207.0 76.7,207.3 77.5,207.3 77.5,207.6 78.3,207.6 78.3,206.8 79.1,206.8 79.1,207.7 79.8,207.7 79.8,207.4 80.6,207.4 80.6,207.5 81.4,207.5 81.4,207.1 82.2,207.1 82.2,207.3 83.0,207.3 83.0,207.5 83.8,207.5 83.8,207.3 84.6,207.3 84.6,207.3 85.4,207.3 85.4,206.9 86.2,206.9 86.2,207.4 87.0,207.4 87.0,207.9 87.8,207.9 87.8,207.3 88.6,207.3 88.6,206.8 89.4,206.8 89.4,207.6 90.2,207.6 90.2,207.7 91.0,207.7 91.0,208.6 91.8,208.6 91.8,208.5 92.6,208.5 92.6,208.6 93.4,208.6 93.4,209.2 94.2,209.2 94.2,208.5 95.0,208.5 95.0,208.2 95.8,208.2 95.8,209.3 96.6,209.3 96.6,208.4 97.4,208.4 97.4,208.4 98.2,208.4 98.2,209.0 99.0,209.0 99.0,209.0 99.8,209.0 99.8,208.7 100.6,208.7 100.6,208.9 101.4,208.9 101.4,208.7 102.2,208.7 102.2,209.0 103.0,209.0 103.0,208.8 103.7,208.8 103.7,208.7 104.5,208.7 104.5,209.3 105.3,209.3 105.3,208.6 106.1,208.6 106.1,208.5 106.9,208.5 106.9,208.4 107.7,208.4 107.7,208.0 108.5,208.0 108.5,208.9 109.3,208.9 109.3,208.6 110.1,208.6 110.1,208.9 110.9,208.9 110.9,208.1 111.7,208.1 111.7,208.0 112.5,208.0 112.5,208.6 113.3,208.6 113.3,208.5 114.1,208.5 114.1,209.1 114.9,209.1 114.9,208.0 115.7,208.0 115.7,209.1 116.5,209.1 116.5,208.9 117.3,208.9 117.3,208.5 118.1,208.5 118.1,209.1 118.9,209.1 118.9,209.0 119.7,209.0 119.7,208.8 120.5,208.8 120.5,208.6 121.3,208.6 121.3,208.6 122.1,208.6 122.1,208.2 122.9,208.2 122.9,209.0 123.7,209.0 123.7,209.2 124.5,209.2 124.5,209.1 125.3,209.1 125.3,209.2 126.1,209.2 126.1,209.2 126.9,209.2 126.9,208.5 127.6,208.5 127.6,208.7 128.4,208.7 128.4,209.5 129.2,209.5 129.2,208.4 130.0,208.4 130.0,147.4 130.8,147.4 130.8,148.3 131.6,148.3 131.6,148.4 132.4,148.4 132.4,147.5 133.2,147.5 133.2,147.5 134.0,147.5 134.0,147.7 134.8,147.7 134.8,148.2 135.6,148.2 135.6,148.2 136.4,148.2 136.4,147.3 137.2,147.3 137.2,148.1 138.0,148.1 138.0,147.2 138.8,147.2 138.8,147.5 139.6,147.5 139.6,147.3 140.4,147.3 140.4,148.4 141.2,148.4 141.2,147.4 142.0,147.4 142.0,148.3 142.8,148.3 142.8,148.5 143.6,148.5 143.6,147.7 144.4,147.7 144.4,147.8 145.2,147.8 145.2,148.0 146.0,148.0 146.0,148.5 146.8,148.5 146.8,148.0 147.6,148.0 147.6,148.1 148.4,148.1 148.4,148.2 149.2,148.2 149.2,148.3 150.0,148.3 150.0,149.0 150.8,149.0 150.8,148.7 151.5,148.7 151.5,148.2 152.3,148.2 152.3,148.1 153.1,148.1 153.1,148.9 153.9,148.9 153.9,147.7 154.7,147.7 154.7,149.2 155.5,149.2 155.5,149.1 156.3,149.1 156.3,148.8 157.1,148.8 157.1,148.1 157.9,148.1 157.9,148.7 158.7,148.7 158.7,147.7 159.5,147.7 159.5,147.9 160.3,147.9 160.3,147.7 161.1,147.7 161.1,148.3 161.9,148.3 161.9,148.0 162.7,148.0 162.7,148.2 163.5,148.2 163.5,148.4 164.3,148.4 164.3,148.3 165.1,148.3 165.1,148.1 165.9,148.1 165.9,149.0 166.7,149.0 166.7,147.8 167.5,147.8 167.5,148.8 168.3,148.8 168.3,148.3 169.1,148.3 169.1,148.0 169.9,148.0 169.9,147.8 170.7,147.8 170.7,148.0 171.5,148.0 171.5,147.7 172.3,147.7 172.3,148.2 173.1,148.2 173.1,147.1 173.9,147.1 173.9,147.9 174.7,147.9 174.7,147.9 175.4,147.9 175.4,147.9 176.2,147.9 176.2,147.7 177.0,147.7 177.0,148.0 177.8,148.0 177.8,147.4 178.6,147.4 178.6,147.5 179.4,147.5 179.4,147.5 180.2,147.5 180.2,147.0 181.0,147.0 181.0,147.0 181.8,147.0 181.8,148.2 182.6,148.2 182.6,147.7 183.4,147.7 183.4,148.0 184.2,148.0 184.2,148.2 185.0,148.2 185.0,147.7 185.8,147.7 185.8,147.8 186.6,147.8 186.6,148.2 187.4,148.2 187.4,148.3 188.2,148.3 188.2,148.5 189.0,148.5 189.0,148.1 189.8,148.1 189.8,147.9 190.6,147.9 190.6,148.2 191.4,148.2 191.4,147.5 192.2,147.5 192.2,148.1 193.0,148.1 193.0,147.6 193.8,147.6 193.8,148.4 194.6,148.4 194.6,148.2 195.4,148.2 195.4,148.3 196.2,148.3 196.2,148.7 197.0,148.7 197.0,149.4 197.8,149.4 197.8,148.7 198.6,148.7 198.6,149.5 199.3,149.5 199.3,148.2 200.1,148.2 200.1,148.5 200.9,148.5 200.9,149.1 201.7,149.1 201.7,148.8 202.5,148.8 202.5,149.2 203.3,149.2 203.3,149.3 204.1,149.3 204.1,149.1 204.9,149.1 204.9,148.6 205.7,148.6 205.7,148.9 206.5,148.9 206.5,148.5 207.3,148.5 207.3,148.9 208.1,148.9 208.1,149.0 208.9,149.0 208.9,149.0 209.7,149.0 209.7,148.5 210.5,148.5 210.5,149.1 211.3,149.1 211.3,149.2 212.1,149.2 212.1,148.3 212.9,148.3 212.9,149.4Line truncated
|
||||
<circle class="nj-charts-json-dot" cx="130.0" cy="147.4" r="3.5"><title>#5285: 3.3×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="130.0" y1="54.0" x2="130.0" y2="142.4"/>
|
||||
<circle class="nj-theme-dot" cx="130.0" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="130.0" y="50.0" text-anchor="middle">6</text>
|
||||
<circle class="nj-charts-json-dot" cx="241.6" cy="139.0" r="3.5"><title>#5738: 3.8×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="241.6" y1="54.0" x2="241.6" y2="134.0"/>
|
||||
<circle class="nj-theme-dot" cx="241.6" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="241.6" y="50.0" text-anchor="middle">2</text>
|
||||
<circle class="nj-charts-json-dot" cx="271.0" cy="131.0" r="3.5"><title>#5878: 4.5×</title></circle>
|
||||
<circle class="nj-charts-json-dot" cx="276.6" cy="109.6" r="3.5"><title>#5883: 6.8×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="276.6" y1="54.0" x2="276.6" y2="104.6"/>
|
||||
<circle class="nj-theme-dot" cx="276.6" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="276.6" y="50.0" text-anchor="middle">2</text>
|
||||
<line class="nj-charts-axis" x1="111.425" y1="208" x2="111.425" y2="212"/>
|
||||
<text class="nj-charts-tick" x="111.425" y="225">Sep 2026</text>
|
||||
<line class="nj-charts-axis" x1="184.777" y1="208" x2="184.777" y2="212"/>
|
||||
<text class="nj-charts-tick" x="184.777" y="225">Oct</text>
|
||||
<line class="nj-charts-axis" x1="284.062" y1="208" x2="284.062" y2="212"/>
|
||||
<text class="nj-charts-tick" x="284.062" y="225">Nov</text>
|
||||
<polyline class="nj-charts-json" points="44.0,208.0 44.7,208.0 44.7,208.0 45.5,208.0 45.5,207.2 46.2,207.2 46.2,207.9 47.0,207.9 47.0,206.8 47.7,206.8 47.7,208.0 48.4,208.0 48.4,207.4 49.2,207.4 49.2,207.3 49.9,207.3 49.9,208.0 50.7,208.0 50.7,206.8 51.4,206.8 51.4,207.2 52.2,207.2 52.2,208.0 52.9,208.0 52.9,207.2 53.6,207.2 53.6,207.5 54.4,207.5 54.4,206.8 55.1,206.8 55.1,206.9 55.9,206.9 55.9,207.5 56.6,207.5 56.6,207.3 57.3,207.3 57.3,207.8 58.1,207.8 58.1,206.8 58.8,206.8 58.8,207.8 59.6,207.8 59.6,207.4 60.3,207.4 60.3,208.0 61.0,208.0 61.0,207.4 61.8,207.4 61.8,207.3 62.5,207.3 62.5,206.9 63.3,206.9 63.3,207.3 64.0,207.3 64.0,207.4 64.7,207.4 64.7,207.6 65.5,207.6 65.5,207.5 66.2,207.5 66.2,207.6 67.0,207.6 67.0,207.4 67.7,207.4 67.7,207.2 68.5,207.2 68.5,207.1 69.2,207.1 69.2,207.3 69.9,207.3 69.9,207.7 70.7,207.7 70.7,207.8 71.4,207.8 71.4,206.9 72.2,206.9 72.2,207.6 72.9,207.6 72.9,207.0 73.6,207.0 73.6,207.0 74.4,207.0 74.4,207.3 75.1,207.3 75.1,207.6 75.9,207.6 75.9,206.8 76.6,206.8 76.6,207.7 77.3,207.7 77.3,207.4 78.1,207.4 78.1,207.5 78.8,207.5 78.8,207.1 79.6,207.1 79.6,207.3 80.3,207.3 80.3,207.5 81.0,207.5 81.0,207.3 81.8,207.3 81.8,207.3 82.5,207.3 82.5,206.9 83.3,206.9 83.3,207.4 84.0,207.4 84.0,207.9 84.8,207.9 84.8,207.3 85.5,207.3 85.5,206.8 86.2,206.8 86.2,207.6 87.0,207.6 87.0,207.7 87.7,207.7 87.7,208.6 88.5,208.6 88.5,208.5 89.2,208.5 89.2,208.6 89.9,208.6 89.9,209.2 90.7,209.2 90.7,208.5 91.4,208.5 91.4,208.2 92.2,208.2 92.2,209.3 92.9,209.3 92.9,208.4 93.6,208.4 93.6,208.4 94.4,208.4 94.4,209.0 95.1,209.0 95.1,209.0 95.9,209.0 95.9,208.7 96.6,208.7 96.6,208.9 97.3,208.9 97.3,208.7 98.1,208.7 98.1,209.0 98.8,209.0 98.8,208.8 99.6,208.8 99.6,208.7 100.3,208.7 100.3,209.3 101.1,209.3 101.1,208.6 101.8,208.6 101.8,208.5 102.5,208.5 102.5,208.4 103.3,208.4 103.3,208.0 104.0,208.0 104.0,208.9 104.8,208.9 104.8,208.6 105.5,208.6 105.5,208.9 106.2,208.9 106.2,208.1 107.0,208.1 107.0,208.0 107.7,208.0 107.7,208.6 108.5,208.6 108.5,208.5 109.2,208.5 109.2,209.1 109.9,209.1 109.9,208.0 110.7,208.0 110.7,209.1 111.4,209.1 111.4,208.9 112.2,208.9 112.2,208.5 112.9,208.5 112.9,209.1 113.6,209.1 113.6,209.0 114.4,209.0 114.4,208.8 115.1,208.8 115.1,208.6 115.9,208.6 115.9,208.6 116.6,208.6 116.6,208.2 117.4,208.2 117.4,209.0 118.1,209.0 118.1,209.2 118.8,209.2 118.8,209.1 119.6,209.1 119.6,209.2 120.3,209.2 120.3,209.2 121.1,209.2 121.1,208.5 121.8,208.5 121.8,208.7 122.5,208.7 122.5,209.5 123.3,209.5 123.3,208.4 124.0,208.4 124.0,147.4 124.8,147.4 124.8,148.3 125.5,148.3 125.5,148.4 126.2,148.4 126.2,147.5 127.0,147.5 127.0,147.5 127.7,147.5 127.7,147.7 128.5,147.7 128.5,148.2 129.2,148.2 129.2,148.2 129.9,148.2 129.9,147.3 130.7,147.3 130.7,148.1 131.4,148.1 131.4,147.2 132.2,147.2 132.2,147.5 132.9,147.5 132.9,147.3 133.7,147.3 133.7,148.4 134.4,148.4 134.4,147.4 135.1,147.4 135.1,148.3 135.9,148.3 135.9,148.5 136.6,148.5 136.6,147.7 137.4,147.7 137.4,147.8 138.1,147.8 138.1,148.0 138.8,148.0 138.8,148.5 139.6,148.5 139.6,148.0 140.3,148.0 140.3,148.1 141.1,148.1 141.1,148.2 141.8,148.2 141.8,148.3 142.5,148.3 142.5,149.0 143.3,149.0 143.3,148.7 144.0,148.7 144.0,148.2 144.8,148.2 144.8,148.1 145.5,148.1 145.5,148.9 146.2,148.9 146.2,147.7 147.0,147.7 147.0,149.2 147.7,149.2 147.7,149.1 148.5,149.1 148.5,148.8 149.2,148.8 149.2,148.1 150.0,148.1 150.0,148.7 150.7,148.7 150.7,147.7 151.4,147.7 151.4,147.9 152.2,147.9 152.2,147.7 152.9,147.7 152.9,148.3 153.7,148.3 153.7,148.0 154.4,148.0 154.4,148.2 155.1,148.2 155.1,148.4 155.9,148.4 155.9,148.3 156.6,148.3 156.6,148.1 157.4,148.1 157.4,149.0 158.1,149.0 158.1,147.8 158.8,147.8 158.8,148.8 159.6,148.8 159.6,148.3 160.3,148.3 160.3,148.0 161.1,148.0 161.1,147.8 161.8,147.8 161.8,148.0 162.5,148.0 162.5,147.7 163.3,147.7 163.3,148.2 164.0,148.2 164.0,147.1 164.8,147.1 164.8,147.9 165.5,147.9 165.5,147.9 166.3,147.9 166.3,147.9 167.0,147.9 167.0,147.7 167.7,147.7 167.7,148.0 168.5,148.0 168.5,147.4 169.2,147.4 169.2,147.5 170.0,147.5 170.0,147.5 170.7,147.5 170.7,147.0 171.4,147.0 171.4,147.0 172.2,147.0 172.2,148.2 172.9,148.2 172.9,147.7 173.7,147.7 173.7,148.0 174.4,148.0 174.4,148.2 175.1,148.2 175.1,147.7 175.9,147.7 175.9,147.8 176.6,147.8 176.6,148.2 177.4,148.2 177.4,148.3 178.1,148.3 178.1,148.5 178.8,148.5 178.8,148.1 179.6,148.1 179.6,147.9 180.3,147.9 180.3,148.2 181.1,148.2 181.1,147.5 181.8,147.5 181.8,148.1 182.6,148.1 182.6,147.6 183.3,147.6 183.3,148.4 184.0,148.4 184.0,148.2 184.8,148.2 184.8,148.3 185.5,148.3 185.5,148.7 186.3,148.7 186.3,149.4 187.0,149.4 187.0,148.7 187.7,148.7 187.7,149.5 188.5,149.5 188.5,148.2 189.2,148.2 189.2,148.5 190.0,148.5 190.0,149.1 190.7,149.1 190.7,148.8 191.4,148.8 191.4,149.2 192.2,149.2 192.2,149.3 192.9,149.3 192.9,149.1 193.7,149.1 193.7,148.6 194.4,148.6 194.4,148.9 195.2,148.9 195.2,148.5 195.9,148.5 195.9,148.9 196.6,148.9 196.6,149.0 197.4,149.0 197.4,149.0 198.1,149.0 198.1,148.5 198.9,148.5 198.9,149.1 199.6,149.1 199.6,149.2 200.3,149.2 200.3,148.3 201.1,148.3 201.1,149.4 201.8,149Line truncated
|
||||
<circle class="nj-charts-json-dot" cx="124.0" cy="147.4" r="3.5"><title>#5285: 3.3×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="124.0" y1="54.0" x2="124.0" y2="142.4"/>
|
||||
<circle class="nj-theme-dot" cx="124.0" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="124.0" y="50.0" text-anchor="middle">6</text>
|
||||
<circle class="nj-charts-json-dot" cx="227.8" cy="139.0" r="3.5"><title>#5738: 3.8×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="227.8" y1="54.0" x2="227.8" y2="134.0"/>
|
||||
<circle class="nj-theme-dot" cx="227.8" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="227.8" y="50.0" text-anchor="middle">2</text>
|
||||
<circle class="nj-charts-json-dot" cx="255.2" cy="131.0" r="3.5"><title>#5878: 4.5×</title></circle>
|
||||
<circle class="nj-charts-json-dot" cx="260.4" cy="109.6" r="3.5"><title>#5883: 6.8×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="260.4" y1="54.0" x2="260.4" y2="104.6"/>
|
||||
<circle class="nj-theme-dot" cx="260.4" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="260.4" y="50.0" text-anchor="middle">2</text>
|
||||
<line class="nj-charts-axis" x1="44" y1="208" x2="330" y2="208"/>
|
||||
<text class="nj-charts-note" x="8" y="262">speedup over 3.12.0 (log scale), more is better</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 12 KiB |
@@ -1,6 +1,6 @@
|
||||
<svg class="nj-fig nj-charts nj-charts--timeline" viewBox="0 0 340 270" role="img" aria-labelledby="nj-blog-tl-from_cbor_twitter nj-blog-tl-from_cbor_twitter-d" xmlns="http://www.w3.org/2000/svg">
|
||||
<title id="nj-blog-tl-from_cbor_twitter">from_cbor() twitter: speedup over 3.12.0 by commit</title>
|
||||
<desc id="nj-blog-tl-from_cbor_twitter-d">from_cbor() twitter: speedup over 3.12.0 at each of 360 commits, ending at 2.8x. Labeled steps, by theme: 1, 4, U, U, 4.</desc>
|
||||
<desc id="nj-blog-tl-from_cbor_twitter-d">from_cbor() twitter: speedup over 3.12.0 at each of 387 commits, ending at 2.8x. Labeled steps, by theme: 1, 4, U, U, 4.</desc>
|
||||
<text class="nj-charts-panel" x="8" y="18">from_cbor() twitter</text>
|
||||
<line class="nj-charts-grid" x1="44" y1="208" x2="330" y2="208"/>
|
||||
<text class="nj-charts-tick nj-charts-tick--r" x="38" y="212">1×</text>
|
||||
@@ -10,33 +10,33 @@
|
||||
<text class="nj-charts-tick nj-charts-tick--r" x="38" y="70">4×</text>
|
||||
<line class="nj-charts-axis" x1="44" y1="208" x2="44" y2="212"/>
|
||||
<text class="nj-charts-tick" x="44" y="225">3.12.0</text>
|
||||
<line class="nj-charts-axis" x1="116.496" y1="208" x2="116.496" y2="212"/>
|
||||
<text class="nj-charts-tick" x="116.496" y="225">Sep 2026</text>
|
||||
<line class="nj-charts-axis" x1="195.365" y1="208" x2="195.365" y2="212"/>
|
||||
<text class="nj-charts-tick" x="195.365" y="225">Oct</text>
|
||||
<line class="nj-charts-axis" x1="302.117" y1="208" x2="302.117" y2="212"/>
|
||||
<text class="nj-charts-tick" x="302.117" y="225">Nov</text>
|
||||
<polyline class="nj-charts-json" points="44.0,208.0 44.8,208.0 44.8,209.1 45.6,209.1 45.6,208.2 46.4,208.2 46.4,208.6 47.2,208.6 47.2,208.0 48.0,208.0 48.0,208.4 48.8,208.4 48.8,208.6 49.6,208.6 49.6,208.3 50.4,208.3 50.4,209.1 51.2,209.1 51.2,207.8 52.0,207.8 52.0,208.5 52.8,208.5 52.8,208.6 53.6,208.6 53.6,208.6 54.4,208.6 54.4,207.7 55.2,207.7 55.2,207.1 55.9,207.1 55.9,207.3 56.7,207.3 56.7,206.9 57.5,206.9 57.5,207.1 58.3,207.1 58.3,207.0 59.1,207.0 59.1,207.1 59.9,207.1 59.9,207.1 60.7,207.1 60.7,207.5 61.5,207.5 61.5,207.5 62.3,207.5 62.3,206.9 63.1,206.9 63.1,207.0 63.9,207.0 63.9,206.2 64.7,206.2 64.7,207.1 65.5,207.1 65.5,208.5 66.3,208.5 66.3,208.0 67.1,208.0 67.1,207.8 67.9,207.8 67.9,208.5 68.7,208.5 68.7,207.8 69.5,207.8 69.5,207.0 70.3,207.0 70.3,208.1 71.1,208.1 71.1,208.2 71.9,208.2 71.9,208.6 72.7,208.6 72.7,208.1 73.5,208.1 73.5,207.2 74.3,207.2 74.3,208.3 75.1,208.3 75.1,207.4 75.9,207.4 75.9,207.9 76.7,207.9 76.7,207.7 77.5,207.7 77.5,208.6 78.3,208.6 78.3,207.3 79.1,207.3 79.1,207.9 79.8,207.9 79.8,208.4 80.6,208.4 80.6,208.5 81.4,208.5 81.4,208.0 82.2,208.0 82.2,207.1 83.0,207.1 83.0,208.1 83.8,208.1 83.8,208.1 84.6,208.1 84.6,207.8 85.4,207.8 85.4,207.9 86.2,207.9 86.2,207.9 87.0,207.9 87.0,208.7 87.8,208.7 87.8,208.1 88.6,208.1 88.6,168.9 89.4,168.9 89.4,170.3 90.2,170.3 90.2,169.9 91.0,169.9 91.0,169.0 91.8,169.0 91.8,169.6 92.6,169.6 92.6,169.1 93.4,169.1 93.4,170.1 94.2,170.1 94.2,168.8 95.0,168.8 95.0,167.9 95.8,167.9 95.8,170.4 96.6,170.4 96.6,169.5 97.4,169.5 97.4,169.7 98.2,169.7 98.2,172.9 99.0,172.9 99.0,170.5 99.8,170.5 99.8,170.4 100.6,170.4 100.6,170.1 101.4,170.1 101.4,170.2 102.2,170.2 102.2,170.7 103.0,170.7 103.0,170.5 103.7,170.5 103.7,170.4 104.5,170.4 104.5,171.1 105.3,171.1 105.3,170.2 106.1,170.2 106.1,168.6 106.9,168.6 106.9,168.9 107.7,168.9 107.7,168.8 108.5,168.8 108.5,170.5 109.3,170.5 109.3,169.2 110.1,169.2 110.1,169.8 110.9,169.8 110.9,168.2 111.7,168.2 111.7,168.3 112.5,168.3 112.5,169.9 113.3,169.9 113.3,170.3 114.1,170.3 114.1,170.5 114.9,170.5 114.9,169.2 115.7,169.2 115.7,170.5 116.5,170.5 116.5,170.1 117.3,170.1 117.3,170.0 118.1,170.0 118.1,170.0 118.9,170.0 118.9,169.7 119.7,169.7 119.7,169.9 120.5,169.9 120.5,169.2 121.3,169.2 121.3,169.6 122.1,169.6 122.1,170.0 122.9,170.0 122.9,170.0 123.7,170.0 123.7,170.5 124.5,170.5 124.5,170.8 125.3,170.8 125.3,170.5 126.1,170.5 126.1,170.8 126.9,170.8 126.9,169.2 127.6,169.2 127.6,128.6 128.4,128.6 128.4,121.0 129.2,121.0 129.2,120.5 130.0,120.5 130.0,120.8 130.8,120.8 130.8,120.9 131.6,120.9 131.6,120.2 132.4,120.2 132.4,116.5 133.2,116.5 133.2,117.5 134.0,117.5 134.0,117.4 134.8,117.4 134.8,118.0 135.6,118.0 135.6,118.3 136.4,118.3 136.4,118.0 137.2,118.0 137.2,120.1 138.0,120.1 138.0,118.9 138.8,118.9 138.8,119.6 139.6,119.6 139.6,119.0 140.4,119.0 140.4,120.9 141.2,120.9 141.2,118.6 142.0,118.6 142.0,121.1 142.8,121.1 142.8,120.1 143.6,120.1 143.6,118.4 144.4,118.4 144.4,119.3 145.2,119.3 145.2,119.0 146.0,119.0 146.0,120.2 146.8,120.2 146.8,119.0 147.6,119.0 147.6,119.4 148.4,119.4 148.4,119.8 149.2,119.8 149.2,120.4 150.0,120.4 150.0,120.6 150.8,120.6 150.8,119.6 151.5,119.6 151.5,118.8 152.3,118.8 152.3,118.4 153.1,118.4 153.1,120.2 153.9,120.2 153.9,119.3 154.7,119.3 154.7,119.9 155.5,119.9 155.5,119.6 156.3,119.6 156.3,119.7 157.1,119.7 157.1,119.2 157.9,119.2 157.9,119.5 158.7,119.5 158.7,118.0 159.5,118.0 159.5,150.3 160.3,150.3 160.3,150.5 161.1,150.5 161.1,150.6 161.9,150.6 161.9,151.3 162.7,151.3 162.7,151.4 163.5,151.4 163.5,150.7 164.3,150.7 164.3,152.1 165.1,152.1 165.1,151.8 165.9,151.8 165.9,152.4 166.7,152.4 166.7,150.6 167.5,150.6 167.5,152.8 168.3,152.8 168.3,154.2 169.1,154.2 169.1,152.8 169.9,152.8 169.9,152.9 170.7,152.9 170.7,153.6 171.5,153.6 171.5,151.7 172.3,151.7 172.3,153.8 173.1,153.8 173.1,151.6 173.9,151.6 173.9,152.6 174.7,152.6 174.7,153.5 175.4,153.5 175.4,151.8 176.2,151.8 176.2,152.7 177.0,152.7 177.0,153.6 177.8,153.6 177.8,152.7 178.6,152.7 178.6,152.5 179.4,152.5 179.4,152.7 180.2,152.7 180.2,151.6 181.0,151.6 181.0,153.2 181.8,153.2 181.8,154.6 182.6,154.6 182.6,152.1 183.4,152.1 183.4,152.9 184.2,152.9 184.2,153.9 185.0,153.9 185.0,153.0 185.8,153.0 185.8,152.6 186.6,152.6 186.6,154.0 187.4,154.0 187.4,154.0 188.2,154.0 188.2,154.3 189.0,154.3 189.0,152.5 189.8,152.5 189.8,154.4 190.6,154.4 190.6,154.2 191.4,154.2 191.4,151.8 192.2,151.8 192.2,154.0 193.0,154.0 193.0,153.0 193.8,153.0 193.8,152.2 194.6,152.2 194.6,153.7 195.4,153.7 195.4,153.8 196.2,153.8 196.2,153.9 197.0,153.9 197.0,155.5 197.8,155.5 197.8,153.4 198.6,153.4 198.6,155.4 199.3,155.4 199.3,152.8 200.1,152.8 200.1,154.0 200.9,154.0 200.9,152.3 201.7,152.3 201.7,153.2 202.5,153.2 202.5,153.5 203.3,153.5 203.3,153.6 204.1,153.6 204.1,154.6 204.9,154.6 204.9,152.7 205.7,152.7 205.7,155.4 206.5,155.4 206.5,152.5 207.3,152.5 207.3,153.3 208.1,153.3 208.1,153.3 208.9,153.3 208.9,154.5 209.7,154.5 209.7,152.6 210.5,152.6 210.5,153.0 211.3,153.0 211.3,154.3 212.1,154.3 212.1,122.0 212.9,122.0 212.9,123.3Line truncated
|
||||
<circle class="nj-charts-json-dot" cx="88.6" cy="168.9" r="3.5"><title>#5233: 1.47×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="88.6" y1="54.0" x2="88.6" y2="163.9"/>
|
||||
<circle class="nj-theme-dot" cx="88.6" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="88.6" y="50.0" text-anchor="middle">1</text>
|
||||
<circle class="nj-charts-json-dot" cx="127.6" cy="128.6" r="3.5"><title>#5501: 2.2×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="127.6" y1="54.0" x2="127.6" y2="123.6"/>
|
||||
<circle class="nj-theme-dot" cx="127.6" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="127.6" y="50.0" text-anchor="middle">4</text>
|
||||
<circle class="nj-charts-json-dot" cx="159.5" cy="150.3" r="3.5"><title>#5185: 1.76×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="159.5" y1="54.0" x2="159.5" y2="145.3"/>
|
||||
<circle class="nj-theme-dot nj-theme-dot--other" cx="159.5" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="159.5" y="50.0" text-anchor="middle">U</text>
|
||||
<circle class="nj-charts-json-dot" cx="212.1" cy="122.0" r="3.5"><title>#5746: 2.3×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="212.1" y1="54.0" x2="212.1" y2="117.0"/>
|
||||
<circle class="nj-theme-dot nj-theme-dot--other" cx="212.1" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="212.1" y="50.0" text-anchor="middle">U</text>
|
||||
<circle class="nj-charts-json-dot" cx="328.4" cy="101.8" r="3.5"><title>#6028: 2.8×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="328.4" y1="54.0" x2="328.4" y2="96.8"/>
|
||||
<circle class="nj-theme-dot" cx="322.5" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="322.5" y="50.0" text-anchor="middle">4</text>
|
||||
<line class="nj-charts-axis" x1="111.425" y1="208" x2="111.425" y2="212"/>
|
||||
<text class="nj-charts-tick" x="111.425" y="225">Sep 2026</text>
|
||||
<line class="nj-charts-axis" x1="184.777" y1="208" x2="184.777" y2="212"/>
|
||||
<text class="nj-charts-tick" x="184.777" y="225">Oct</text>
|
||||
<line class="nj-charts-axis" x1="284.062" y1="208" x2="284.062" y2="212"/>
|
||||
<text class="nj-charts-tick" x="284.062" y="225">Nov</text>
|
||||
<polyline class="nj-charts-json" points="44.0,208.0 44.7,208.0 44.7,209.1 45.5,209.1 45.5,208.2 46.2,208.2 46.2,208.6 47.0,208.6 47.0,208.0 47.7,208.0 47.7,208.4 48.4,208.4 48.4,208.6 49.2,208.6 49.2,208.3 49.9,208.3 49.9,209.1 50.7,209.1 50.7,207.8 51.4,207.8 51.4,208.5 52.2,208.5 52.2,208.6 52.9,208.6 52.9,208.6 53.6,208.6 53.6,207.7 54.4,207.7 54.4,207.1 55.1,207.1 55.1,207.3 55.9,207.3 55.9,206.9 56.6,206.9 56.6,207.1 57.3,207.1 57.3,207.0 58.1,207.0 58.1,207.1 58.8,207.1 58.8,207.1 59.6,207.1 59.6,207.5 60.3,207.5 60.3,207.5 61.0,207.5 61.0,206.9 61.8,206.9 61.8,207.0 62.5,207.0 62.5,206.2 63.3,206.2 63.3,207.1 64.0,207.1 64.0,208.5 64.7,208.5 64.7,208.0 65.5,208.0 65.5,207.8 66.2,207.8 66.2,208.5 67.0,208.5 67.0,207.8 67.7,207.8 67.7,207.0 68.5,207.0 68.5,208.1 69.2,208.1 69.2,208.2 69.9,208.2 69.9,208.6 70.7,208.6 70.7,208.1 71.4,208.1 71.4,207.2 72.2,207.2 72.2,208.3 72.9,208.3 72.9,207.4 73.6,207.4 73.6,207.9 74.4,207.9 74.4,207.7 75.1,207.7 75.1,208.6 75.9,208.6 75.9,207.3 76.6,207.3 76.6,207.9 77.3,207.9 77.3,208.4 78.1,208.4 78.1,208.5 78.8,208.5 78.8,208.0 79.6,208.0 79.6,207.1 80.3,207.1 80.3,208.1 81.0,208.1 81.0,208.1 81.8,208.1 81.8,207.8 82.5,207.8 82.5,207.9 83.3,207.9 83.3,207.9 84.0,207.9 84.0,208.7 84.8,208.7 84.8,208.1 85.5,208.1 85.5,168.9 86.2,168.9 86.2,170.3 87.0,170.3 87.0,169.9 87.7,169.9 87.7,169.0 88.5,169.0 88.5,169.6 89.2,169.6 89.2,169.1 89.9,169.1 89.9,170.1 90.7,170.1 90.7,168.8 91.4,168.8 91.4,167.9 92.2,167.9 92.2,170.4 92.9,170.4 92.9,169.5 93.6,169.5 93.6,169.7 94.4,169.7 94.4,172.9 95.1,172.9 95.1,170.5 95.9,170.5 95.9,170.4 96.6,170.4 96.6,170.1 97.3,170.1 97.3,170.2 98.1,170.2 98.1,170.7 98.8,170.7 98.8,170.5 99.6,170.5 99.6,170.4 100.3,170.4 100.3,171.1 101.1,171.1 101.1,170.2 101.8,170.2 101.8,168.6 102.5,168.6 102.5,168.9 103.3,168.9 103.3,168.8 104.0,168.8 104.0,170.5 104.8,170.5 104.8,169.2 105.5,169.2 105.5,169.8 106.2,169.8 106.2,168.2 107.0,168.2 107.0,168.3 107.7,168.3 107.7,169.9 108.5,169.9 108.5,170.3 109.2,170.3 109.2,170.5 109.9,170.5 109.9,169.2 110.7,169.2 110.7,170.5 111.4,170.5 111.4,170.1 112.2,170.1 112.2,170.0 112.9,170.0 112.9,170.0 113.6,170.0 113.6,169.7 114.4,169.7 114.4,169.9 115.1,169.9 115.1,169.2 115.9,169.2 115.9,169.6 116.6,169.6 116.6,170.0 117.4,170.0 117.4,170.0 118.1,170.0 118.1,170.5 118.8,170.5 118.8,170.8 119.6,170.8 119.6,170.5 120.3,170.5 120.3,170.8 121.1,170.8 121.1,169.2 121.8,169.2 121.8,128.6 122.5,128.6 122.5,121.0 123.3,121.0 123.3,120.5 124.0,120.5 124.0,120.8 124.8,120.8 124.8,120.9 125.5,120.9 125.5,120.2 126.2,120.2 126.2,116.5 127.0,116.5 127.0,117.5 127.7,117.5 127.7,117.4 128.5,117.4 128.5,118.0 129.2,118.0 129.2,118.3 129.9,118.3 129.9,118.0 130.7,118.0 130.7,120.1 131.4,120.1 131.4,118.9 132.2,118.9 132.2,119.6 132.9,119.6 132.9,119.0 133.7,119.0 133.7,120.9 134.4,120.9 134.4,118.6 135.1,118.6 135.1,121.1 135.9,121.1 135.9,120.1 136.6,120.1 136.6,118.4 137.4,118.4 137.4,119.3 138.1,119.3 138.1,119.0 138.8,119.0 138.8,120.2 139.6,120.2 139.6,119.0 140.3,119.0 140.3,119.4 141.1,119.4 141.1,119.8 141.8,119.8 141.8,120.4 142.5,120.4 142.5,120.6 143.3,120.6 143.3,119.6 144.0,119.6 144.0,118.8 144.8,118.8 144.8,118.4 145.5,118.4 145.5,120.2 146.2,120.2 146.2,119.3 147.0,119.3 147.0,119.9 147.7,119.9 147.7,119.6 148.5,119.6 148.5,119.7 149.2,119.7 149.2,119.2 150.0,119.2 150.0,119.5 150.7,119.5 150.7,118.0 151.4,118.0 151.4,150.3 152.2,150.3 152.2,150.5 152.9,150.5 152.9,150.6 153.7,150.6 153.7,151.3 154.4,151.3 154.4,151.4 155.1,151.4 155.1,150.7 155.9,150.7 155.9,152.1 156.6,152.1 156.6,151.8 157.4,151.8 157.4,152.4 158.1,152.4 158.1,150.6 158.8,150.6 158.8,152.8 159.6,152.8 159.6,154.2 160.3,154.2 160.3,152.8 161.1,152.8 161.1,152.9 161.8,152.9 161.8,153.6 162.5,153.6 162.5,151.7 163.3,151.7 163.3,153.8 164.0,153.8 164.0,151.6 164.8,151.6 164.8,152.6 165.5,152.6 165.5,153.5 166.3,153.5 166.3,151.8 167.0,151.8 167.0,152.7 167.7,152.7 167.7,153.6 168.5,153.6 168.5,152.7 169.2,152.7 169.2,152.5 170.0,152.5 170.0,152.7 170.7,152.7 170.7,151.6 171.4,151.6 171.4,153.2 172.2,153.2 172.2,154.6 172.9,154.6 172.9,152.1 173.7,152.1 173.7,152.9 174.4,152.9 174.4,153.9 175.1,153.9 175.1,153.0 175.9,153.0 175.9,152.6 176.6,152.6 176.6,154.0 177.4,154.0 177.4,154.0 178.1,154.0 178.1,154.3 178.8,154.3 178.8,152.5 179.6,152.5 179.6,154.4 180.3,154.4 180.3,154.2 181.1,154.2 181.1,151.8 181.8,151.8 181.8,154.0 182.6,154.0 182.6,153.0 183.3,153.0 183.3,152.2 184.0,152.2 184.0,153.7 184.8,153.7 184.8,153.8 185.5,153.8 185.5,153.9 186.3,153.9 186.3,155.5 187.0,155.5 187.0,153.4 187.7,153.4 187.7,155.4 188.5,155.4 188.5,152.8 189.2,152.8 189.2,154.0 190.0,154.0 190.0,152.3 190.7,152.3 190.7,153.2 191.4,153.2 191.4,153.5 192.2,153.5 192.2,153.6 192.9,153.6 192.9,154.6 193.7,154.6 193.7,152.7 194.4,152.7 194.4,155.4 195.2,155.4 195.2,152.5 195.9,152.5 195.9,153.3 196.6,153.3 196.6,153.3 197.4,153.3 197.4,154.5 198.1,154.5 198.1,152.6 198.9,152.6 198.9,153.0 199.6,153.0 199.6,154.3 200.3,154.3 200.3,122.0 201.1,122.0 201.1,123.3 201.8,123Line truncated
|
||||
<circle class="nj-charts-json-dot" cx="85.5" cy="168.9" r="3.5"><title>#5233: 1.47×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="85.5" y1="54.0" x2="85.5" y2="163.9"/>
|
||||
<circle class="nj-theme-dot" cx="85.5" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="85.5" y="50.0" text-anchor="middle">1</text>
|
||||
<circle class="nj-charts-json-dot" cx="121.8" cy="128.6" r="3.5"><title>#5501: 2.2×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="121.8" y1="54.0" x2="121.8" y2="123.6"/>
|
||||
<circle class="nj-theme-dot" cx="121.8" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="121.8" y="50.0" text-anchor="middle">4</text>
|
||||
<circle class="nj-charts-json-dot" cx="151.4" cy="150.3" r="3.5"><title>#5185: 1.76×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="151.4" y1="54.0" x2="151.4" y2="145.3"/>
|
||||
<circle class="nj-theme-dot nj-theme-dot--other" cx="151.4" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="151.4" y="50.0" text-anchor="middle">U</text>
|
||||
<circle class="nj-charts-json-dot" cx="200.3" cy="122.0" r="3.5"><title>#5746: 2.3×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="200.3" y1="54.0" x2="200.3" y2="117.0"/>
|
||||
<circle class="nj-theme-dot nj-theme-dot--other" cx="200.3" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="200.3" y="50.0" text-anchor="middle">U</text>
|
||||
<circle class="nj-charts-json-dot" cx="308.5" cy="101.8" r="3.5"><title>#6028: 2.8×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="308.5" y1="54.0" x2="308.5" y2="96.8"/>
|
||||
<circle class="nj-theme-dot" cx="308.5" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="308.5" y="50.0" text-anchor="middle">4</text>
|
||||
<line class="nj-charts-axis" x1="44" y1="208" x2="330" y2="208"/>
|
||||
<text class="nj-charts-note" x="8" y="262">speedup over 3.12.0 (log scale), more is better</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
@@ -1,6 +1,6 @@
|
||||
<svg class="nj-fig nj-charts nj-charts--timeline" viewBox="0 0 340 270" role="img" aria-labelledby="nj-blog-tl-parse_canada nj-blog-tl-parse_canada-d" xmlns="http://www.w3.org/2000/svg">
|
||||
<title id="nj-blog-tl-parse_canada">parse() canada.json: speedup over 3.12.0 by commit</title>
|
||||
<desc id="nj-blog-tl-parse_canada-d">parse() canada.json: speedup over 3.12.0 at each of 360 commits, ending at 3.3x. Labeled steps, by theme: 4, 1, 3, 3, 3, 4, 1.</desc>
|
||||
<desc id="nj-blog-tl-parse_canada-d">parse() canada.json: speedup over 3.12.0 at each of 387 commits, ending at 3.3x. Labeled steps, by theme: 4, 1, 3, 3, 3, 4, 1.</desc>
|
||||
<text class="nj-charts-panel" x="8" y="18">parse() canada.json</text>
|
||||
<line class="nj-charts-grid" x1="44" y1="208" x2="330" y2="208"/>
|
||||
<text class="nj-charts-tick nj-charts-tick--r" x="38" y="212">1×</text>
|
||||
@@ -12,41 +12,41 @@
|
||||
<text class="nj-charts-tick nj-charts-tick--r" x="38" y="70">8×</text>
|
||||
<line class="nj-charts-axis" x1="44" y1="208" x2="44" y2="212"/>
|
||||
<text class="nj-charts-tick" x="44" y="225">3.12.0</text>
|
||||
<line class="nj-charts-axis" x1="116.496" y1="208" x2="116.496" y2="212"/>
|
||||
<text class="nj-charts-tick" x="116.496" y="225">Sep 2026</text>
|
||||
<line class="nj-charts-axis" x1="195.365" y1="208" x2="195.365" y2="212"/>
|
||||
<text class="nj-charts-tick" x="195.365" y="225">Oct</text>
|
||||
<line class="nj-charts-axis" x1="302.117" y1="208" x2="302.117" y2="212"/>
|
||||
<text class="nj-charts-tick" x="302.117" y="225">Nov</text>
|
||||
<polyline class="nj-charts-json" points="44.0,208.0 44.8,208.0 44.8,208.1 45.6,208.1 45.6,208.1 46.4,208.1 46.4,207.8 47.2,207.8 47.2,207.5 48.0,207.5 48.0,208.0 48.8,208.0 48.8,208.1 49.6,208.1 49.6,207.8 50.4,207.8 50.4,208.3 51.2,208.3 51.2,207.5 52.0,207.5 52.0,208.0 52.8,208.0 52.8,208.8 53.6,208.8 53.6,208.3 54.4,208.3 54.4,208.1 55.2,208.1 55.2,207.8 55.9,207.8 55.9,209.2 56.7,209.2 56.7,208.4 57.5,208.4 57.5,208.1 58.3,208.1 58.3,208.1 59.1,208.1 59.1,207.3 59.9,207.3 59.9,207.8 60.7,207.8 60.7,207.7 61.5,207.7 61.5,208.1 62.3,208.1 62.3,208.3 63.1,208.3 63.1,207.8 63.9,207.8 63.9,207.6 64.7,207.6 64.7,208.2 65.5,208.2 65.5,207.5 66.3,207.5 66.3,207.8 67.1,207.8 67.1,207.9 67.9,207.9 67.9,207.9 68.7,207.9 68.7,207.6 69.5,207.6 69.5,207.7 70.3,207.7 70.3,208.0 71.1,208.0 71.1,208.1 71.9,208.1 71.9,207.9 72.7,207.9 72.7,207.9 73.5,207.9 73.5,207.4 74.3,207.4 74.3,207.7 75.1,207.7 75.1,207.9 75.9,207.9 75.9,207.5 76.7,207.5 76.7,207.8 77.5,207.8 77.5,208.4 78.3,208.4 78.3,207.0 79.1,207.0 79.1,208.0 79.8,208.0 79.8,208.5 80.6,208.5 80.6,208.0 81.4,208.0 81.4,207.8 82.2,207.8 82.2,208.3 83.0,208.3 83.0,208.0 83.8,208.0 83.8,207.7 84.6,207.7 84.6,207.9 85.4,207.9 85.4,207.6 86.2,207.6 86.2,207.7 87.0,207.7 87.0,208.3 87.8,208.3 87.8,201.0 88.6,201.0 88.6,201.3 89.4,201.3 89.4,200.6 90.2,200.6 90.2,200.7 91.0,200.7 91.0,201.2 91.8,201.2 91.8,200.0 92.6,200.0 92.6,200.8 93.4,200.8 93.4,201.4 94.2,201.4 94.2,200.9 95.0,200.9 95.0,200.6 95.8,200.6 95.8,201.0 96.6,201.0 96.6,200.8 97.4,200.8 97.4,201.1 98.2,201.1 98.2,201.1 99.0,201.1 99.0,201.1 99.8,201.1 99.8,200.6 100.6,200.6 100.6,201.3 101.4,201.3 101.4,201.3 102.2,201.3 102.2,201.0 103.0,201.0 103.0,201.0 103.7,201.0 103.7,201.0 104.5,201.0 104.5,201.4 105.3,201.4 105.3,201.3 106.1,201.3 106.1,199.5 106.9,199.5 106.9,200.4 107.7,200.4 107.7,201.2 108.5,201.2 108.5,200.7 109.3,200.7 109.3,200.2 110.1,200.2 110.1,200.5 110.9,200.5 110.9,200.4 111.7,200.4 111.7,200.4 112.5,200.4 112.5,201.1 113.3,201.1 113.3,201.0 114.1,201.0 114.1,201.4 114.9,201.4 114.9,199.9 115.7,199.9 115.7,201.0 116.5,201.0 116.5,201.1 117.3,201.1 117.3,200.5 118.1,200.5 118.1,200.7 118.9,200.7 118.9,201.3 119.7,201.3 119.7,200.6 120.5,200.6 120.5,200.8 121.3,200.8 121.3,200.4 122.1,200.4 122.1,200.7 122.9,200.7 122.9,200.8 123.7,200.8 123.7,201.0 124.5,201.0 124.5,201.2 125.3,201.2 125.3,200.8 126.1,200.8 126.1,201.1 126.9,201.1 126.9,200.9 127.6,200.9 127.6,200.7 128.4,200.7 128.4,181.8 129.2,181.8 129.2,182.4 130.0,182.4 130.0,182.8 130.8,182.8 130.8,181.9 131.6,181.9 131.6,181.6 132.4,181.6 132.4,182.6 133.2,182.6 133.2,181.8 134.0,181.8 134.0,181.5 134.8,181.5 134.8,182.5 135.6,182.5 135.6,183.2 136.4,183.2 136.4,181.4 137.2,181.4 137.2,182.8 138.0,182.8 138.0,182.1 138.8,182.1 138.8,182.7 139.6,182.7 139.6,181.6 140.4,181.6 140.4,182.5 141.2,182.5 141.2,182.7 142.0,182.7 142.0,182.5 142.8,182.5 142.8,182.1 143.6,182.1 143.6,180.8 144.4,180.8 144.4,182.5 145.2,182.5 145.2,181.7 146.0,181.7 146.0,182.9 146.8,182.9 146.8,182.5 147.6,182.5 147.6,181.8 148.4,181.8 148.4,182.2 149.2,182.2 149.2,184.2 150.0,184.2 150.0,183.5 150.8,183.5 150.8,182.1 151.5,182.1 151.5,181.2 152.3,181.2 152.3,182.2 153.1,182.2 153.1,182.1 153.9,182.1 153.9,181.7 154.7,181.7 154.7,181.8 155.5,181.8 155.5,181.7 156.3,181.7 156.3,182.0 157.1,182.0 157.1,181.7 157.9,181.7 157.9,183.2 158.7,183.2 158.7,182.6 159.5,182.6 159.5,181.4 160.3,181.4 160.3,181.9 161.1,181.9 161.1,181.7 161.9,181.7 161.9,181.6 162.7,181.6 162.7,182.6 163.5,182.6 163.5,182.1 164.3,182.1 164.3,181.7 165.1,181.7 165.1,181.7 165.9,181.7 165.9,182.2 166.7,182.2 166.7,182.0 167.5,182.0 167.5,182.8 168.3,182.8 168.3,188.0 169.1,188.0 169.1,187.6 169.9,187.6 169.9,181.2 170.7,181.2 170.7,181.7 171.5,181.7 171.5,181.8 172.3,181.8 172.3,181.6 173.1,181.6 173.1,181.9 173.9,181.9 173.9,181.3 174.7,181.3 174.7,181.5 175.4,181.5 175.4,181.1 176.2,181.1 176.2,181.0 177.0,181.0 177.0,181.4 177.8,181.4 177.8,181.5 178.6,181.5 178.6,181.4 179.4,181.4 179.4,181.4 180.2,181.4 180.2,181.0 181.0,181.0 181.0,180.4 181.8,180.4 181.8,182.1 182.6,182.1 182.6,181.7 183.4,181.7 183.4,181.6 184.2,181.6 184.2,181.4 185.0,181.4 185.0,180.9 185.8,180.9 185.8,181.3 186.6,181.3 186.6,181.5 187.4,181.5 187.4,181.7 188.2,181.7 188.2,182.0 189.0,182.0 189.0,180.4 189.8,180.4 189.8,182.3 190.6,182.3 190.6,182.2 191.4,182.2 191.4,180.9 192.2,180.9 192.2,181.6 193.0,181.6 193.0,180.8 193.8,180.8 193.8,182.2 194.6,182.2 194.6,181.9 195.4,181.9 195.4,180.9 196.2,180.9 196.2,181.6 197.0,181.6 197.0,181.6 197.8,181.6 197.8,180.6 198.6,180.6 198.6,181.8 199.3,181.8 199.3,179.8 200.1,179.8 200.1,180.7 200.9,180.7 200.9,180.4 201.7,180.4 201.7,181.0 202.5,181.0 202.5,181.1 203.3,181.1 203.3,180.8 204.1,180.8 204.1,180.9 204.9,180.9 204.9,180.4 205.7,180.4 205.7,180.1 206.5,180.1 206.5,181.6 207.3,181.6 207.3,180.8 208.1,180.8 208.1,180.5 208.9,180.5 208.9,180.3 209.7,180.3 209.7,180.0 210.5,180.0 210.5,180.9 211.3,180.9 211.3,180.8 212.1,180.8 212.1,180.9 212.9,180.9 212.9,181.5Line truncated
|
||||
<circle class="nj-charts-json-dot" cx="87.8" cy="201.0" r="3.5"><title>#5234: 1.11×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="87.8" y1="54.0" x2="87.8" y2="196.0"/>
|
||||
<circle class="nj-theme-dot" cx="87.8" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="87.8" y="50.0" text-anchor="middle">4</text>
|
||||
<circle class="nj-charts-json-dot" cx="128.4" cy="181.8" r="3.5"><title>#5283: 1.47×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="128.4" y1="54.0" x2="128.4" y2="176.8"/>
|
||||
<circle class="nj-theme-dot" cx="128.4" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="128.4" y="50.0" text-anchor="middle">1</text>
|
||||
<circle class="nj-charts-json-dot" cx="169.9" cy="181.2" r="3.5"><title>#5617: 1.48×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="169.9" y1="54.0" x2="169.9" y2="176.2"/>
|
||||
<circle class="nj-theme-dot" cx="169.9" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="169.9" y="50.0" text-anchor="middle">3</text>
|
||||
<circle class="nj-charts-json-dot" cx="241.6" cy="162.6" r="3.5"><title>#5738: 1.95×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="241.6" y1="54.0" x2="241.6" y2="157.6"/>
|
||||
<circle class="nj-theme-dot" cx="241.6" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="241.6" y="50.0" text-anchor="middle">3</text>
|
||||
<circle class="nj-charts-json-dot" cx="267.1" cy="154.3" r="3.5"><title>#5851: 2.2×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="267.1" y1="54.0" x2="267.1" y2="149.3"/>
|
||||
<circle class="nj-theme-dot" cx="267.1" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="267.1" y="50.0" text-anchor="middle">3</text>
|
||||
<circle class="nj-charts-json-dot" cx="280.6" cy="137.5" r="3.5"><title>#5882: 2.8×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="280.6" y1="36.0" x2="280.6" y2="132.5"/>
|
||||
<circle class="nj-theme-dot" cx="280.6" cy="28.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="280.6" y="32.0" text-anchor="middle">4</text>
|
||||
<circle class="nj-charts-json-dot" cx="330.0" cy="126.8" r="3.5"><title>#6031: 3.3×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="330.0" y1="54.0" x2="330.0" y2="121.8"/>
|
||||
<circle class="nj-theme-dot" cx="322.5" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="322.5" y="50.0" text-anchor="middle">1</text>
|
||||
<line class="nj-charts-axis" x1="111.425" y1="208" x2="111.425" y2="212"/>
|
||||
<text class="nj-charts-tick" x="111.425" y="225">Sep 2026</text>
|
||||
<line class="nj-charts-axis" x1="184.777" y1="208" x2="184.777" y2="212"/>
|
||||
<text class="nj-charts-tick" x="184.777" y="225">Oct</text>
|
||||
<line class="nj-charts-axis" x1="284.062" y1="208" x2="284.062" y2="212"/>
|
||||
<text class="nj-charts-tick" x="284.062" y="225">Nov</text>
|
||||
<polyline class="nj-charts-json" points="44.0,208.0 44.7,208.0 44.7,208.1 45.5,208.1 45.5,208.1 46.2,208.1 46.2,207.8 47.0,207.8 47.0,207.5 47.7,207.5 47.7,208.0 48.4,208.0 48.4,208.1 49.2,208.1 49.2,207.8 49.9,207.8 49.9,208.3 50.7,208.3 50.7,207.5 51.4,207.5 51.4,208.0 52.2,208.0 52.2,208.8 52.9,208.8 52.9,208.3 53.6,208.3 53.6,208.1 54.4,208.1 54.4,207.8 55.1,207.8 55.1,209.2 55.9,209.2 55.9,208.4 56.6,208.4 56.6,208.1 57.3,208.1 57.3,208.1 58.1,208.1 58.1,207.3 58.8,207.3 58.8,207.8 59.6,207.8 59.6,207.7 60.3,207.7 60.3,208.1 61.0,208.1 61.0,208.3 61.8,208.3 61.8,207.8 62.5,207.8 62.5,207.6 63.3,207.6 63.3,208.2 64.0,208.2 64.0,207.5 64.7,207.5 64.7,207.8 65.5,207.8 65.5,207.9 66.2,207.9 66.2,207.9 67.0,207.9 67.0,207.6 67.7,207.6 67.7,207.7 68.5,207.7 68.5,208.0 69.2,208.0 69.2,208.1 69.9,208.1 69.9,207.9 70.7,207.9 70.7,207.9 71.4,207.9 71.4,207.4 72.2,207.4 72.2,207.7 72.9,207.7 72.9,207.9 73.6,207.9 73.6,207.5 74.4,207.5 74.4,207.8 75.1,207.8 75.1,208.4 75.9,208.4 75.9,207.0 76.6,207.0 76.6,208.0 77.3,208.0 77.3,208.5 78.1,208.5 78.1,208.0 78.8,208.0 78.8,207.8 79.6,207.8 79.6,208.3 80.3,208.3 80.3,208.0 81.0,208.0 81.0,207.7 81.8,207.7 81.8,207.9 82.5,207.9 82.5,207.6 83.3,207.6 83.3,207.7 84.0,207.7 84.0,208.3 84.8,208.3 84.8,201.0 85.5,201.0 85.5,201.3 86.2,201.3 86.2,200.6 87.0,200.6 87.0,200.7 87.7,200.7 87.7,201.2 88.5,201.2 88.5,200.0 89.2,200.0 89.2,200.8 89.9,200.8 89.9,201.4 90.7,201.4 90.7,200.9 91.4,200.9 91.4,200.6 92.2,200.6 92.2,201.0 92.9,201.0 92.9,200.8 93.6,200.8 93.6,201.1 94.4,201.1 94.4,201.1 95.1,201.1 95.1,201.1 95.9,201.1 95.9,200.6 96.6,200.6 96.6,201.3 97.3,201.3 97.3,201.3 98.1,201.3 98.1,201.0 98.8,201.0 98.8,201.0 99.6,201.0 99.6,201.0 100.3,201.0 100.3,201.4 101.1,201.4 101.1,201.3 101.8,201.3 101.8,199.5 102.5,199.5 102.5,200.4 103.3,200.4 103.3,201.2 104.0,201.2 104.0,200.7 104.8,200.7 104.8,200.2 105.5,200.2 105.5,200.5 106.2,200.5 106.2,200.4 107.0,200.4 107.0,200.4 107.7,200.4 107.7,201.1 108.5,201.1 108.5,201.0 109.2,201.0 109.2,201.4 109.9,201.4 109.9,199.9 110.7,199.9 110.7,201.0 111.4,201.0 111.4,201.1 112.2,201.1 112.2,200.5 112.9,200.5 112.9,200.7 113.6,200.7 113.6,201.3 114.4,201.3 114.4,200.6 115.1,200.6 115.1,200.8 115.9,200.8 115.9,200.4 116.6,200.4 116.6,200.7 117.4,200.7 117.4,200.8 118.1,200.8 118.1,201.0 118.8,201.0 118.8,201.2 119.6,201.2 119.6,200.8 120.3,200.8 120.3,201.1 121.1,201.1 121.1,200.9 121.8,200.9 121.8,200.7 122.5,200.7 122.5,181.8 123.3,181.8 123.3,182.4 124.0,182.4 124.0,182.8 124.8,182.8 124.8,181.9 125.5,181.9 125.5,181.6 126.2,181.6 126.2,182.6 127.0,182.6 127.0,181.8 127.7,181.8 127.7,181.5 128.5,181.5 128.5,182.5 129.2,182.5 129.2,183.2 129.9,183.2 129.9,181.4 130.7,181.4 130.7,182.8 131.4,182.8 131.4,182.1 132.2,182.1 132.2,182.7 132.9,182.7 132.9,181.6 133.7,181.6 133.7,182.5 134.4,182.5 134.4,182.7 135.1,182.7 135.1,182.5 135.9,182.5 135.9,182.1 136.6,182.1 136.6,180.8 137.4,180.8 137.4,182.5 138.1,182.5 138.1,181.7 138.8,181.7 138.8,182.9 139.6,182.9 139.6,182.5 140.3,182.5 140.3,181.8 141.1,181.8 141.1,182.2 141.8,182.2 141.8,184.2 142.5,184.2 142.5,183.5 143.3,183.5 143.3,182.1 144.0,182.1 144.0,181.2 144.8,181.2 144.8,182.2 145.5,182.2 145.5,182.1 146.2,182.1 146.2,181.7 147.0,181.7 147.0,181.8 147.7,181.8 147.7,181.7 148.5,181.7 148.5,182.0 149.2,182.0 149.2,181.7 150.0,181.7 150.0,183.2 150.7,183.2 150.7,182.6 151.4,182.6 151.4,181.4 152.2,181.4 152.2,181.9 152.9,181.9 152.9,181.7 153.7,181.7 153.7,181.6 154.4,181.6 154.4,182.6 155.1,182.6 155.1,182.1 155.9,182.1 155.9,181.7 156.6,181.7 156.6,181.7 157.4,181.7 157.4,182.2 158.1,182.2 158.1,182.0 158.8,182.0 158.8,182.8 159.6,182.8 159.6,188.0 160.3,188.0 160.3,187.6 161.1,187.6 161.1,181.2 161.8,181.2 161.8,181.7 162.5,181.7 162.5,181.8 163.3,181.8 163.3,181.6 164.0,181.6 164.0,181.9 164.8,181.9 164.8,181.3 165.5,181.3 165.5,181.5 166.3,181.5 166.3,181.1 167.0,181.1 167.0,181.0 167.7,181.0 167.7,181.4 168.5,181.4 168.5,181.5 169.2,181.5 169.2,181.4 170.0,181.4 170.0,181.4 170.7,181.4 170.7,181.0 171.4,181.0 171.4,180.4 172.2,180.4 172.2,182.1 172.9,182.1 172.9,181.7 173.7,181.7 173.7,181.6 174.4,181.6 174.4,181.4 175.1,181.4 175.1,180.9 175.9,180.9 175.9,181.3 176.6,181.3 176.6,181.5 177.4,181.5 177.4,181.7 178.1,181.7 178.1,182.0 178.8,182.0 178.8,180.4 179.6,180.4 179.6,182.3 180.3,182.3 180.3,182.2 181.1,182.2 181.1,180.9 181.8,180.9 181.8,181.6 182.6,181.6 182.6,180.8 183.3,180.8 183.3,182.2 184.0,182.2 184.0,181.9 184.8,181.9 184.8,180.9 185.5,180.9 185.5,181.6 186.3,181.6 186.3,181.6 187.0,181.6 187.0,180.6 187.7,180.6 187.7,181.8 188.5,181.8 188.5,179.8 189.2,179.8 189.2,180.7 190.0,180.7 190.0,180.4 190.7,180.4 190.7,181.0 191.4,181.0 191.4,181.1 192.2,181.1 192.2,180.8 192.9,180.8 192.9,180.9 193.7,180.9 193.7,180.4 194.4,180.4 194.4,180.1 195.2,180.1 195.2,181.6 195.9,181.6 195.9,180.8 196.6,180.8 196.6,180.5 197.4,180.5 197.4,180.3 198.1,180.3 198.1,180.0 198.9,180.0 198.9,180.9 199.6,180.9 199.6,180.8 200.3,180.8 200.3,180.9 201.1,180.9 201.1,181.5 201.8,181Line truncated
|
||||
<circle class="nj-charts-json-dot" cx="84.8" cy="201.0" r="3.5"><title>#5234: 1.11×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="84.8" y1="54.0" x2="84.8" y2="196.0"/>
|
||||
<circle class="nj-theme-dot" cx="84.8" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="84.8" y="50.0" text-anchor="middle">4</text>
|
||||
<circle class="nj-charts-json-dot" cx="122.5" cy="181.8" r="3.5"><title>#5283: 1.47×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="122.5" y1="54.0" x2="122.5" y2="176.8"/>
|
||||
<circle class="nj-theme-dot" cx="122.5" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="122.5" y="50.0" text-anchor="middle">1</text>
|
||||
<circle class="nj-charts-json-dot" cx="161.1" cy="181.2" r="3.5"><title>#5617: 1.48×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="161.1" y1="54.0" x2="161.1" y2="176.2"/>
|
||||
<circle class="nj-theme-dot" cx="161.1" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="161.1" y="50.0" text-anchor="middle">3</text>
|
||||
<circle class="nj-charts-json-dot" cx="227.8" cy="162.6" r="3.5"><title>#5738: 1.95×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="227.8" y1="54.0" x2="227.8" y2="157.6"/>
|
||||
<circle class="nj-theme-dot" cx="227.8" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="227.8" y="50.0" text-anchor="middle">3</text>
|
||||
<circle class="nj-charts-json-dot" cx="251.5" cy="154.3" r="3.5"><title>#5851: 2.2×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="251.5" y1="54.0" x2="251.5" y2="149.3"/>
|
||||
<circle class="nj-theme-dot" cx="251.5" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="251.5" y="50.0" text-anchor="middle">3</text>
|
||||
<circle class="nj-charts-json-dot" cx="264.1" cy="137.5" r="3.5"><title>#5882: 2.8×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="264.1" y1="36.0" x2="264.1" y2="132.5"/>
|
||||
<circle class="nj-theme-dot" cx="264.1" cy="28.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="264.1" y="32.0" text-anchor="middle">4</text>
|
||||
<circle class="nj-charts-json-dot" cx="310.7" cy="127.0" r="3.5"><title>#6031: 3.3×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="310.7" y1="54.0" x2="310.7" y2="122.0"/>
|
||||
<circle class="nj-theme-dot" cx="310.7" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="310.7" y="50.0" text-anchor="middle">1</text>
|
||||
<line class="nj-charts-axis" x1="44" y1="208" x2="330" y2="208"/>
|
||||
<text class="nj-charts-note" x="8" y="262">speedup over 3.12.0 (log scale), more is better</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 13 KiB |
@@ -1,6 +1,6 @@
|
||||
<svg class="nj-fig nj-charts nj-charts--timeline" viewBox="0 0 340 270" role="img" aria-labelledby="nj-blog-tl-parse_citm nj-blog-tl-parse_citm-d" xmlns="http://www.w3.org/2000/svg">
|
||||
<title id="nj-blog-tl-parse_citm">parse() citm_catalog.json: speedup over 3.12.0 by commit</title>
|
||||
<desc id="nj-blog-tl-parse_citm-d">parse() citm_catalog.json: speedup over 3.12.0 at each of 360 commits, ending at 3.8x. Labeled steps, by theme: 4, 1, 4, 4, 2, 4, 1.</desc>
|
||||
<desc id="nj-blog-tl-parse_citm-d">parse() citm_catalog.json: speedup over 3.12.0 at each of 387 commits, ending at 3.8x. Labeled steps, by theme: 4, 1, 4, 4, 2, 4, 1.</desc>
|
||||
<text class="nj-charts-panel" x="8" y="18">parse() citm_catalog.json</text>
|
||||
<line class="nj-charts-grid" x1="44" y1="208" x2="330" y2="208"/>
|
||||
<text class="nj-charts-tick nj-charts-tick--r" x="38" y="212">1×</text>
|
||||
@@ -12,40 +12,40 @@
|
||||
<text class="nj-charts-tick nj-charts-tick--r" x="38" y="70">8×</text>
|
||||
<line class="nj-charts-axis" x1="44" y1="208" x2="44" y2="212"/>
|
||||
<text class="nj-charts-tick" x="44" y="225">3.12.0</text>
|
||||
<line class="nj-charts-axis" x1="116.496" y1="208" x2="116.496" y2="212"/>
|
||||
<text class="nj-charts-tick" x="116.496" y="225">Sep 2026</text>
|
||||
<line class="nj-charts-axis" x1="195.365" y1="208" x2="195.365" y2="212"/>
|
||||
<text class="nj-charts-tick" x="195.365" y="225">Oct</text>
|
||||
<line class="nj-charts-axis" x1="302.117" y1="208" x2="302.117" y2="212"/>
|
||||
<text class="nj-charts-tick" x="302.117" y="225">Nov</text>
|
||||
<polyline class="nj-charts-json" points="44.0,208.0 44.8,208.0 44.8,208.2 45.6,208.2 45.6,207.8 46.4,207.8 46.4,207.5 47.2,207.5 47.2,206.5 48.0,206.5 48.0,208.3 48.8,208.3 48.8,207.3 49.6,207.3 49.6,206.8 50.4,206.8 50.4,207.8 51.2,207.8 51.2,206.8 52.0,206.8 52.0,207.3 52.8,207.3 52.8,207.6 53.6,207.6 53.6,207.8 54.4,207.8 54.4,207.0 55.2,207.0 55.2,207.3 55.9,207.3 55.9,207.2 56.7,207.2 56.7,207.4 57.5,207.4 57.5,207.5 58.3,207.5 58.3,207.4 59.1,207.4 59.1,206.6 59.9,206.6 59.9,207.6 60.7,207.6 60.7,207.6 61.5,207.6 61.5,207.2 62.3,207.2 62.3,207.0 63.1,207.0 63.1,207.6 63.9,207.6 63.9,206.7 64.7,206.7 64.7,207.4 65.5,207.4 65.5,206.8 66.3,206.8 66.3,207.3 67.1,207.3 67.1,207.7 67.9,207.7 67.9,207.9 68.7,207.9 68.7,207.2 69.5,207.2 69.5,206.4 70.3,206.4 70.3,207.6 71.1,207.6 71.1,206.4 71.9,206.4 71.9,208.0 72.7,208.0 72.7,207.4 73.5,207.4 73.5,206.5 74.3,206.5 74.3,207.5 75.1,207.5 75.1,207.2 75.9,207.2 75.9,206.9 76.7,206.9 76.7,207.6 77.5,207.6 77.5,207.6 78.3,207.6 78.3,207.0 79.1,207.0 79.1,206.9 79.8,206.9 79.8,208.0 80.6,208.0 80.6,207.6 81.4,207.6 81.4,206.6 82.2,206.6 82.2,206.8 83.0,206.8 83.0,207.3 83.8,207.3 83.8,206.9 84.6,206.9 84.6,207.6 85.4,207.6 85.4,207.1 86.2,207.1 86.2,207.6 87.0,207.6 87.0,207.9 87.8,207.9 87.8,178.2 88.6,178.2 88.6,177.5 89.4,177.5 89.4,177.7 90.2,177.7 90.2,177.6 91.0,177.6 91.0,177.7 91.8,177.7 91.8,177.1 92.6,177.1 92.6,176.8 93.4,176.8 93.4,177.7 94.2,177.7 94.2,177.6 95.0,177.6 95.0,176.8 95.8,176.8 95.8,177.8 96.6,177.8 96.6,177.0 97.4,177.0 97.4,176.8 98.2,176.8 98.2,178.0 99.0,178.0 99.0,178.1 99.8,178.1 99.8,177.6 100.6,177.6 100.6,177.6 101.4,177.6 101.4,177.4 102.2,177.4 102.2,177.6 103.0,177.6 103.0,177.8 103.7,177.8 103.7,177.5 104.5,177.5 104.5,177.9 105.3,177.9 105.3,177.7 106.1,177.7 106.1,175.9 106.9,175.9 106.9,177.5 107.7,177.5 107.7,177.6 108.5,177.6 108.5,177.6 109.3,177.6 109.3,176.9 110.1,176.9 110.1,177.5 110.9,177.5 110.9,177.4 111.7,177.4 111.7,177.4 112.5,177.4 112.5,176.9 113.3,176.9 113.3,177.9 114.1,177.9 114.1,177.3 114.9,177.3 114.9,176.6 115.7,176.6 115.7,177.4 116.5,177.4 116.5,177.5 117.3,177.5 117.3,177.5 118.1,177.5 118.1,177.4 118.9,177.4 118.9,177.0 119.7,177.0 119.7,177.7 120.5,177.7 120.5,176.2 121.3,176.2 121.3,176.9 122.1,176.9 122.1,177.5 122.9,177.5 122.9,177.8 123.7,177.8 123.7,177.8 124.5,177.8 124.5,177.9 125.3,177.9 125.3,177.3 126.1,177.3 126.1,177.5 126.9,177.5 126.9,177.4 127.6,177.4 127.6,177.1 128.4,177.1 128.4,162.5 129.2,162.5 129.2,162.2 130.0,162.2 130.0,161.8 130.8,161.8 130.8,162.2 131.6,162.2 131.6,161.2 132.4,161.2 132.4,160.7 133.2,160.7 133.2,159.4 134.0,159.4 134.0,160.3 134.8,160.3 134.8,160.4 135.6,160.4 135.6,160.6 136.4,160.6 136.4,159.5 137.2,159.5 137.2,160.4 138.0,160.4 138.0,159.6 138.8,159.6 138.8,160.0 139.6,160.0 139.6,159.9 140.4,159.9 140.4,160.2 141.2,160.2 141.2,159.6 142.0,159.6 142.0,160.8 142.8,160.8 142.8,160.1 143.6,160.1 143.6,159.1 144.4,159.1 144.4,159.7 145.2,159.7 145.2,159.9 146.0,159.9 146.0,160.5 146.8,160.5 146.8,160.2 147.6,160.2 147.6,159.9 148.4,159.9 148.4,160.5 149.2,160.5 149.2,160.5 150.0,160.5 150.0,160.6 150.8,160.6 150.8,159.7 151.5,159.7 151.5,159.5 152.3,159.5 152.3,160.0 153.1,160.0 153.1,160.2 153.9,160.2 153.9,160.0 154.7,160.0 154.7,160.6 155.5,160.6 155.5,159.9 156.3,159.9 156.3,160.2 157.1,160.2 157.1,160.1 157.9,160.1 157.9,160.8 158.7,160.8 158.7,159.2 159.5,159.2 159.5,159.6 160.3,159.6 160.3,159.2 161.1,159.2 161.1,160.0 161.9,160.0 161.9,159.4 162.7,159.4 162.7,159.6 163.5,159.6 163.5,159.5 164.3,159.5 164.3,160.1 165.1,160.1 165.1,159.0 165.9,159.0 165.9,159.4 166.7,159.4 166.7,160.2 167.5,160.2 167.5,161.4 168.3,161.4 168.3,161.7 169.1,161.7 169.1,161.6 169.9,161.6 169.9,160.3 170.7,160.3 170.7,161.1 171.5,161.1 171.5,161.2 172.3,161.2 172.3,161.7 173.1,161.7 173.1,161.2 173.9,161.2 173.9,160.4 174.7,160.4 174.7,161.6 175.4,161.6 175.4,160.6 176.2,160.6 176.2,161.4 177.0,161.4 177.0,161.3 177.8,161.3 177.8,161.3 178.6,161.3 178.6,161.7 179.4,161.7 179.4,161.2 180.2,161.2 180.2,160.1 181.0,160.1 181.0,160.9 181.8,160.9 181.8,161.5 182.6,161.5 182.6,160.6 183.4,160.6 183.4,161.9 184.2,161.9 184.2,161.4 185.0,161.4 185.0,160.1 185.8,160.1 185.8,160.6 186.6,160.6 186.6,162.0 187.4,162.0 187.4,161.5 188.2,161.5 188.2,162.0 189.0,162.0 189.0,161.3 189.8,161.3 189.8,162.3 190.6,162.3 190.6,162.1 191.4,162.1 191.4,160.8 192.2,160.8 192.2,161.5 193.0,161.5 193.0,161.4 193.8,161.4 193.8,162.2 194.6,162.2 194.6,161.4 195.4,161.4 195.4,161.4 196.2,161.4 196.2,161.8 197.0,161.8 197.0,160.7 197.8,160.7 197.8,160.5 198.6,160.5 198.6,160.5 199.3,160.5 199.3,159.3 200.1,159.3 200.1,159.4 200.9,159.4 200.9,160.4 201.7,160.4 201.7,160.1 202.5,160.1 202.5,160.4 203.3,160.4 203.3,160.4 204.1,160.4 204.1,160.8 204.9,160.8 204.9,159.8 205.7,159.8 205.7,159.4 206.5,159.4 206.5,160.5 207.3,160.5 207.3,160.1 208.1,160.1 208.1,160.7 208.9,160.7 208.9,160.6 209.7,160.6 209.7,159.5 210.5,159.5 210.5,161.1 211.3,161.1 211.3,161.3 212.1,161.3 212.1,161.0 212.9,161.0 212.9,160.8Line truncated
|
||||
<circle class="nj-charts-json-dot" cx="87.8" cy="178.2" r="3.5"><title>#5234: 1.55×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="87.8" y1="54.0" x2="87.8" y2="173.2"/>
|
||||
<circle class="nj-theme-dot" cx="87.8" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="87.8" y="50.0" text-anchor="middle">4</text>
|
||||
<circle class="nj-charts-json-dot" cx="128.4" cy="162.5" r="3.5"><title>#5283: 1.95×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="128.4" y1="54.0" x2="128.4" y2="157.5"/>
|
||||
<circle class="nj-theme-dot" cx="128.4" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="128.4" y="50.0" text-anchor="middle">1</text>
|
||||
<circle class="nj-charts-json-dot" cx="219.3" cy="155.4" r="3.5"><title>#5592: 2.2×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="219.3" y1="54.0" x2="219.3" y2="150.4"/>
|
||||
<circle class="nj-theme-dot" cx="219.3" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="219.3" y="50.0" text-anchor="middle">4</text>
|
||||
<circle class="nj-charts-json-dot" cx="239.2" cy="147.1" r="3.5"><title>#5809: 2.4×</title></circle>
|
||||
<circle class="nj-charts-json-dot" cx="240.0" cy="138.2" r="3.5"><title>#5810: 2.8×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="240.0" y1="36.0" x2="240.0" y2="133.2"/>
|
||||
<circle class="nj-theme-dot" cx="231.0" cy="28.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="231.0" y="32.0" text-anchor="middle">4</text>
|
||||
<circle class="nj-theme-dot" cx="249.0" cy="28.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="249.0" y="32.0" text-anchor="middle">2</text>
|
||||
<circle class="nj-charts-json-dot" cx="280.6" cy="125.7" r="3.5"><title>#5882: 3.3×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="280.6" y1="54.0" x2="280.6" y2="120.7"/>
|
||||
<circle class="nj-theme-dot" cx="280.6" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="280.6" y="50.0" text-anchor="middle">4</text>
|
||||
<circle class="nj-charts-json-dot" cx="330.0" cy="116.6" r="3.5"><title>#6031: 3.8×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="330.0" y1="54.0" x2="330.0" y2="111.6"/>
|
||||
<circle class="nj-theme-dot" cx="322.5" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="322.5" y="50.0" text-anchor="middle">1</text>
|
||||
<line class="nj-charts-axis" x1="111.425" y1="208" x2="111.425" y2="212"/>
|
||||
<text class="nj-charts-tick" x="111.425" y="225">Sep 2026</text>
|
||||
<line class="nj-charts-axis" x1="184.777" y1="208" x2="184.777" y2="212"/>
|
||||
<text class="nj-charts-tick" x="184.777" y="225">Oct</text>
|
||||
<line class="nj-charts-axis" x1="284.062" y1="208" x2="284.062" y2="212"/>
|
||||
<text class="nj-charts-tick" x="284.062" y="225">Nov</text>
|
||||
<polyline class="nj-charts-json" points="44.0,208.0 44.7,208.0 44.7,208.2 45.5,208.2 45.5,207.8 46.2,207.8 46.2,207.5 47.0,207.5 47.0,206.5 47.7,206.5 47.7,208.3 48.4,208.3 48.4,207.3 49.2,207.3 49.2,206.8 49.9,206.8 49.9,207.8 50.7,207.8 50.7,206.8 51.4,206.8 51.4,207.3 52.2,207.3 52.2,207.6 52.9,207.6 52.9,207.8 53.6,207.8 53.6,207.0 54.4,207.0 54.4,207.3 55.1,207.3 55.1,207.2 55.9,207.2 55.9,207.4 56.6,207.4 56.6,207.5 57.3,207.5 57.3,207.4 58.1,207.4 58.1,206.6 58.8,206.6 58.8,207.6 59.6,207.6 59.6,207.6 60.3,207.6 60.3,207.2 61.0,207.2 61.0,207.0 61.8,207.0 61.8,207.6 62.5,207.6 62.5,206.7 63.3,206.7 63.3,207.4 64.0,207.4 64.0,206.8 64.7,206.8 64.7,207.3 65.5,207.3 65.5,207.7 66.2,207.7 66.2,207.9 67.0,207.9 67.0,207.2 67.7,207.2 67.7,206.4 68.5,206.4 68.5,207.6 69.2,207.6 69.2,206.4 69.9,206.4 69.9,208.0 70.7,208.0 70.7,207.4 71.4,207.4 71.4,206.5 72.2,206.5 72.2,207.5 72.9,207.5 72.9,207.2 73.6,207.2 73.6,206.9 74.4,206.9 74.4,207.6 75.1,207.6 75.1,207.6 75.9,207.6 75.9,207.0 76.6,207.0 76.6,206.9 77.3,206.9 77.3,208.0 78.1,208.0 78.1,207.6 78.8,207.6 78.8,206.6 79.6,206.6 79.6,206.8 80.3,206.8 80.3,207.3 81.0,207.3 81.0,206.9 81.8,206.9 81.8,207.6 82.5,207.6 82.5,207.1 83.3,207.1 83.3,207.6 84.0,207.6 84.0,207.9 84.8,207.9 84.8,178.2 85.5,178.2 85.5,177.5 86.2,177.5 86.2,177.7 87.0,177.7 87.0,177.6 87.7,177.6 87.7,177.7 88.5,177.7 88.5,177.1 89.2,177.1 89.2,176.8 89.9,176.8 89.9,177.7 90.7,177.7 90.7,177.6 91.4,177.6 91.4,176.8 92.2,176.8 92.2,177.8 92.9,177.8 92.9,177.0 93.6,177.0 93.6,176.8 94.4,176.8 94.4,178.0 95.1,178.0 95.1,178.1 95.9,178.1 95.9,177.6 96.6,177.6 96.6,177.6 97.3,177.6 97.3,177.4 98.1,177.4 98.1,177.6 98.8,177.6 98.8,177.8 99.6,177.8 99.6,177.5 100.3,177.5 100.3,177.9 101.1,177.9 101.1,177.7 101.8,177.7 101.8,175.9 102.5,175.9 102.5,177.5 103.3,177.5 103.3,177.6 104.0,177.6 104.0,177.6 104.8,177.6 104.8,176.9 105.5,176.9 105.5,177.5 106.2,177.5 106.2,177.4 107.0,177.4 107.0,177.4 107.7,177.4 107.7,176.9 108.5,176.9 108.5,177.9 109.2,177.9 109.2,177.3 109.9,177.3 109.9,176.6 110.7,176.6 110.7,177.4 111.4,177.4 111.4,177.5 112.2,177.5 112.2,177.5 112.9,177.5 112.9,177.4 113.6,177.4 113.6,177.0 114.4,177.0 114.4,177.7 115.1,177.7 115.1,176.2 115.9,176.2 115.9,176.9 116.6,176.9 116.6,177.5 117.4,177.5 117.4,177.8 118.1,177.8 118.1,177.8 118.8,177.8 118.8,177.9 119.6,177.9 119.6,177.3 120.3,177.3 120.3,177.5 121.1,177.5 121.1,177.4 121.8,177.4 121.8,177.1 122.5,177.1 122.5,162.5 123.3,162.5 123.3,162.2 124.0,162.2 124.0,161.8 124.8,161.8 124.8,162.2 125.5,162.2 125.5,161.2 126.2,161.2 126.2,160.7 127.0,160.7 127.0,159.4 127.7,159.4 127.7,160.3 128.5,160.3 128.5,160.4 129.2,160.4 129.2,160.6 129.9,160.6 129.9,159.5 130.7,159.5 130.7,160.4 131.4,160.4 131.4,159.6 132.2,159.6 132.2,160.0 132.9,160.0 132.9,159.9 133.7,159.9 133.7,160.2 134.4,160.2 134.4,159.6 135.1,159.6 135.1,160.8 135.9,160.8 135.9,160.1 136.6,160.1 136.6,159.1 137.4,159.1 137.4,159.7 138.1,159.7 138.1,159.9 138.8,159.9 138.8,160.5 139.6,160.5 139.6,160.2 140.3,160.2 140.3,159.9 141.1,159.9 141.1,160.5 141.8,160.5 141.8,160.5 142.5,160.5 142.5,160.6 143.3,160.6 143.3,159.7 144.0,159.7 144.0,159.5 144.8,159.5 144.8,160.0 145.5,160.0 145.5,160.2 146.2,160.2 146.2,160.0 147.0,160.0 147.0,160.6 147.7,160.6 147.7,159.9 148.5,159.9 148.5,160.2 149.2,160.2 149.2,160.1 150.0,160.1 150.0,160.8 150.7,160.8 150.7,159.2 151.4,159.2 151.4,159.6 152.2,159.6 152.2,159.2 152.9,159.2 152.9,160.0 153.7,160.0 153.7,159.4 154.4,159.4 154.4,159.6 155.1,159.6 155.1,159.5 155.9,159.5 155.9,160.1 156.6,160.1 156.6,159.0 157.4,159.0 157.4,159.4 158.1,159.4 158.1,160.2 158.8,160.2 158.8,161.4 159.6,161.4 159.6,161.7 160.3,161.7 160.3,161.6 161.1,161.6 161.1,160.3 161.8,160.3 161.8,161.1 162.5,161.1 162.5,161.2 163.3,161.2 163.3,161.7 164.0,161.7 164.0,161.2 164.8,161.2 164.8,160.4 165.5,160.4 165.5,161.6 166.3,161.6 166.3,160.6 167.0,160.6 167.0,161.4 167.7,161.4 167.7,161.3 168.5,161.3 168.5,161.3 169.2,161.3 169.2,161.7 170.0,161.7 170.0,161.2 170.7,161.2 170.7,160.1 171.4,160.1 171.4,160.9 172.2,160.9 172.2,161.5 172.9,161.5 172.9,160.6 173.7,160.6 173.7,161.9 174.4,161.9 174.4,161.4 175.1,161.4 175.1,160.1 175.9,160.1 175.9,160.6 176.6,160.6 176.6,162.0 177.4,162.0 177.4,161.5 178.1,161.5 178.1,162.0 178.8,162.0 178.8,161.3 179.6,161.3 179.6,162.3 180.3,162.3 180.3,162.1 181.1,162.1 181.1,160.8 181.8,160.8 181.8,161.5 182.6,161.5 182.6,161.4 183.3,161.4 183.3,162.2 184.0,162.2 184.0,161.4 184.8,161.4 184.8,161.4 185.5,161.4 185.5,161.8 186.3,161.8 186.3,160.7 187.0,160.7 187.0,160.5 187.7,160.5 187.7,160.5 188.5,160.5 188.5,159.3 189.2,159.3 189.2,159.4 190.0,159.4 190.0,160.4 190.7,160.4 190.7,160.1 191.4,160.1 191.4,160.4 192.2,160.4 192.2,160.4 192.9,160.4 192.9,160.8 193.7,160.8 193.7,159.8 194.4,159.8 194.4,159.4 195.2,159.4 195.2,160.5 195.9,160.5 195.9,160.1 196.6,160.1 196.6,160.7 197.4,160.7 197.4,160.6 198.1,160.6 198.1,159.5 198.9,159.5 198.9,161.1 199.6,161.1 199.6,161.3 200.3,161.3 200.3,161.0 201.1,161.0 201.1,160.8 201.8,160Line truncated
|
||||
<circle class="nj-charts-json-dot" cx="84.8" cy="178.2" r="3.5"><title>#5234: 1.55×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="84.8" y1="54.0" x2="84.8" y2="173.2"/>
|
||||
<circle class="nj-theme-dot" cx="84.8" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="84.8" y="50.0" text-anchor="middle">4</text>
|
||||
<circle class="nj-charts-json-dot" cx="122.5" cy="162.5" r="3.5"><title>#5283: 1.95×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="122.5" y1="54.0" x2="122.5" y2="157.5"/>
|
||||
<circle class="nj-theme-dot" cx="122.5" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="122.5" y="50.0" text-anchor="middle">1</text>
|
||||
<circle class="nj-charts-json-dot" cx="207.0" cy="155.4" r="3.5"><title>#5592: 2.2×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="207.0" y1="54.0" x2="207.0" y2="150.4"/>
|
||||
<circle class="nj-theme-dot" cx="207.0" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="207.0" y="50.0" text-anchor="middle">4</text>
|
||||
<circle class="nj-charts-json-dot" cx="225.5" cy="147.1" r="3.5"><title>#5809: 2.4×</title></circle>
|
||||
<circle class="nj-charts-json-dot" cx="226.3" cy="138.2" r="3.5"><title>#5810: 2.8×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="226.3" y1="36.0" x2="226.3" y2="133.2"/>
|
||||
<circle class="nj-theme-dot" cx="217.3" cy="28.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="217.3" y="32.0" text-anchor="middle">4</text>
|
||||
<circle class="nj-theme-dot" cx="235.3" cy="28.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="235.3" y="32.0" text-anchor="middle">2</text>
|
||||
<circle class="nj-charts-json-dot" cx="264.1" cy="125.7" r="3.5"><title>#5882: 3.3×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="264.1" y1="54.0" x2="264.1" y2="120.7"/>
|
||||
<circle class="nj-theme-dot" cx="264.1" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="264.1" y="50.0" text-anchor="middle">4</text>
|
||||
<circle class="nj-charts-json-dot" cx="310.7" cy="116.7" r="3.5"><title>#6031: 3.8×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="310.7" y1="54.0" x2="310.7" y2="111.7"/>
|
||||
<circle class="nj-theme-dot" cx="310.7" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="310.7" y="50.0" text-anchor="middle">1</text>
|
||||
<line class="nj-charts-axis" x1="44" y1="208" x2="330" y2="208"/>
|
||||
<text class="nj-charts-note" x="8" y="262">speedup over 3.12.0 (log scale), more is better</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 13 KiB |
@@ -1,6 +1,6 @@
|
||||
<svg class="nj-fig nj-charts nj-charts--timeline" viewBox="0 0 340 270" role="img" aria-labelledby="nj-blog-tl-parse_twitter_ifstream nj-blog-tl-parse_twitter_ifstream-d" xmlns="http://www.w3.org/2000/svg">
|
||||
<title id="nj-blog-tl-parse_twitter_ifstream">parse() twitter.json, std::ifstream: speedup over 3.12.0 by commit</title>
|
||||
<desc id="nj-blog-tl-parse_twitter_ifstream-d">parse() twitter.json, std::ifstream: speedup over 3.12.0 at each of 360 commits, ending at 2.2x. Labeled steps, by theme: 1, 1.</desc>
|
||||
<desc id="nj-blog-tl-parse_twitter_ifstream-d">parse() twitter.json, std::ifstream: speedup over 3.12.0 at each of 387 commits, ending at 2.2x. Labeled steps, by theme: 1, 1.</desc>
|
||||
<text class="nj-charts-panel" x="8" y="18">parse() twitter.json, std::ifstream</text>
|
||||
<line class="nj-charts-grid" x1="44" y1="208" x2="330" y2="208"/>
|
||||
<text class="nj-charts-tick nj-charts-tick--r" x="38" y="212">1×</text>
|
||||
@@ -10,21 +10,21 @@
|
||||
<text class="nj-charts-tick nj-charts-tick--r" x="38" y="70">4×</text>
|
||||
<line class="nj-charts-axis" x1="44" y1="208" x2="44" y2="212"/>
|
||||
<text class="nj-charts-tick" x="44" y="225">3.12.0</text>
|
||||
<line class="nj-charts-axis" x1="116.496" y1="208" x2="116.496" y2="212"/>
|
||||
<text class="nj-charts-tick" x="116.496" y="225">Sep 2026</text>
|
||||
<line class="nj-charts-axis" x1="195.365" y1="208" x2="195.365" y2="212"/>
|
||||
<text class="nj-charts-tick" x="195.365" y="225">Oct</text>
|
||||
<line class="nj-charts-axis" x1="302.117" y1="208" x2="302.117" y2="212"/>
|
||||
<text class="nj-charts-tick" x="302.117" y="225">Nov</text>
|
||||
<polyline class="nj-charts-json" points="44.0,208.0 44.8,208.0 44.8,209.3 45.6,209.3 45.6,206.6 46.4,206.6 46.4,208.3 47.2,208.3 47.2,205.9 48.0,205.9 48.0,209.3 48.8,209.3 48.8,208.3 49.6,208.3 49.6,207.9 50.4,207.9 50.4,209.4 51.2,209.4 51.2,205.8 52.0,205.8 52.0,206.7 52.8,206.7 52.8,209.2 53.6,209.2 53.6,208.1 54.4,208.1 54.4,206.9 55.2,206.9 55.2,207.5 55.9,207.5 55.9,207.5 56.7,207.5 56.7,207.6 57.5,207.6 57.5,206.9 58.3,206.9 58.3,206.9 59.1,206.9 59.1,208.4 59.9,208.4 59.9,208.6 60.7,208.6 60.7,209.1 61.5,209.1 61.5,207.7 62.3,207.7 62.3,207.0 63.1,207.0 63.1,206.7 63.9,206.7 63.9,206.1 64.7,206.1 64.7,207.5 65.5,207.5 65.5,206.4 66.3,206.4 66.3,206.7 67.1,206.7 67.1,206.8 67.9,206.8 67.9,209.3 68.7,209.3 68.7,206.7 69.5,206.7 69.5,206.8 70.3,206.8 70.3,206.6 71.1,206.6 71.1,206.8 71.9,206.8 71.9,209.2 72.7,209.2 72.7,207.6 73.5,207.6 73.5,205.9 74.3,205.9 74.3,209.1 75.1,209.1 75.1,206.6 75.9,206.6 75.9,207.4 76.7,207.4 76.7,207.0 77.5,207.0 77.5,209.1 78.3,209.1 78.3,205.8 79.1,205.8 79.1,206.9 79.8,206.9 79.8,208.0 80.6,208.0 80.6,208.5 81.4,208.5 81.4,206.6 82.2,206.6 82.2,206.0 83.0,206.0 83.0,207.9 83.8,207.9 83.8,206.6 84.6,206.6 84.6,206.5 85.4,206.5 85.4,206.6 86.2,206.6 86.2,207.2 87.0,207.2 87.0,208.0 87.8,208.0 87.8,208.1 88.6,208.1 88.6,206.7 89.4,206.7 89.4,207.8 90.2,207.8 90.2,206.7 91.0,206.7 91.0,208.1 91.8,208.1 91.8,205.9 92.6,205.9 92.6,206.8 93.4,206.8 93.4,208.0 94.2,208.0 94.2,207.3 95.0,207.3 95.0,206.7 95.8,206.7 95.8,209.3 96.6,209.3 96.6,206.5 97.4,206.5 97.4,207.2 98.2,207.2 98.2,208.2 99.0,208.2 99.0,209.3 99.8,209.3 99.8,207.8 100.6,207.8 100.6,206.9 101.4,206.9 101.4,206.7 102.2,206.7 102.2,209.0 103.0,209.0 103.0,208.0 103.7,208.0 103.7,208.1 104.5,208.1 104.5,209.1 105.3,209.1 105.3,208.1 106.1,208.1 106.1,205.6 106.9,205.6 106.9,207.0 107.7,207.0 107.7,206.7 108.5,206.7 108.5,207.9 109.3,207.9 109.3,206.7 110.1,206.7 110.1,206.9 110.9,206.9 110.9,206.8 111.7,206.8 111.7,206.4 112.5,206.4 112.5,207.1 113.3,207.1 113.3,208.6 114.1,208.6 114.1,208.7 114.9,208.7 114.9,206.6 115.7,206.6 115.7,209.3 116.5,209.3 116.5,208.0 117.3,208.0 117.3,206.7 118.1,206.7 118.1,207.7 118.9,207.7 118.9,206.9 119.7,206.9 119.7,208.8 120.5,208.8 120.5,208.7 121.3,208.7 121.3,207.7 122.1,207.7 122.1,208.8 122.9,208.8 122.9,207.8 123.7,207.8 123.7,210.3 124.5,210.3 124.5,208.9 125.3,208.9 125.3,208.9 126.1,208.9 126.1,209.0 126.9,209.0 126.9,208.0 127.6,208.0 127.6,207.7 128.4,207.7 128.4,208.3 129.2,208.3 129.2,207.0 130.0,207.0 130.0,207.2 130.8,207.2 130.8,207.5 131.6,207.5 131.6,208.0 132.4,208.0 132.4,207.6 133.2,207.6 133.2,207.9 134.0,207.9 134.0,207.6 134.8,207.6 134.8,208.5 135.6,208.5 135.6,209.2 136.4,209.2 136.4,206.3 137.2,206.3 137.2,208.7 138.0,208.7 138.0,207.6 138.8,207.6 138.8,207.4 139.6,207.4 139.6,207.5 140.4,207.5 140.4,209.0 141.2,209.0 141.2,206.9 142.0,206.9 142.0,209.3 142.8,209.3 142.8,209.9 143.6,209.9 143.6,207.0 144.4,207.0 144.4,207.3 145.2,207.3 145.2,208.1 146.0,208.1 146.0,209.8 146.8,209.8 146.8,208.1 147.6,208.1 147.6,208.1 148.4,208.1 148.4,208.5 149.2,208.5 149.2,208.2 150.0,208.2 150.0,210.4 150.8,210.4 150.8,207.7 151.5,207.7 151.5,207.2 152.3,207.2 152.3,206.7 153.1,206.7 153.1,209.9 153.9,209.9 153.9,206.6 154.7,206.6 154.7,209.9 155.5,209.9 155.5,208.8 156.3,208.8 156.3,208.8 157.1,208.8 157.1,209.5 157.9,209.5 157.9,208.9 158.7,208.9 158.7,206.4 159.5,206.4 159.5,207.2 160.3,207.2 160.3,207.0 161.1,207.0 161.1,207.2 161.9,207.2 161.9,206.6 162.7,206.6 162.7,207.2 163.5,207.2 163.5,208.0 164.3,208.0 164.3,207.6 165.1,207.6 165.1,207.9 165.9,207.9 165.9,207.5 166.7,207.5 166.7,205.6 167.5,205.6 167.5,208.0 168.3,208.0 168.3,209.7 169.1,209.7 169.1,207.9 169.9,207.9 169.9,207.6 170.7,207.6 170.7,208.5 171.5,208.5 171.5,207.9 172.3,207.9 172.3,210.4 173.1,210.4 173.1,206.7 173.9,206.7 173.9,207.7 174.7,207.7 174.7,209.2 175.4,209.2 175.4,206.8 176.2,206.8 176.2,209.3 177.0,209.3 177.0,208.0 177.8,208.0 177.8,208.0 178.6,208.0 178.6,207.9 179.4,207.9 179.4,208.2 180.2,208.2 180.2,207.9 181.0,207.9 181.0,207.0 181.8,207.0 181.8,208.8 182.6,208.8 182.6,208.0 183.4,208.0 183.4,208.0 184.2,208.0 184.2,209.2 185.0,209.2 185.0,206.7 185.8,206.7 185.8,206.7 186.6,206.7 186.6,208.5 187.4,208.5 187.4,208.9 188.2,208.9 188.2,210.1 189.0,210.1 189.0,206.4 189.8,206.4 189.8,209.4 190.6,209.4 190.6,210.1 191.4,210.1 191.4,207.6 192.2,207.6 192.2,209.5 193.0,209.5 193.0,208.7 193.8,208.7 193.8,211.1 194.6,211.1 194.6,210.1 195.4,210.1 195.4,211.7 196.2,211.7 196.2,208.8 197.0,208.8 197.0,209.2 197.8,209.2 197.8,207.7 198.6,207.7 198.6,208.1 199.3,208.1 199.3,206.4 200.1,206.4 200.1,206.7 200.9,206.7 200.9,207.3 201.7,207.3 201.7,207.8 202.5,207.8 202.5,208.7 203.3,208.7 203.3,210.1 204.1,210.1 204.1,210.0 204.9,210.0 204.9,206.9 205.7,206.9 205.7,209.0 206.5,209.0 206.5,208.7 207.3,208.7 207.3,209.1 208.1,209.1 208.1,208.6 208.9,208.6 208.9,208.9 209.7,208.9 209.7,207.3 210.5,207.3 210.5,208.9 211.3,208.9 211.3,209.2 212.1,209.2 212.1,207.3 212.9,207.3 212.9,210.5Line truncated
|
||||
<circle class="nj-charts-json-dot" cx="258.3" cy="138.8" r="3.5"><title>#5828: 1.97×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="258.3" y1="54.0" x2="258.3" y2="133.8"/>
|
||||
<circle class="nj-theme-dot" cx="258.3" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="258.3" y="50.0" text-anchor="middle">1</text>
|
||||
<circle class="nj-charts-json-dot" cx="275.0" cy="127.0" r="3.5"><title>#5884: 2.2×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="275.0" y1="36.0" x2="275.0" y2="122.0"/>
|
||||
<circle class="nj-theme-dot" cx="275.0" cy="28.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="275.0" y="32.0" text-anchor="middle">1</text>
|
||||
<line class="nj-charts-axis" x1="111.425" y1="208" x2="111.425" y2="212"/>
|
||||
<text class="nj-charts-tick" x="111.425" y="225">Sep 2026</text>
|
||||
<line class="nj-charts-axis" x1="184.777" y1="208" x2="184.777" y2="212"/>
|
||||
<text class="nj-charts-tick" x="184.777" y="225">Oct</text>
|
||||
<line class="nj-charts-axis" x1="284.062" y1="208" x2="284.062" y2="212"/>
|
||||
<text class="nj-charts-tick" x="284.062" y="225">Nov</text>
|
||||
<polyline class="nj-charts-json" points="44.0,208.0 44.7,208.0 44.7,209.3 45.5,209.3 45.5,206.6 46.2,206.6 46.2,208.3 47.0,208.3 47.0,205.9 47.7,205.9 47.7,209.3 48.4,209.3 48.4,208.3 49.2,208.3 49.2,207.9 49.9,207.9 49.9,209.4 50.7,209.4 50.7,205.8 51.4,205.8 51.4,206.7 52.2,206.7 52.2,209.2 52.9,209.2 52.9,208.1 53.6,208.1 53.6,206.9 54.4,206.9 54.4,207.5 55.1,207.5 55.1,207.5 55.9,207.5 55.9,207.6 56.6,207.6 56.6,206.9 57.3,206.9 57.3,206.9 58.1,206.9 58.1,208.4 58.8,208.4 58.8,208.6 59.6,208.6 59.6,209.1 60.3,209.1 60.3,207.7 61.0,207.7 61.0,207.0 61.8,207.0 61.8,206.7 62.5,206.7 62.5,206.1 63.3,206.1 63.3,207.5 64.0,207.5 64.0,206.4 64.7,206.4 64.7,206.7 65.5,206.7 65.5,206.8 66.2,206.8 66.2,209.3 67.0,209.3 67.0,206.7 67.7,206.7 67.7,206.8 68.5,206.8 68.5,206.6 69.2,206.6 69.2,206.8 69.9,206.8 69.9,209.2 70.7,209.2 70.7,207.6 71.4,207.6 71.4,205.9 72.2,205.9 72.2,209.1 72.9,209.1 72.9,206.6 73.6,206.6 73.6,207.4 74.4,207.4 74.4,207.0 75.1,207.0 75.1,209.1 75.9,209.1 75.9,205.8 76.6,205.8 76.6,206.9 77.3,206.9 77.3,208.0 78.1,208.0 78.1,208.5 78.8,208.5 78.8,206.6 79.6,206.6 79.6,206.0 80.3,206.0 80.3,207.9 81.0,207.9 81.0,206.6 81.8,206.6 81.8,206.5 82.5,206.5 82.5,206.6 83.3,206.6 83.3,207.2 84.0,207.2 84.0,208.0 84.8,208.0 84.8,208.1 85.5,208.1 85.5,206.7 86.2,206.7 86.2,207.8 87.0,207.8 87.0,206.7 87.7,206.7 87.7,208.1 88.5,208.1 88.5,205.9 89.2,205.9 89.2,206.8 89.9,206.8 89.9,208.0 90.7,208.0 90.7,207.3 91.4,207.3 91.4,206.7 92.2,206.7 92.2,209.3 92.9,209.3 92.9,206.5 93.6,206.5 93.6,207.2 94.4,207.2 94.4,208.2 95.1,208.2 95.1,209.3 95.9,209.3 95.9,207.8 96.6,207.8 96.6,206.9 97.3,206.9 97.3,206.7 98.1,206.7 98.1,209.0 98.8,209.0 98.8,208.0 99.6,208.0 99.6,208.1 100.3,208.1 100.3,209.1 101.1,209.1 101.1,208.1 101.8,208.1 101.8,205.6 102.5,205.6 102.5,207.0 103.3,207.0 103.3,206.7 104.0,206.7 104.0,207.9 104.8,207.9 104.8,206.7 105.5,206.7 105.5,206.9 106.2,206.9 106.2,206.8 107.0,206.8 107.0,206.4 107.7,206.4 107.7,207.1 108.5,207.1 108.5,208.6 109.2,208.6 109.2,208.7 109.9,208.7 109.9,206.6 110.7,206.6 110.7,209.3 111.4,209.3 111.4,208.0 112.2,208.0 112.2,206.7 112.9,206.7 112.9,207.7 113.6,207.7 113.6,206.9 114.4,206.9 114.4,208.8 115.1,208.8 115.1,208.7 115.9,208.7 115.9,207.7 116.6,207.7 116.6,208.8 117.4,208.8 117.4,207.8 118.1,207.8 118.1,210.3 118.8,210.3 118.8,208.9 119.6,208.9 119.6,208.9 120.3,208.9 120.3,209.0 121.1,209.0 121.1,208.0 121.8,208.0 121.8,207.7 122.5,207.7 122.5,208.3 123.3,208.3 123.3,207.0 124.0,207.0 124.0,207.2 124.8,207.2 124.8,207.5 125.5,207.5 125.5,208.0 126.2,208.0 126.2,207.6 127.0,207.6 127.0,207.9 127.7,207.9 127.7,207.6 128.5,207.6 128.5,208.5 129.2,208.5 129.2,209.2 129.9,209.2 129.9,206.3 130.7,206.3 130.7,208.7 131.4,208.7 131.4,207.6 132.2,207.6 132.2,207.4 132.9,207.4 132.9,207.5 133.7,207.5 133.7,209.0 134.4,209.0 134.4,206.9 135.1,206.9 135.1,209.3 135.9,209.3 135.9,209.9 136.6,209.9 136.6,207.0 137.4,207.0 137.4,207.3 138.1,207.3 138.1,208.1 138.8,208.1 138.8,209.8 139.6,209.8 139.6,208.1 140.3,208.1 140.3,208.1 141.1,208.1 141.1,208.5 141.8,208.5 141.8,208.2 142.5,208.2 142.5,210.4 143.3,210.4 143.3,207.7 144.0,207.7 144.0,207.2 144.8,207.2 144.8,206.7 145.5,206.7 145.5,209.9 146.2,209.9 146.2,206.6 147.0,206.6 147.0,209.9 147.7,209.9 147.7,208.8 148.5,208.8 148.5,208.8 149.2,208.8 149.2,209.5 150.0,209.5 150.0,208.9 150.7,208.9 150.7,206.4 151.4,206.4 151.4,207.2 152.2,207.2 152.2,207.0 152.9,207.0 152.9,207.2 153.7,207.2 153.7,206.6 154.4,206.6 154.4,207.2 155.1,207.2 155.1,208.0 155.9,208.0 155.9,207.6 156.6,207.6 156.6,207.9 157.4,207.9 157.4,207.5 158.1,207.5 158.1,205.6 158.8,205.6 158.8,208.0 159.6,208.0 159.6,209.7 160.3,209.7 160.3,207.9 161.1,207.9 161.1,207.6 161.8,207.6 161.8,208.5 162.5,208.5 162.5,207.9 163.3,207.9 163.3,210.4 164.0,210.4 164.0,206.7 164.8,206.7 164.8,207.7 165.5,207.7 165.5,209.2 166.3,209.2 166.3,206.8 167.0,206.8 167.0,209.3 167.7,209.3 167.7,208.0 168.5,208.0 168.5,208.0 169.2,208.0 169.2,207.9 170.0,207.9 170.0,208.2 170.7,208.2 170.7,207.9 171.4,207.9 171.4,207.0 172.2,207.0 172.2,208.8 172.9,208.8 172.9,208.0 173.7,208.0 173.7,208.0 174.4,208.0 174.4,209.2 175.1,209.2 175.1,206.7 175.9,206.7 175.9,206.7 176.6,206.7 176.6,208.5 177.4,208.5 177.4,208.9 178.1,208.9 178.1,210.1 178.8,210.1 178.8,206.4 179.6,206.4 179.6,209.4 180.3,209.4 180.3,210.1 181.1,210.1 181.1,207.6 181.8,207.6 181.8,209.5 182.6,209.5 182.6,208.7 183.3,208.7 183.3,211.1 184.0,211.1 184.0,210.1 184.8,210.1 184.8,211.7 185.5,211.7 185.5,208.8 186.3,208.8 186.3,209.2 187.0,209.2 187.0,207.7 187.7,207.7 187.7,208.1 188.5,208.1 188.5,206.4 189.2,206.4 189.2,206.7 190.0,206.7 190.0,207.3 190.7,207.3 190.7,207.8 191.4,207.8 191.4,208.7 192.2,208.7 192.2,210.1 192.9,210.1 192.9,210.0 193.7,210.0 193.7,206.9 194.4,206.9 194.4,209.0 195.2,209.0 195.2,208.7 195.9,208.7 195.9,209.1 196.6,209.1 196.6,208.6 197.4,208.6 197.4,208.9 198.1,208.9 198.1,207.3 198.9,207.3 198.9,208.9 199.6,208.9 199.6,209.2 200.3,209.2 200.3,207.3 201.1,207.3 201.1,210.5 201.8,210Line truncated
|
||||
<circle class="nj-charts-json-dot" cx="243.3" cy="138.8" r="3.5"><title>#5828: 1.97×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="243.3" y1="54.0" x2="243.3" y2="133.8"/>
|
||||
<circle class="nj-theme-dot" cx="243.3" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="243.3" y="50.0" text-anchor="middle">1</text>
|
||||
<circle class="nj-charts-json-dot" cx="258.9" cy="127.0" r="3.5"><title>#5884: 2.2×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="258.9" y1="36.0" x2="258.9" y2="122.0"/>
|
||||
<circle class="nj-theme-dot" cx="258.9" cy="28.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="258.9" y="32.0" text-anchor="middle">1</text>
|
||||
<line class="nj-charts-axis" x1="44" y1="208" x2="330" y2="208"/>
|
||||
<text class="nj-charts-note" x="8" y="262">speedup over 3.12.0 (log scale), more is better</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
@@ -1,6 +1,6 @@
|
||||
<svg class="nj-fig nj-charts nj-charts--timeline" viewBox="0 0 340 270" role="img" aria-labelledby="nj-blog-tl-to_cbor_twitter nj-blog-tl-to_cbor_twitter-d" xmlns="http://www.w3.org/2000/svg">
|
||||
<title id="nj-blog-tl-to_cbor_twitter">to_cbor() twitter: speedup over 3.12.0 by commit</title>
|
||||
<desc id="nj-blog-tl-to_cbor_twitter-d">to_cbor() twitter: speedup over 3.12.0 at each of 360 commits, ending at 5.1x. Labeled steps, by theme: 4, 6, 6.</desc>
|
||||
<desc id="nj-blog-tl-to_cbor_twitter-d">to_cbor() twitter: speedup over 3.12.0 at each of 387 commits, ending at 5.0x. Labeled steps, by theme: 4, 6, 6.</desc>
|
||||
<text class="nj-charts-panel" x="8" y="18">to_cbor() twitter</text>
|
||||
<line class="nj-charts-grid" x1="44" y1="208" x2="330" y2="208"/>
|
||||
<text class="nj-charts-tick nj-charts-tick--r" x="38" y="212">1×</text>
|
||||
@@ -12,25 +12,25 @@
|
||||
<text class="nj-charts-tick nj-charts-tick--r" x="38" y="70">8×</text>
|
||||
<line class="nj-charts-axis" x1="44" y1="208" x2="44" y2="212"/>
|
||||
<text class="nj-charts-tick" x="44" y="225">3.12.0</text>
|
||||
<line class="nj-charts-axis" x1="116.496" y1="208" x2="116.496" y2="212"/>
|
||||
<text class="nj-charts-tick" x="116.496" y="225">Sep 2026</text>
|
||||
<line class="nj-charts-axis" x1="195.365" y1="208" x2="195.365" y2="212"/>
|
||||
<text class="nj-charts-tick" x="195.365" y="225">Oct</text>
|
||||
<line class="nj-charts-axis" x1="302.117" y1="208" x2="302.117" y2="212"/>
|
||||
<text class="nj-charts-tick" x="302.117" y="225">Nov</text>
|
||||
<polyline class="nj-charts-json" points="44.0,208.0 44.8,208.0 44.8,208.0 45.6,208.0 45.6,204.9 46.4,204.9 46.4,205.2 47.2,205.2 47.2,204.7 48.0,204.7 48.0,205.2 48.8,205.2 48.8,205.0 49.6,205.0 49.6,204.9 50.4,204.9 50.4,205.0 51.2,205.0 51.2,205.0 52.0,205.0 52.0,205.1 52.8,205.1 52.8,205.4 53.6,205.4 53.6,205.0 54.4,205.0 54.4,205.2 55.2,205.2 55.2,211.6 55.9,211.6 55.9,206.8 56.7,206.8 56.7,204.2 57.5,204.2 57.5,207.6 58.3,207.6 58.3,204.1 59.1,204.1 59.1,203.8 59.9,203.8 59.9,204.2 60.7,204.2 60.7,205.1 61.5,205.1 61.5,204.4 62.3,204.4 62.3,204.3 63.1,204.3 63.1,204.0 63.9,204.0 63.9,202.7 64.7,202.7 64.7,204.2 65.5,204.2 65.5,204.2 66.3,204.2 66.3,204.2 67.1,204.2 67.1,204.4 67.9,204.4 67.9,206.2 68.7,206.2 68.7,204.3 69.5,204.3 69.5,204.1 70.3,204.1 70.3,204.3 71.1,204.3 71.1,204.3 71.9,204.3 71.9,204.3 72.7,204.3 72.7,204.3 73.5,204.3 73.5,204.4 74.3,204.4 74.3,204.8 75.1,204.8 75.1,208.4 75.9,208.4 75.9,203.5 76.7,203.5 76.7,206.2 77.5,206.2 77.5,204.4 78.3,204.4 78.3,203.2 79.1,203.2 79.1,204.1 79.8,204.1 79.8,204.2 80.6,204.2 80.6,203.7 81.4,203.7 81.4,204.2 82.2,204.2 82.2,203.2 83.0,203.2 83.0,204.2 83.8,204.2 83.8,204.4 84.6,204.4 84.6,203.8 85.4,203.8 85.4,204.4 86.2,204.4 86.2,204.7 87.0,204.7 87.0,204.6 87.8,204.6 87.8,208.7 88.6,208.7 88.6,205.2 89.4,205.2 89.4,205.5 90.2,205.5 90.2,205.2 91.0,205.2 91.0,205.3 91.8,205.3 91.8,206.8 92.6,206.8 92.6,204.6 93.4,204.6 93.4,205.5 94.2,205.5 94.2,205.1 95.0,205.1 95.0,204.7 95.8,204.7 95.8,205.7 96.6,205.7 96.6,205.0 97.4,205.0 97.4,204.9 98.2,204.9 98.2,206.5 99.0,206.5 99.0,205.6 99.8,205.6 99.8,205.0 100.6,205.0 100.6,209.2 101.4,209.2 101.4,205.9 102.2,205.9 102.2,206.5 103.0,206.5 103.0,205.5 103.7,205.5 103.7,205.3 104.5,205.3 104.5,205.3 105.3,205.3 105.3,205.1 106.1,205.1 106.1,204.4 106.9,204.4 106.9,204.6 107.7,204.6 107.7,204.8 108.5,204.8 108.5,204.2 109.3,204.2 109.3,203.8 110.1,203.8 110.1,204.4 110.9,204.4 110.9,202.8 111.7,202.8 111.7,203.5 112.5,203.5 112.5,204.0 113.3,204.0 113.3,204.3 114.1,204.3 114.1,202.9 114.9,202.9 114.9,203.3 115.7,203.3 115.7,204.4 116.5,204.4 116.5,204.5 117.3,204.5 117.3,204.1 118.1,204.1 118.1,208.3 118.9,208.3 118.9,203.8 119.7,203.8 119.7,207.0 120.5,207.0 120.5,205.9 121.3,205.9 121.3,205.4 122.1,205.4 122.1,205.3 122.9,205.3 122.9,205.8 123.7,205.8 123.7,205.4 124.5,205.4 124.5,205.6 125.3,205.6 125.3,206.3 126.1,206.3 126.1,205.5 126.9,205.5 126.9,204.8 127.6,204.8 127.6,204.6 128.4,204.6 128.4,206.1 129.2,206.1 129.2,204.6 130.0,204.6 130.0,204.1 130.8,204.1 130.8,204.3 131.6,204.3 131.6,205.6 132.4,205.6 132.4,203.9 133.2,203.9 133.2,204.0 134.0,204.0 134.0,203.9 134.8,203.9 134.8,204.6 135.6,204.6 135.6,204.1 136.4,204.1 136.4,203.9 137.2,203.9 137.2,204.8 138.0,204.8 138.0,203.2 138.8,203.2 138.8,203.3 139.6,203.3 139.6,204.7 140.4,204.7 140.4,208.3 141.2,208.3 141.2,204.3 142.0,204.3 142.0,207.4 142.8,207.4 142.8,204.4 143.6,204.4 143.6,208.2 144.4,208.2 144.4,205.0 145.2,205.0 145.2,204.9 146.0,204.9 146.0,208.8 146.8,208.8 146.8,207.9 147.6,207.9 147.6,206.2 148.4,206.2 148.4,204.2 149.2,204.2 149.2,204.1 150.0,204.1 150.0,204.2 150.8,204.2 150.8,202.2 151.5,202.2 151.5,205.6 152.3,205.6 152.3,203.0 153.1,203.0 153.1,203.4 153.9,203.4 153.9,202.7 154.7,202.7 154.7,203.6 155.5,203.6 155.5,203.3 156.3,203.3 156.3,203.2 157.1,203.2 157.1,204.9 157.9,204.9 157.9,202.9 158.7,202.9 158.7,202.2 159.5,202.2 159.5,202.5 160.3,202.5 160.3,202.9 161.1,202.9 161.1,202.9 161.9,202.9 161.9,202.3 162.7,202.3 162.7,202.9 163.5,202.9 163.5,203.7 164.3,203.7 164.3,204.1 165.1,204.1 165.1,203.9 165.9,203.9 165.9,203.7 166.7,203.7 166.7,203.3 167.5,203.3 167.5,203.8 168.3,203.8 168.3,205.0 169.1,205.0 169.1,208.0 169.9,208.0 169.9,205.1 170.7,205.1 170.7,206.5 171.5,206.5 171.5,205.4 172.3,205.4 172.3,205.4 173.1,205.4 173.1,207.0 173.9,207.0 173.9,204.9 174.7,204.9 174.7,205.4 175.4,205.4 175.4,203.6 176.2,203.6 176.2,205.7 177.0,205.7 177.0,204.5 177.8,204.5 177.8,205.0 178.6,205.0 178.6,205.2 179.4,205.2 179.4,204.9 180.2,204.9 180.2,204.5 181.0,204.5 181.0,204.9 181.8,204.9 181.8,205.3 182.6,205.3 182.6,203.9 183.4,203.9 183.4,204.8 184.2,204.8 184.2,204.8 185.0,204.8 185.0,203.6 185.8,203.6 185.8,203.4 186.6,203.4 186.6,203.8 187.4,203.8 187.4,205.1 188.2,205.1 188.2,205.5 189.0,205.5 189.0,204.0 189.8,204.0 189.8,204.9 190.6,204.9 190.6,205.0 191.4,205.0 191.4,206.4 192.2,206.4 192.2,205.1 193.0,205.1 193.0,204.5 193.8,204.5 193.8,204.8 194.6,204.8 194.6,205.2 195.4,205.2 195.4,205.0 196.2,205.0 196.2,204.6 197.0,204.6 197.0,203.9 197.8,203.9 197.8,203.5 198.6,203.5 198.6,203.6 199.3,203.6 199.3,204.2 200.1,204.2 200.1,205.9 200.9,205.9 200.9,205.2 201.7,205.2 201.7,204.8 202.5,204.8 202.5,207.3 203.3,207.3 203.3,205.2 204.1,205.2 204.1,208.6 204.9,208.6 204.9,204.3 205.7,204.3 205.7,203.9 206.5,203.9 206.5,203.2 207.3,203.2 207.3,203.9 208.1,203.9 208.1,205.9 208.9,205.9 208.9,204.8 209.7,204.8 209.7,204.7 210.5,204.7 210.5,203.6 211.3,203.6 211.3,203.7 212.1,203.7 212.1,208.2 212.9,208.2 212.9,208.4Line truncated
|
||||
<circle class="nj-charts-json-dot" cx="231.2" cy="153.7" r="3.5"><title>#5328: 2.2×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="231.2" y1="54.0" x2="231.2" y2="148.7"/>
|
||||
<circle class="nj-theme-dot" cx="231.2" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="231.2" y="50.0" text-anchor="middle">4</text>
|
||||
<circle class="nj-charts-json-dot" cx="265.5" cy="123.4" r="3.5"><title>#5824: 3.5×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="265.5" y1="54.0" x2="265.5" y2="118.4"/>
|
||||
<circle class="nj-theme-dot" cx="265.5" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="265.5" y="50.0" text-anchor="middle">6</text>
|
||||
<circle class="nj-charts-json-dot" cx="277.4" cy="96.9" r="3.5"><title>#5885: 5.1×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="277.4" y1="36.0" x2="277.4" y2="91.9"/>
|
||||
<circle class="nj-theme-dot" cx="277.4" cy="28.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="277.4" y="32.0" text-anchor="middle">6</text>
|
||||
<line class="nj-charts-axis" x1="111.425" y1="208" x2="111.425" y2="212"/>
|
||||
<text class="nj-charts-tick" x="111.425" y="225">Sep 2026</text>
|
||||
<line class="nj-charts-axis" x1="184.777" y1="208" x2="184.777" y2="212"/>
|
||||
<text class="nj-charts-tick" x="184.777" y="225">Oct</text>
|
||||
<line class="nj-charts-axis" x1="284.062" y1="208" x2="284.062" y2="212"/>
|
||||
<text class="nj-charts-tick" x="284.062" y="225">Nov</text>
|
||||
<polyline class="nj-charts-json" points="44.0,208.0 44.7,208.0 44.7,208.0 45.5,208.0 45.5,204.9 46.2,204.9 46.2,205.2 47.0,205.2 47.0,204.7 47.7,204.7 47.7,205.2 48.4,205.2 48.4,205.0 49.2,205.0 49.2,204.9 49.9,204.9 49.9,205.0 50.7,205.0 50.7,205.0 51.4,205.0 51.4,205.1 52.2,205.1 52.2,205.4 52.9,205.4 52.9,205.0 53.6,205.0 53.6,205.2 54.4,205.2 54.4,211.6 55.1,211.6 55.1,206.8 55.9,206.8 55.9,204.2 56.6,204.2 56.6,207.6 57.3,207.6 57.3,204.1 58.1,204.1 58.1,203.8 58.8,203.8 58.8,204.2 59.6,204.2 59.6,205.1 60.3,205.1 60.3,204.4 61.0,204.4 61.0,204.3 61.8,204.3 61.8,204.0 62.5,204.0 62.5,202.7 63.3,202.7 63.3,204.2 64.0,204.2 64.0,204.2 64.7,204.2 64.7,204.2 65.5,204.2 65.5,204.4 66.2,204.4 66.2,206.2 67.0,206.2 67.0,204.3 67.7,204.3 67.7,204.1 68.5,204.1 68.5,204.3 69.2,204.3 69.2,204.3 69.9,204.3 69.9,204.3 70.7,204.3 70.7,204.3 71.4,204.3 71.4,204.4 72.2,204.4 72.2,204.8 72.9,204.8 72.9,208.4 73.6,208.4 73.6,203.5 74.4,203.5 74.4,206.2 75.1,206.2 75.1,204.4 75.9,204.4 75.9,203.2 76.6,203.2 76.6,204.1 77.3,204.1 77.3,204.2 78.1,204.2 78.1,203.7 78.8,203.7 78.8,204.2 79.6,204.2 79.6,203.2 80.3,203.2 80.3,204.2 81.0,204.2 81.0,204.4 81.8,204.4 81.8,203.8 82.5,203.8 82.5,204.4 83.3,204.4 83.3,204.7 84.0,204.7 84.0,204.6 84.8,204.6 84.8,208.7 85.5,208.7 85.5,205.2 86.2,205.2 86.2,205.5 87.0,205.5 87.0,205.2 87.7,205.2 87.7,205.3 88.5,205.3 88.5,206.8 89.2,206.8 89.2,204.6 89.9,204.6 89.9,205.5 90.7,205.5 90.7,205.1 91.4,205.1 91.4,204.7 92.2,204.7 92.2,205.7 92.9,205.7 92.9,205.0 93.6,205.0 93.6,204.9 94.4,204.9 94.4,206.5 95.1,206.5 95.1,205.6 95.9,205.6 95.9,205.0 96.6,205.0 96.6,209.2 97.3,209.2 97.3,205.9 98.1,205.9 98.1,206.5 98.8,206.5 98.8,205.5 99.6,205.5 99.6,205.3 100.3,205.3 100.3,205.3 101.1,205.3 101.1,205.1 101.8,205.1 101.8,204.4 102.5,204.4 102.5,204.6 103.3,204.6 103.3,204.8 104.0,204.8 104.0,204.2 104.8,204.2 104.8,203.8 105.5,203.8 105.5,204.4 106.2,204.4 106.2,202.8 107.0,202.8 107.0,203.5 107.7,203.5 107.7,204.0 108.5,204.0 108.5,204.3 109.2,204.3 109.2,202.9 109.9,202.9 109.9,203.3 110.7,203.3 110.7,204.4 111.4,204.4 111.4,204.5 112.2,204.5 112.2,204.1 112.9,204.1 112.9,208.3 113.6,208.3 113.6,203.8 114.4,203.8 114.4,207.0 115.1,207.0 115.1,205.9 115.9,205.9 115.9,205.4 116.6,205.4 116.6,205.3 117.4,205.3 117.4,205.8 118.1,205.8 118.1,205.4 118.8,205.4 118.8,205.6 119.6,205.6 119.6,206.3 120.3,206.3 120.3,205.5 121.1,205.5 121.1,204.8 121.8,204.8 121.8,204.6 122.5,204.6 122.5,206.1 123.3,206.1 123.3,204.6 124.0,204.6 124.0,204.1 124.8,204.1 124.8,204.3 125.5,204.3 125.5,205.6 126.2,205.6 126.2,203.9 127.0,203.9 127.0,204.0 127.7,204.0 127.7,203.9 128.5,203.9 128.5,204.6 129.2,204.6 129.2,204.1 129.9,204.1 129.9,203.9 130.7,203.9 130.7,204.8 131.4,204.8 131.4,203.2 132.2,203.2 132.2,203.3 132.9,203.3 132.9,204.7 133.7,204.7 133.7,208.3 134.4,208.3 134.4,204.3 135.1,204.3 135.1,207.4 135.9,207.4 135.9,204.4 136.6,204.4 136.6,208.2 137.4,208.2 137.4,205.0 138.1,205.0 138.1,204.9 138.8,204.9 138.8,208.8 139.6,208.8 139.6,207.9 140.3,207.9 140.3,206.2 141.1,206.2 141.1,204.2 141.8,204.2 141.8,204.1 142.5,204.1 142.5,204.2 143.3,204.2 143.3,202.2 144.0,202.2 144.0,205.6 144.8,205.6 144.8,203.0 145.5,203.0 145.5,203.4 146.2,203.4 146.2,202.7 147.0,202.7 147.0,203.6 147.7,203.6 147.7,203.3 148.5,203.3 148.5,203.2 149.2,203.2 149.2,204.9 150.0,204.9 150.0,202.9 150.7,202.9 150.7,202.2 151.4,202.2 151.4,202.5 152.2,202.5 152.2,202.9 152.9,202.9 152.9,202.9 153.7,202.9 153.7,202.3 154.4,202.3 154.4,202.9 155.1,202.9 155.1,203.7 155.9,203.7 155.9,204.1 156.6,204.1 156.6,203.9 157.4,203.9 157.4,203.7 158.1,203.7 158.1,203.3 158.8,203.3 158.8,203.8 159.6,203.8 159.6,205.0 160.3,205.0 160.3,208.0 161.1,208.0 161.1,205.1 161.8,205.1 161.8,206.5 162.5,206.5 162.5,205.4 163.3,205.4 163.3,205.4 164.0,205.4 164.0,207.0 164.8,207.0 164.8,204.9 165.5,204.9 165.5,205.4 166.3,205.4 166.3,203.6 167.0,203.6 167.0,205.7 167.7,205.7 167.7,204.5 168.5,204.5 168.5,205.0 169.2,205.0 169.2,205.2 170.0,205.2 170.0,204.9 170.7,204.9 170.7,204.5 171.4,204.5 171.4,204.9 172.2,204.9 172.2,205.3 172.9,205.3 172.9,203.9 173.7,203.9 173.7,204.8 174.4,204.8 174.4,204.8 175.1,204.8 175.1,203.6 175.9,203.6 175.9,203.4 176.6,203.4 176.6,203.8 177.4,203.8 177.4,205.1 178.1,205.1 178.1,205.5 178.8,205.5 178.8,204.0 179.6,204.0 179.6,204.9 180.3,204.9 180.3,205.0 181.1,205.0 181.1,206.4 181.8,206.4 181.8,205.1 182.6,205.1 182.6,204.5 183.3,204.5 183.3,204.8 184.0,204.8 184.0,205.2 184.8,205.2 184.8,205.0 185.5,205.0 185.5,204.6 186.3,204.6 186.3,203.9 187.0,203.9 187.0,203.5 187.7,203.5 187.7,203.6 188.5,203.6 188.5,204.2 189.2,204.2 189.2,205.9 190.0,205.9 190.0,205.2 190.7,205.2 190.7,204.8 191.4,204.8 191.4,207.3 192.2,207.3 192.2,205.2 192.9,205.2 192.9,208.6 193.7,208.6 193.7,204.3 194.4,204.3 194.4,203.9 195.2,203.9 195.2,203.2 195.9,203.2 195.9,203.9 196.6,203.9 196.6,205.9 197.4,205.9 197.4,204.8 198.1,204.8 198.1,204.7 198.9,204.7 198.9,203.6 199.6,203.6 199.6,203.7 200.3,203.7 200.3,208.2 201.1,208.2 201.1,208.4 201.8,208Line truncated
|
||||
<circle class="nj-charts-json-dot" cx="218.1" cy="153.7" r="3.5"><title>#5328: 2.2×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="218.1" y1="54.0" x2="218.1" y2="148.7"/>
|
||||
<circle class="nj-theme-dot" cx="218.1" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="218.1" y="50.0" text-anchor="middle">4</text>
|
||||
<circle class="nj-charts-json-dot" cx="250.0" cy="123.4" r="3.5"><title>#5824: 3.5×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="250.0" y1="54.0" x2="250.0" y2="118.4"/>
|
||||
<circle class="nj-theme-dot" cx="250.0" cy="46.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="250.0" y="50.0" text-anchor="middle">6</text>
|
||||
<circle class="nj-charts-json-dot" cx="261.1" cy="96.9" r="3.5"><title>#5885: 5.1×</title></circle>
|
||||
<line class="nj-charts-grid" stroke-dasharray="2 2" x1="261.1" y1="36.0" x2="261.1" y2="91.9"/>
|
||||
<circle class="nj-theme-dot" cx="261.1" cy="28.0" r="7.5"/>
|
||||
<text class="nj-theme-num" x="261.1" y="32.0" text-anchor="middle">6</text>
|
||||
<line class="nj-charts-axis" x1="44" y1="208" x2="330" y2="208"/>
|
||||
<text class="nj-charts-note" x="8" y="262">speedup over 3.12.0 (log scale), more is better</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 12 KiB |
@@ -1,6 +1,6 @@
|
||||
<svg class="nj-fig nj-charts nj-charts--blog nj-charts--heat" viewBox="0 0 784 510" role="img" aria-labelledby="nj-blog-uc-mac nj-blog-uc-mac-d" xmlns="http://www.w3.org/2000/svg">
|
||||
<title id="nj-blog-uc-mac">Use cases: time of each library relative to the fastest, Apple M1 Max</title>
|
||||
<desc id="nj-blog-uc-mac-d">Table of relative times, libraries by use case. nlohmann/json json_document validate: 1.00; nlohmann/json json_document sum: 1.00; nlohmann/json json_document select: 1.00; nlohmann/json json_document edit: 1.00 (0.85 doing less, N); nlohmann/json json_document minify: 1.00 (0.84 doing less, N); nlohmann/json json_document write: 1.00 (0.69 doing less, N); yyjson validate: 1.41; yyjson sum: 1.14; yyjson select: 1.30; yyjson edit: 1.48; yyjson minify: 1.26 (1.18 doing less, N); yyjson write: 1.23; simdjson validate: 1.52; simdjson sum: 1.21; simdjson select: 1.34 (0.76 doing less, P); simdjson edit: n/a; simdjson minify: 1.73 (0.18 doing less, P); simdjson write: 2.41; sonic-rs (Rust) validate: 1.91; sonic-rs (Rust) sum: 1.54; sonic-rs (Rust) select: 1.85; sonic-rs (Rust) edit: 2.10; sonic-rs (Rust) minify: 1.93; sonic-rs (Rust) write: 2.34; sonic-cpp validate: no fully validating way (2.50 doing less, U); sonic-cpp sum: no fully validating way (1.86 doing less, U); sonic-cpp select: no fully validating way (2.34 doing less, U); sonic-cpp edit: no fully validating way (1.70 doing less, U); sonic-cpp minify: no fully validating way (2.03 doing less, U); sonic-cpp write: 1.61; simd-json (Rust) validate: 2.05; simd-json (Rust) sum: 1.63; simd-json (Rust) select: 2.39; simd-json (Rust) edit: 2.85; simd-json (Rust) minify: 3.40; simd-json (Rust) write: 3.05; nlohmann/json json validate: 1.38; nlohmann/json json sum: 1.34; nlohmann/json json select: 6.09; nlohmann/json json edit: 3.22; nlohmann/json json minify: 4.39; nlohmann/json json write: 2.03; Glaze validate: 2.03; Glaze sum: 3.88; Glaze select: 1.81 (0.81 doing less, P); Glaze edit: 4.44; Glaze minify: 5.23 (1.05 doing less, P); Glaze write: 2.19; Boost.J​SON validate: 2.54; Boost.J​SON sum: 2.02; Boost.J​SON select: 3.31; Boost.J​SON edit: 3.23; Boost.J​SON minify: 3.89; Boost.J​SON write: 3.67; serde_json (Rust) validate: 2.44 (2.21 doing less, U); serde_json (Rust) sum: 2.60; serde_json (Rust) select: 2.41 (2.26 doing less, U); serde_json (Rust) edit: 5.02; serde_json (Rust) minify: 5.85; serde_json (Rust) write: 2.90; RapidJSON validate: 4.67 (3.09 doing less, U); RapidJSON sum: 4.18 (2.89 doing less, U); RapidJSON select: 6.02 (3.93 doing less, U); RapidJSON edit: 4.85 (3.83 doing less, U); RapidJSON minify: 4.85 (3.66 doing less, U N); RapidJSON write: 5.74.</desc>
|
||||
<desc id="nj-blog-uc-mac-d">Table of relative times, libraries by use case. nlohmann/json json_document validate: 1.00; nlohmann/json json_document sum: 1.00; nlohmann/json json_document select: 1.00; nlohmann/json json_document edit: 1.00 (0.85 doing less, N); nlohmann/json json_document minify: 1.00 (0.84 doing less, N); nlohmann/json json_document write: 1.00 (0.69 doing less, N); yyjson validate: 1.42; yyjson sum: 1.15; yyjson select: 1.31; yyjson edit: 1.49; yyjson minify: 1.25 (1.18 doing less, N); yyjson write: 1.23; simdjson validate: 1.55; simdjson sum: 1.20; simdjson select: 1.35 (0.76 doing less, P); simdjson edit: n/a; simdjson minify: 1.72 (0.18 doing less, P); simdjson write: 2.36; sonic-rs (Rust) validate: 1.95; sonic-rs (Rust) sum: 1.56; sonic-rs (Rust) select: 1.87; sonic-rs (Rust) edit: 2.13; sonic-rs (Rust) minify: 1.96; sonic-rs (Rust) write: 2.41; sonic-cpp validate: no fully validating way (2.55 doing less, U); sonic-cpp sum: no fully validating way (1.86 doing less, U); sonic-cpp select: no fully validating way (2.34 doing less, U); sonic-cpp edit: no fully validating way (1.71 doing less, U); sonic-cpp minify: no fully validating way (2.03 doing less, U); sonic-cpp write: 1.60; simd-json (Rust) validate: 2.11; simd-json (Rust) sum: 1.66; simd-json (Rust) select: 2.43; simd-json (Rust) edit: 2.89; simd-json (Rust) minify: 3.44; simd-json (Rust) write: 3.13; nlohmann/json json validate: 1.40; nlohmann/json json sum: 1.35; nlohmann/json json select: 6.15; nlohmann/json json edit: 3.22; nlohmann/json json minify: 4.41; nlohmann/json json write: 2.06; Glaze validate: 2.07; Glaze sum: 3.89; Glaze select: 1.81 (0.83 doing less, P); Glaze edit: 4.45; Glaze minify: 5.22 (1.03 doing less, P); Glaze write: 2.19; Boost.J​SON validate: 2.58; Boost.J​SON sum: 2.01; Boost.J​SON select: 3.33; Boost.J​SON edit: 3.26; Boost.J​SON minify: 3.87; Boost.J​SON write: 3.68; serde_json (Rust) validate: 2.51 (2.27 doing less, U); serde_json (Rust) sum: 2.64; serde_json (Rust) select: 2.45 (2.29 doing less, U); serde_json (Rust) edit: 5.10; serde_json (Rust) minify: 5.91; serde_json (Rust) write: 2.98; RapidJSON validate: 4.77 (3.13 doing less, U); RapidJSON sum: 4.20 (2.87 doing less, U); RapidJSON select: 6.05 (3.96 doing less, U); RapidJSON edit: 4.89 (3.87 doing less, U); RapidJSON minify: 4.84 (3.60 doing less, U N); RapidJSON write: 5.86.</desc>
|
||||
<text class="nj-charts-tick" x="270" y="34">validate</text>
|
||||
<text class="nj-charts-tick" x="362" y="34">sum</text>
|
||||
<text class="nj-charts-tick" x="454" y="34">select</text>
|
||||
@@ -8,89 +8,89 @@
|
||||
<text class="nj-charts-tick" x="638" y="34">minify</text>
|
||||
<text class="nj-charts-tick" x="730" y="34">write</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-name-json" x="216" y="66" text-anchor="end">nlohmann/json json_document</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · validate 1.00× the time of the fastest library (fully validating) way: accept twitter.json: 172 µs citm_catalog.json: 313 µs canada.json: 905 µs jeopardy.json: 20,926 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · validate 1.00× the time of the fastest library (fully validating) way: accept twitter.json: 168 µs citm_catalog.json: 313 µs canada.json: 865 µs jeopardy.json: 20,582 µs">
|
||||
<rect class="nj-heat-0" x="225" y="45" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="66" text-anchor="middle">1.00</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · sum 1.00× the time of the fastest library (fully validating) way: parse twitter.json: 219 µs citm_catalog.json: 493 µs canada.json: 1,803 µs jeopardy.json: 28,898 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · sum 1.00× the time of the fastest library (fully validating) way: parse twitter.json: 219 µs citm_catalog.json: 484 µs canada.json: 1,802 µs jeopardy.json: 28,838 µs">
|
||||
<rect class="nj-heat-0" x="317" y="45" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="66" text-anchor="middle">1.00</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · select 1.00× the time of the fastest library (fully validating) way: parse twitter.json: 183 µs citm_catalog.json: 363 µs canada.json: 944 µs jeopardy.json: 24,801 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · select 1.00× the time of the fastest library (fully validating) way: parse twitter.json: 179 µs citm_catalog.json: 362 µs canada.json: 942 µs jeopardy.json: 24,436 µs">
|
||||
<rect class="nj-heat-0" x="409" y="45" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="66" text-anchor="middle">1.00</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · edit 1.00× the time of the fastest library (fully validating) way: editable twitter.json: 288 µs citm_catalog.json: 559 µs canada.json: 2,737 µs jeopardy.json: 58,019 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · edit 1.00× the time of the fastest library (fully validating) way: editable twitter.json: 281 µs citm_catalog.json: 557 µs canada.json: 2,737 µs jeopardy.json: 57,427 µs">
|
||||
<rect class="nj-heat-0" x="501" y="45" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="523.5" y="66" text-anchor="middle">1.00</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · edit, checking less 0.85× the time of the fastest fully validating library way: editable (source numbers) twitter.json: 281 µs (validates fully) citm_catalog.json: 557 µs (validates fully) canada.json: 1,504 µs (validates fully) jeopardy.json: 57,885 µs (validates fully) copies each number's text instead of formatting it (number_format::source)">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · edit, checking less 0.85× the time of the fastest fully validating library twitter.json: 280 µs · editable (source numbers) (validates fully) citm_catalog.json: 557 µs · editable (validates fully) canada.json: 1,446 µs · editable (source numbers) (validates fully) jeopardy.json: 57,348 µs · editable (source numbers) (validates fully) copies each number's text instead of formatting it (number_format::source)">
|
||||
<rect class="nj-heat-0" x="547" y="45" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="568.5" y="60" text-anchor="middle">0.85</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="568.5" y="73" text-anchor="middle">N</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · minify 1.00× the time of the fastest library (fully validating) way: parse + dump twitter.json: 261 µs citm_catalog.json: 496 µs canada.json: 2,570 µs jeopardy.json: 37,624 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · minify 1.00× the time of the fastest library (fully validating) way: parse + dump twitter.json: 256 µs citm_catalog.json: 495 µs canada.json: 2,570 µs jeopardy.json: 37,436 µs">
|
||||
<rect class="nj-heat-0" x="593" y="45" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="615.5" y="66" text-anchor="middle">1.00</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · minify, checking less 0.84× the time of the fastest fully validating library twitter.json: 252 µs · parse + dump (source numbers) (validates fully) citm_catalog.json: 494 µs · parse + dump (source numbers) (validates fully) canada.json: 1,343 µs · parse + dump (source numbers) (validates fully) jeopardy.json: 37,624 µs · parse + dump (validates fully) copies each number's text instead of formatting it (number_format::source)">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · minify, checking less 0.84× the time of the fastest fully validating library way: parse + dump (source numbers) twitter.json: 250 µs (validates fully) citm_catalog.json: 494 µs (validates fully) canada.json: 1,341 µs (validates fully) jeopardy.json: 37,239 µs (validates fully) copies each number's text instead of formatting it (number_format::source)">
|
||||
<rect class="nj-heat-0" x="639" y="45" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="60" text-anchor="middle">0.84</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="73" text-anchor="middle">N</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · write 1.00× the time of the fastest library (fully validating) way: dump twitter.json: 76.2 µs citm_catalog.json: 139 µs canada.json: 1,625 µs jeopardy.json: 14,861 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · write 1.00× the time of the fastest library (fully validating) way: dump twitter.json: 75.2 µs citm_catalog.json: 136 µs canada.json: 1,626 µs jeopardy.json: 14,602 µs">
|
||||
<rect class="nj-heat-0" x="685" y="45" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="707.5" y="66" text-anchor="middle">1.00</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · write, checking less 0.69× the time of the fastest fully validating library way: dump (source numbers) twitter.json: 72.8 µs (validates fully) citm_catalog.json: 136 µs (validates fully) canada.json: 398 µs (validates fully) jeopardy.json: 14,758 µs (validates fully) copies each number's text instead of formatting it (number_format::source)">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · write, checking less 0.69× the time of the fastest fully validating library twitter.json: 72.8 µs · dump (source numbers) (validates fully) citm_catalog.json: 134 µs · dump (source numbers) (validates fully) canada.json: 398 µs · dump (source numbers) (validates fully) jeopardy.json: 14,602 µs · dump (validates fully) copies each number's text instead of formatting it (number_format::source)">
|
||||
<rect class="nj-heat-0" x="731" y="45" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="752.5" y="60" text-anchor="middle">0.69</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="752.5" y="73" text-anchor="middle">N</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="102" text-anchor="end">yyjson</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · validate 1.41× the time of the fastest library (fully validating) twitter.json: 183 µs · insitu (copy) citm_catalog.json: 476 µs · read canada.json: 1,487 µs · insitu (copy) jeopardy.json: 30,922 µs · read (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · validate 1.42× the time of the fastest library (fully validating) twitter.json: 179 µs · read citm_catalog.json: 472 µs · insitu (copy) canada.json: 1,490 µs · insitu (copy) jeopardy.json: 30,452 µs · read (raw numbers) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-1" x="225" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="102" text-anchor="middle">1.41</text>
|
||||
<text class="nj-charts-cell" x="270" y="102" text-anchor="middle">1.42</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · sum 1.14× the time of the fastest library (fully validating) twitter.json: 231 µs · insitu (copy) citm_catalog.json: 571 µs · read canada.json: 1,875 µs · read jeopardy.json: 37,817 µs · insitu (copy) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · sum 1.15× the time of the fastest library (fully validating) way: read twitter.json: 229 µs citm_catalog.json: 573 µs canada.json: 1,939 µs jeopardy.json: 37,474 µs">
|
||||
<rect class="nj-heat-0" x="317" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="102" text-anchor="middle">1.14</text>
|
||||
<text class="nj-charts-cell" x="362" y="102" text-anchor="middle">1.15</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · select 1.30× the time of the fastest library (fully validating) twitter.json: 191 µs · insitu (copy) citm_catalog.json: 480 µs · read canada.json: 1,489 µs · insitu (copy) jeopardy.json: 32,777 µs · read (raw numbers) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · select 1.31× the time of the fastest library (fully validating) twitter.json: 190 µs · insitu (copy) citm_catalog.json: 480 µs · read canada.json: 1,488 µs · insitu (copy) jeopardy.json: 32,288 µs · read (raw numbers) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-1" x="409" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="102" text-anchor="middle">1.30</text>
|
||||
<text class="nj-charts-cell" x="454" y="102" text-anchor="middle">1.31</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · edit 1.48× the time of the fastest library (fully validating) twitter.json: 440 µs · insitu (copy) + mut copy citm_catalog.json: 904 µs · mut copy canada.json: 3,692 µs · mut copy jeopardy.json: 84,466 µs · insitu (copy) + mut copy (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · edit 1.49× the time of the fastest library (fully validating) way: insitu (copy) + mut copy twitter.json: 440 µs citm_catalog.json: 905 µs canada.json: 3,691 µs jeopardy.json: 83,313 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-1" x="501" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="102" text-anchor="middle">1.48</text>
|
||||
<text class="nj-charts-cell" x="546" y="102" text-anchor="middle">1.49</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · minify 1.26× the time of the fastest library (fully validating) twitter.json: 298 µs · insitu (copy) + write citm_catalog.json: 642 µs · read + write canada.json: 3,222 µs · insitu (copy) + write jeopardy.json: 51,001 µs · read + write (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · minify 1.25× the time of the fastest library (fully validating) way: insitu (copy) + write twitter.json: 291 µs citm_catalog.json: 641 µs canada.json: 3,217 µs jeopardy.json: 50,196 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-1" x="593" y="81" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="615.5" y="102" text-anchor="middle">1.26</text>
|
||||
<text class="nj-charts-cell" x="615.5" y="102" text-anchor="middle">1.25</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · minify, checking less 1.18× the time of the fastest fully validating library twitter.json: 298 µs · insitu (copy) + write (validates fully) citm_catalog.json: 642 µs · read + write (validates fully) canada.json: 2,523 µs · read (raw numbers) + write (validates fully) jeopardy.json: 51,001 µs · read + write (validates fully) copies each number's text instead of formatting it (YYJSON_READ_NUMBER_AS_RAW) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · minify, checking less 1.18× the time of the fastest fully validating library twitter.json: 291 µs · insitu (copy) + write (validates fully) citm_catalog.json: 641 µs · insitu (copy) + write (validates fully) canada.json: 2,519 µs · read (raw numbers) + write (validates fully) jeopardy.json: 50,196 µs · insitu (copy) + write (validates fully) copies each number's text instead of formatting it (YYJSON_READ_NUMBER_AS_RAW) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-1" x="639" y="81" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="96" text-anchor="middle">1.18</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="109" text-anchor="middle">N</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · write 1.23× the time of the fastest library (fully validating) way: write twitter.json: 101 µs citm_catalog.json: 167 µs canada.json: 1,719 µs jeopardy.json: 19,937 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · write 1.23× the time of the fastest library (fully validating) way: write twitter.json: 101 µs citm_catalog.json: 164 µs canada.json: 1,716 µs jeopardy.json: 19,722 µs">
|
||||
<rect class="nj-heat-1" x="685" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="102" text-anchor="middle">1.23</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="138" text-anchor="end">simdjson</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · validate 1.52× the time of the fastest library (fully validating) way: D​OM twitter.json: 215 µs citm_catalog.json: 460 µs canada.json: 1,890 µs jeopardy.json: 28,890 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · validate 1.55× the time of the fastest library (fully validating) way: D​OM twitter.json: 212 µs citm_catalog.json: 462 µs canada.json: 1,889 µs jeopardy.json: 28,974 µs">
|
||||
<rect class="nj-heat-2" x="225" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="138" text-anchor="middle">1.52</text>
|
||||
<text class="nj-charts-cell" x="270" y="138" text-anchor="middle">1.55</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · sum 1.21× the time of the fastest library (fully validating) twitter.json: 249 µs · D​OM citm_catalog.json: 572 µs · On-Demand canada.json: 2,398 µs · On-Demand jeopardy.json: 34,994 µs · D​OM">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · sum 1.20× the time of the fastest library (fully validating) twitter.json: 247 µs · D​OM citm_catalog.json: 566 µs · On-Demand canada.json: 2,374 µs · On-Demand jeopardy.json: 34,863 µs · D​OM">
|
||||
<rect class="nj-heat-1" x="317" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="138" text-anchor="middle">1.21</text>
|
||||
<text class="nj-charts-cell" x="362" y="138" text-anchor="middle">1.20</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · select 1.34× the time of the fastest library (fully validating) way: D​OM twitter.json: 192 µs citm_catalog.json: 454 µs canada.json: 1,893 µs jeopardy.json: 30,714 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · select 1.35× the time of the fastest library (fully validating) way: D​OM twitter.json: 193 µs citm_catalog.json: 448 µs canada.json: 1,888 µs jeopardy.json: 30,483 µs">
|
||||
<rect class="nj-heat-1" x="409" y="117" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="431.5" y="138" text-anchor="middle">1.34</text>
|
||||
<text class="nj-charts-cell" x="431.5" y="138" text-anchor="middle">1.35</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · select, checking less 0.76× the time of the fastest fully validating library twitter.json: 128 µs · On-Demand structs citm_catalog.json: 356 µs · On-Demand canada.json: 571 µs · On-Demand jeopardy.json: 19,633 µs · On-Demand reads lazily: On-Demand reads only what you ask for and steps over the rest by matching brackets">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · select, checking less 0.76× the time of the fastest fully validating library twitter.json: 125 µs · On-Demand structs citm_catalog.json: 352 µs · On-Demand canada.json: 568 µs · On-Demand jeopardy.json: 19,629 µs · On-Demand reads lazily: On-Demand reads only what you ask for and steps over the rest by matching brackets">
|
||||
<rect class="nj-heat-0" x="455" y="117" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="476.5" y="132" text-anchor="middle">0.76</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="476.5" y="145" text-anchor="middle">P</text>
|
||||
@@ -99,268 +99,268 @@
|
||||
<rect class="nj-heat-na" x="501" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-tick" x="546" y="138">n/a</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · minify 1.73× the time of the fastest library (fully validating) way: D​OM + to_string twitter.json: 425 µs citm_catalog.json: 850 µs canada.json: 5,094 µs jeopardy.json: 61,202 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · minify 1.72× the time of the fastest library (fully validating) way: D​OM + to_string twitter.json: 413 µs citm_catalog.json: 830 µs canada.json: 5,072 µs jeopardy.json: 60,913 µs">
|
||||
<rect class="nj-heat-2" x="593" y="117" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="615.5" y="138" text-anchor="middle">1.73</text>
|
||||
<text class="nj-charts-cell" x="615.5" y="138" text-anchor="middle">1.72</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · minify, checking less 0.18× the time of the fastest fully validating library way: minify twitter.json: 62.5 µs citm_catalog.json: 168 µs canada.json: 227 µs jeopardy.json: 5,756 µs simdjson::minify() only removes whitespace, without parsing the values">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · minify, checking less 0.18× the time of the fastest fully validating library way: minify twitter.json: 61.3 µs citm_catalog.json: 168 µs canada.json: 228 µs jeopardy.json: 5,674 µs simdjson::minify() only removes whitespace, without parsing the values">
|
||||
<rect class="nj-heat-0" x="639" y="117" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="132" text-anchor="middle">0.18</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="145" text-anchor="middle">P</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · write 2.41× the time of the fastest library (fully validating) way: to_string twitter.json: 201 µs citm_catalog.json: 416 µs canada.json: 3,186 µs jeopardy.json: 32,185 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · write 2.36× the time of the fastest library (fully validating) way: to_string twitter.json: 195 µs citm_catalog.json: 384 µs canada.json: 3,194 µs jeopardy.json: 31,714 µs">
|
||||
<rect class="nj-heat-2" x="685" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="138" text-anchor="middle">2.41</text>
|
||||
<text class="nj-charts-cell" x="730" y="138" text-anchor="middle">2.36</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="174" text-anchor="end">sonic-rs (Rust)</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · validate 1.91× the time of the fastest library (fully validating) way: Value twitter.json: 326 µs citm_catalog.json: 681 µs canada.json: 1,939 µs jeopardy.json: 31,450 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · validate 1.95× the time of the fastest library (fully validating) way: Value twitter.json: 325 µs citm_catalog.json: 686 µs canada.json: 1,935 µs jeopardy.json: 31,234 µs">
|
||||
<rect class="nj-heat-2" x="225" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="174" text-anchor="middle">1.91</text>
|
||||
<text class="nj-charts-cell" x="270" y="174" text-anchor="middle">1.95</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · sum 1.54× the time of the fastest library (fully validating) way: visitor twitter.json: 364 µs citm_catalog.json: 778 µs canada.json: 2,703 µs jeopardy.json: 41,361 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · sum 1.56× the time of the fastest library (fully validating) way: visitor twitter.json: 372 µs citm_catalog.json: 779 µs canada.json: 2,727 µs jeopardy.json: 41,807 µs">
|
||||
<rect class="nj-heat-2" x="317" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="174" text-anchor="middle">1.54</text>
|
||||
<text class="nj-charts-cell" x="362" y="174" text-anchor="middle">1.56</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · select 1.85× the time of the fastest library (fully validating) way: Value twitter.json: 333 µs citm_catalog.json: 691 µs canada.json: 1,936 µs jeopardy.json: 40,660 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · select 1.87× the time of the fastest library (fully validating) way: Value twitter.json: 333 µs citm_catalog.json: 694 µs canada.json: 1,937 µs jeopardy.json: 40,455 µs">
|
||||
<rect class="nj-heat-2" x="409" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="174" text-anchor="middle">1.85</text>
|
||||
<text class="nj-charts-cell" x="454" y="174" text-anchor="middle">1.87</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · edit 2.10× the time of the fastest library (fully validating) way: Value twitter.json: 634 µs citm_catalog.json: 1,257 µs canada.json: 4,396 µs jeopardy.json: 140,936 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · edit 2.13× the time of the fastest library (fully validating) way: Value twitter.json: 636 µs citm_catalog.json: 1,263 µs canada.json: 4,393 µs jeopardy.json: 142,331 µs">
|
||||
<rect class="nj-heat-2" x="501" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="174" text-anchor="middle">2.10</text>
|
||||
<text class="nj-charts-cell" x="546" y="174" text-anchor="middle">2.13</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · minify 1.93× the time of the fastest library (fully validating) way: Value twitter.json: 535 µs citm_catalog.json: 1,134 µs canada.json: 4,377 µs jeopardy.json: 64,832 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · minify 1.96× the time of the fastest library (fully validating) way: Value twitter.json: 550 µs citm_catalog.json: 1,148 µs canada.json: 4,388 µs jeopardy.json: 65,218 µs">
|
||||
<rect class="nj-heat-2" x="593" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="174" text-anchor="middle">1.93</text>
|
||||
<text class="nj-charts-cell" x="638" y="174" text-anchor="middle">1.96</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · write 2.34× the time of the fastest library (fully validating) way: Value twitter.json: 212 µs citm_catalog.json: 446 µs canada.json: 2,419 µs jeopardy.json: 33,366 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · write 2.41× the time of the fastest library (fully validating) way: Value twitter.json: 218 µs citm_catalog.json: 459 µs canada.json: 2,432 µs jeopardy.json: 33,952 µs">
|
||||
<rect class="nj-heat-2" x="685" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="174" text-anchor="middle">2.34</text>
|
||||
<text class="nj-charts-cell" x="730" y="174" text-anchor="middle">2.41</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="210" text-anchor="end">sonic-cpp</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · validate, checking less 2.50× the time of the fastest fully validating library way: Document twitter.json: 382 µs citm_catalog.json: 985 µs canada.json: 2,579 µs jeopardy.json: 40,996 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-2" x="225" y="189" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="204" text-anchor="middle">2.50</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · validate, checking less 2.55× the time of the fastest fully validating library way: Document twitter.json: 380 µs citm_catalog.json: 982 µs canada.json: 2,580 µs jeopardy.json: 41,126 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-3" x="225" y="189" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="204" text-anchor="middle">2.55</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="270" y="217" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · sum, checking less 1.86× the time of the fastest fully validating library way: Document twitter.json: 428 µs citm_catalog.json: 1,098 µs canada.json: 2,975 µs jeopardy.json: 48,487 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · sum, checking less 1.86× the time of the fastest fully validating library way: Document twitter.json: 428 µs citm_catalog.json: 1,085 µs canada.json: 2,959 µs jeopardy.json: 48,328 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-2" x="317" y="189" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="204" text-anchor="middle">1.86</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="362" y="217" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · select, checking less 2.34× the time of the fastest fully validating library way: Document twitter.json: 385 µs citm_catalog.json: 993 µs canada.json: 2,611 µs jeopardy.json: 46,356 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · select, checking less 2.34× the time of the fastest fully validating library way: Document twitter.json: 386 µs citm_catalog.json: 989 µs canada.json: 2,574 µs jeopardy.json: 45,604 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-2" x="409" y="189" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="204" text-anchor="middle">2.34</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="454" y="217" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · edit, checking less 1.70× the time of the fastest fully validating library way: Document twitter.json: 488 µs citm_catalog.json: 1,218 µs canada.json: 5,662 µs jeopardy.json: 63,697 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · edit, checking less 1.71× the time of the fastest fully validating library way: Document twitter.json: 489 µs citm_catalog.json: 1,219 µs canada.json: 5,641 µs jeopardy.json: 63,124 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-2" x="501" y="189" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="204" text-anchor="middle">1.70</text>
|
||||
<text class="nj-charts-cell" x="546" y="204" text-anchor="middle">1.71</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="546" y="217" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · minify, checking less 2.03× the time of the fastest fully validating library way: Document + Serialize twitter.json: 504 µs citm_catalog.json: 1,217 µs canada.json: 5,634 µs jeopardy.json: 61,988 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · minify, checking less 2.03× the time of the fastest fully validating library way: Document + Serialize twitter.json: 497 µs citm_catalog.json: 1,217 µs canada.json: 5,626 µs jeopardy.json: 60,900 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-2" x="593" y="189" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="204" text-anchor="middle">2.03</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="638" y="217" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · write 1.61× the time of the fastest library (fully validating) way: Serialize twitter.json: 114 µs citm_catalog.json: 240 µs canada.json: 3,109 µs jeopardy.json: 20,327 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · write 1.60× the time of the fastest library (fully validating) way: Serialize twitter.json: 112 µs citm_catalog.json: 236 µs canada.json: 3,046 µs jeopardy.json: 19,821 µs">
|
||||
<rect class="nj-heat-2" x="685" y="189" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="210" text-anchor="middle">1.61</text>
|
||||
<text class="nj-charts-cell" x="730" y="210" text-anchor="middle">1.60</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="246" text-anchor="end">simd-json (Rust)</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · validate 2.05× the time of the fastest library (fully validating) way: tape (copy) twitter.json: 289 µs citm_catalog.json: 698 µs canada.json: 2,278 µs jeopardy.json: 38,874 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · validate 2.11× the time of the fastest library (fully validating) way: tape (copy) twitter.json: 290 µs citm_catalog.json: 718 µs canada.json: 2,289 µs jeopardy.json: 38,707 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-2" x="225" y="225" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="246" text-anchor="middle">2.05</text>
|
||||
<text class="nj-charts-cell" x="270" y="246" text-anchor="middle">2.11</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · sum 1.63× the time of the fastest library (fully validating) way: visitor (copy) twitter.json: 354 µs citm_catalog.json: 866 µs canada.json: 2,717 µs jeopardy.json: 47,518 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · sum 1.66× the time of the fastest library (fully validating) way: visitor (copy) twitter.json: 365 µs citm_catalog.json: 868 µs canada.json: 2,729 µs jeopardy.json: 48,056 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-2" x="317" y="225" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="246" text-anchor="middle">1.63</text>
|
||||
<text class="nj-charts-cell" x="362" y="246" text-anchor="middle">1.66</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · select 2.39× the time of the fastest library (fully validating) way: structs (copy) twitter.json: 364 µs citm_catalog.json: 914 µs canada.json: 2,657 µs jeopardy.json: 57,697 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · select 2.43× the time of the fastest library (fully validating) way: structs (copy) twitter.json: 370 µs citm_catalog.json: 913 µs canada.json: 2,655 µs jeopardy.json: 57,851 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-2" x="409" y="225" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="246" text-anchor="middle">2.39</text>
|
||||
<text class="nj-charts-cell" x="454" y="246" text-anchor="middle">2.43</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · edit 2.85× the time of the fastest library (fully validating) way: borrowed (copy) twitter.json: 948 µs citm_catalog.json: 2,102 µs canada.json: 7,654 µs jeopardy.json: 110,693 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · edit 2.89× the time of the fastest library (fully validating) twitter.json: 952 µs · borrowed (copy) citm_catalog.json: 2,112 µs · borrowed (copy) canada.json: 7,687 µs · owned (copy) jeopardy.json: 110,610 µs · borrowed (copy) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-3" x="501" y="225" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="246" text-anchor="middle">2.85</text>
|
||||
<text class="nj-charts-cell" x="546" y="246" text-anchor="middle">2.89</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · minify 3.40× the time of the fastest library (fully validating) way: borrowed (copy) twitter.json: 952 µs citm_catalog.json: 2,111 µs canada.json: 7,658 µs jeopardy.json: 108,130 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · minify 3.44× the time of the fastest library (fully validating) way: borrowed (copy) twitter.json: 969 µs citm_catalog.json: 2,107 µs canada.json: 7,698 µs jeopardy.json: 108,355 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-3" x="593" y="225" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="246" text-anchor="middle">3.40</text>
|
||||
<text class="nj-charts-cell" x="638" y="246" text-anchor="middle">3.44</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · write 3.05× the time of the fastest library (fully validating) way: borrowed twitter.json: 355 µs citm_catalog.json: 478 µs canada.json: 2,728 µs jeopardy.json: 47,412 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · write 3.13× the time of the fastest library (fully validating) way: borrowed twitter.json: 368 µs citm_catalog.json: 490 µs canada.json: 2,744 µs jeopardy.json: 47,185 µs">
|
||||
<rect class="nj-heat-3" x="685" y="225" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="246" text-anchor="middle">3.05</text>
|
||||
<text class="nj-charts-cell" x="730" y="246" text-anchor="middle">3.13</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel nj-charts-name-json" x="216" y="282" text-anchor="end">nlohmann/json json</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · validate 1.38× the time of the fastest library (fully validating) way: accept twitter.json: 234 µs citm_catalog.json: 456 µs canada.json: 1,253 µs jeopardy.json: 27,563 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · validate 1.40× the time of the fastest library (fully validating) way: accept twitter.json: 232 µs citm_catalog.json: 459 µs canada.json: 1,239 µs jeopardy.json: 27,461 µs">
|
||||
<rect class="nj-heat-1" x="225" y="261" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="282" text-anchor="middle">1.38</text>
|
||||
<text class="nj-charts-cell" x="270" y="282" text-anchor="middle">1.40</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · sum 1.34× the time of the fastest library (fully validating) way: sax twitter.json: 303 µs citm_catalog.json: 602 µs canada.json: 2,208 µs jeopardy.json: 44,688 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · sum 1.35× the time of the fastest library (fully validating) way: sax twitter.json: 303 µs citm_catalog.json: 594 µs canada.json: 2,208 µs jeopardy.json: 45,434 µs">
|
||||
<rect class="nj-heat-1" x="317" y="261" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="282" text-anchor="middle">1.34</text>
|
||||
<text class="nj-charts-cell" x="362" y="282" text-anchor="middle">1.35</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · select 6.09× the time of the fastest library (fully validating) way: parse twitter.json: 1,208 µs citm_catalog.json: 2,128 µs canada.json: 5,088 µs jeopardy.json: 163,712 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · select 6.15× the time of the fastest library (fully validating) twitter.json: 1,217 µs · structs (from_json) citm_catalog.json: 2,108 µs · parse canada.json: 5,090 µs · parse jeopardy.json: 163,979 µs · parse">
|
||||
<rect class="nj-heat-4" x="409" y="261" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="282" text-anchor="middle">6.09</text>
|
||||
<text class="nj-charts-cell" x="454" y="282" text-anchor="middle">6.15</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · edit 3.22× the time of the fastest library (fully validating) twitter.json: 1,115 µs · ordered_json citm_catalog.json: 2,065 µs · ordered_json canada.json: 7,348 µs · parse jeopardy.json: 162,216 µs · ordered_json">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · edit 3.22× the time of the fastest library (fully validating) twitter.json: 1,120 µs · ordered_json citm_catalog.json: 2,035 µs · ordered_json canada.json: 7,331 µs · parse jeopardy.json: 158,720 µs · ordered_json">
|
||||
<rect class="nj-heat-3" x="501" y="261" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="282" text-anchor="middle">3.22</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · minify 4.39× the time of the fastest library (fully validating) way: parse + dump twitter.json: 1,446 µs citm_catalog.json: 2,406 µs canada.json: 7,328 µs jeopardy.json: 182,132 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · minify 4.41× the time of the fastest library (fully validating) way: parse + dump twitter.json: 1,443 µs citm_catalog.json: 2,382 µs canada.json: 7,341 µs jeopardy.json: 181,781 µs">
|
||||
<rect class="nj-heat-3" x="593" y="261" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="282" text-anchor="middle">4.39</text>
|
||||
<text class="nj-charts-cell" x="638" y="282" text-anchor="middle">4.41</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · write 2.03× the time of the fastest library (fully validating) way: dump twitter.json: 216 µs citm_catalog.json: 287 µs canada.json: 2,274 µs jeopardy.json: 30,928 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · write 2.06× the time of the fastest library (fully validating) way: dump twitter.json: 215 µs citm_catalog.json: 287 µs canada.json: 2,242 µs jeopardy.json: 31,455 µs">
|
||||
<rect class="nj-heat-2" x="685" y="261" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="282" text-anchor="middle">2.03</text>
|
||||
<text class="nj-charts-cell" x="730" y="282" text-anchor="middle">2.06</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="318" text-anchor="end">Glaze</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · validate 2.03× the time of the fastest library (fully validating) way: validate_json twitter.json: 333 µs citm_catalog.json: 854 µs canada.json: 1,302 µs jeopardy.json: 46,251 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · validate 2.07× the time of the fastest library (fully validating) way: validate_json twitter.json: 331 µs citm_catalog.json: 855 µs canada.json: 1,302 µs jeopardy.json: 46,377 µs">
|
||||
<rect class="nj-heat-2" x="225" y="297" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="318" text-anchor="middle">2.03</text>
|
||||
<text class="nj-charts-cell" x="270" y="318" text-anchor="middle">2.07</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · sum 3.88× the time of the fastest library (fully validating) way: generic (double, strict) twitter.json: 974 µs citm_catalog.json: 2,057 µs canada.json: 6,338 µs jeopardy.json: 100,272 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · sum 3.89× the time of the fastest library (fully validating) way: generic (double, strict) twitter.json: 972 µs citm_catalog.json: 2,054 µs canada.json: 6,342 µs jeopardy.json: 99,827 µs">
|
||||
<rect class="nj-heat-3" x="317" y="297" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="318" text-anchor="middle">3.88</text>
|
||||
<text class="nj-charts-cell" x="362" y="318" text-anchor="middle">3.89</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · select 1.81× the time of the fastest library (fully validating) way: structs (validate_skipped) twitter.json: 314 µs citm_catalog.json: 852 µs canada.json: 1,303 µs jeopardy.json: 47,692 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · select 1.81× the time of the fastest library (fully validating) way: structs (validate_skipped) twitter.json: 312 µs citm_catalog.json: 848 µs canada.json: 1,302 µs jeopardy.json: 46,251 µs">
|
||||
<rect class="nj-heat-2" x="409" y="297" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="431.5" y="318" text-anchor="middle">1.81</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · select, checking less 0.81× the time of the fastest fully validating library way: structs twitter.json: 238 µs citm_catalog.json: 253 µs canada.json: 310 µs jeopardy.json: 36,013 µs reads into structs and steps over fields it doesn't know without checking them (validate_skipped checks them too)">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · select, checking less 0.83× the time of the fastest fully validating library way: structs twitter.json: 238 µs citm_catalog.json: 253 µs canada.json: 310 µs jeopardy.json: 37,390 µs reads into structs and steps over fields it doesn't know without checking them (validate_skipped checks them too)">
|
||||
<rect class="nj-heat-0" x="455" y="297" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="476.5" y="312" text-anchor="middle">0.81</text>
|
||||
<text class="nj-charts-cell" x="476.5" y="312" text-anchor="middle">0.83</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="476.5" y="325" text-anchor="middle">P</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · edit 4.44× the time of the fastest library (fully validating) way: generic (strict) twitter.json: 1,527 µs citm_catalog.json: 3,216 µs canada.json: 11,033 µs jeopardy.json: 183,648 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · edit 4.45× the time of the fastest library (fully validating) way: generic (strict) twitter.json: 1,529 µs citm_catalog.json: 3,236 µs canada.json: 10,925 µs jeopardy.json: 179,055 µs">
|
||||
<rect class="nj-heat-3" x="501" y="297" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="318" text-anchor="middle">4.44</text>
|
||||
<text class="nj-charts-cell" x="546" y="318" text-anchor="middle">4.45</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · minify 5.23× the time of the fastest library (fully validating) way: generic (strict) twitter.json: 1,512 µs citm_catalog.json: 3,245 µs canada.json: 11,112 µs jeopardy.json: 172,173 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · minify 5.22× the time of the fastest library (fully validating) way: generic (strict) twitter.json: 1,510 µs citm_catalog.json: 3,204 µs canada.json: 10,919 µs jeopardy.json: 170,463 µs">
|
||||
<rect class="nj-heat-4" x="593" y="297" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="615.5" y="318" text-anchor="middle">5.23</text>
|
||||
<text class="nj-charts-cell" x="615.5" y="318" text-anchor="middle">5.22</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · minify, checking less 1.05× the time of the fastest fully validating library way: minify_json twitter.json: 284 µs citm_catalog.json: 747 µs canada.json: 1,746 µs jeopardy.json: 40,439 µs minify_json only removes whitespace, without parsing the values">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · minify, checking less 1.03× the time of the fastest fully validating library way: minify_json twitter.json: 279 µs citm_catalog.json: 730 µs canada.json: 1,708 µs jeopardy.json: 39,468 µs minify_json only removes whitespace, without parsing the values">
|
||||
<rect class="nj-heat-0" x="639" y="297" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="312" text-anchor="middle">1.05</text>
|
||||
<text class="nj-charts-cell" x="660.5" y="312" text-anchor="middle">1.03</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="325" text-anchor="middle">P</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · write 2.19× the time of the fastest library (fully validating) twitter.json: 212 µs · generic citm_catalog.json: 476 µs · generic (strict) canada.json: 1,702 µs · generic (strict) jeopardy.json: 34,032 µs · generic">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · write 2.19× the time of the fastest library (fully validating) twitter.json: 210 µs · generic citm_catalog.json: 468 µs · generic canada.json: 1,696 µs · generic (strict) jeopardy.json: 33,414 µs · generic">
|
||||
<rect class="nj-heat-2" x="685" y="297" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="318" text-anchor="middle">2.19</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="354" text-anchor="end">Boost.J​SON</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · validate 2.54× the time of the fastest library (fully validating) way: S​AX (numbers: none) twitter.json: 540 µs citm_catalog.json: 990 µs canada.json: 1,449 µs jeopardy.json: 54,480 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · validate 2.58× the time of the fastest library (fully validating) way: S​AX (numbers: none) twitter.json: 530 µs citm_catalog.json: 989 µs canada.json: 1,449 µs jeopardy.json: 54,540 µs">
|
||||
<rect class="nj-heat-3" x="225" y="333" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="354" text-anchor="middle">2.54</text>
|
||||
<text class="nj-charts-cell" x="270" y="354" text-anchor="middle">2.58</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · sum 2.02× the time of the fastest library (fully validating) way: S​AX twitter.json: 538 µs citm_catalog.json: 1,028 µs canada.json: 3,084 µs jeopardy.json: 54,765 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · sum 2.01× the time of the fastest library (fully validating) way: S​AX twitter.json: 537 µs citm_catalog.json: 1,007 µs canada.json: 3,053 µs jeopardy.json: 54,616 µs">
|
||||
<rect class="nj-heat-2" x="317" y="333" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="354" text-anchor="middle">2.02</text>
|
||||
<text class="nj-charts-cell" x="362" y="354" text-anchor="middle">2.01</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · select 3.31× the time of the fastest library (fully validating) twitter.json: 623 µs · parse_into structs citm_catalog.json: 1,208 µs · parse_into structs canada.json: 3,638 µs · parse jeopardy.json: 67,923 µs · parse_into structs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · select 3.33× the time of the fastest library (fully validating) twitter.json: 620 µs · parse_into structs citm_catalog.json: 1,205 µs · parse_into structs canada.json: 3,632 µs · parse jeopardy.json: 67,371 µs · parse_into structs">
|
||||
<rect class="nj-heat-3" x="409" y="333" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="354" text-anchor="middle">3.31</text>
|
||||
<text class="nj-charts-cell" x="454" y="354" text-anchor="middle">3.33</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · edit 3.23× the time of the fastest library (fully validating) way: parse twitter.json: 1,355 µs citm_catalog.json: 1,997 µs canada.json: 6,522 µs jeopardy.json: 157,849 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · edit 3.26× the time of the fastest library (fully validating) way: parse twitter.json: 1,362 µs citm_catalog.json: 2,002 µs canada.json: 6,523 µs jeopardy.json: 156,766 µs">
|
||||
<rect class="nj-heat-3" x="501" y="333" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="354" text-anchor="middle">3.23</text>
|
||||
<text class="nj-charts-cell" x="546" y="354" text-anchor="middle">3.26</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · minify 3.89× the time of the fastest library (fully validating) way: parse + serialize twitter.json: 1,407 µs citm_catalog.json: 2,003 µs canada.json: 6,555 µs jeopardy.json: 154,865 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · minify 3.87× the time of the fastest library (fully validating) way: parse + serialize twitter.json: 1,382 µs citm_catalog.json: 1,991 µs canada.json: 6,534 µs jeopardy.json: 152,254 µs">
|
||||
<rect class="nj-heat-3" x="593" y="333" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="354" text-anchor="middle">3.89</text>
|
||||
<text class="nj-charts-cell" x="638" y="354" text-anchor="middle">3.87</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · write 3.67× the time of the fastest library (fully validating) way: serialize twitter.json: 499 µs citm_catalog.json: 511 µs canada.json: 2,873 µs jeopardy.json: 63,201 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · write 3.68× the time of the fastest library (fully validating) way: serialize twitter.json: 498 µs citm_catalog.json: 502 µs canada.json: 2,871 µs jeopardy.json: 62,307 µs">
|
||||
<rect class="nj-heat-3" x="685" y="333" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="354" text-anchor="middle">3.67</text>
|
||||
<text class="nj-charts-cell" x="730" y="354" text-anchor="middle">3.68</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="390" text-anchor="end">serde_json (Rust)</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · validate 2.44× the time of the fastest library (fully validating) way: from_utf8 + IgnoredAny twitter.json: 452 µs citm_catalog.json: 1,103 µs canada.json: 1,556 µs jeopardy.json: 46,517 µs">
|
||||
<rect class="nj-heat-2" x="225" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="247.5" y="390" text-anchor="middle">2.44</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · validate 2.51× the time of the fastest library (fully validating) way: from_utf8 + IgnoredAny twitter.json: 461 µs citm_catalog.json: 1,104 µs canada.json: 1,561 µs jeopardy.json: 46,689 µs">
|
||||
<rect class="nj-heat-3" x="225" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="247.5" y="390" text-anchor="middle">2.51</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · validate, checking less 2.21× the time of the fastest fully validating library way: IgnoredAny twitter.json: 354 µs citm_catalog.json: 1,047 µs canada.json: 1,451 µs jeopardy.json: 44,984 µs trusts U​TF-8 in the strings it skips (from_slice); strings it reads are checked">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · validate, checking less 2.27× the time of the fastest fully validating library way: IgnoredAny twitter.json: 357 µs citm_catalog.json: 1,055 µs canada.json: 1,460 µs jeopardy.json: 45,135 µs trusts U​TF-8 in the strings it skips (from_slice); strings it reads are checked">
|
||||
<rect class="nj-heat-2" x="271" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="292.5" y="384" text-anchor="middle">2.21</text>
|
||||
<text class="nj-charts-cell" x="292.5" y="384" text-anchor="middle">2.27</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="292.5" y="397" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · sum 2.60× the time of the fastest library (fully validating) way: visitor twitter.json: 652 µs citm_catalog.json: 1,242 µs canada.json: 4,772 µs jeopardy.json: 66,568 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · sum 2.64× the time of the fastest library (fully validating) way: visitor twitter.json: 661 µs citm_catalog.json: 1,238 µs canada.json: 4,799 µs jeopardy.json: 68,254 µs">
|
||||
<rect class="nj-heat-3" x="317" y="369" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="390" text-anchor="middle">2.60</text>
|
||||
<text class="nj-charts-cell" x="362" y="390" text-anchor="middle">2.64</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · select 2.41× the time of the fastest library (fully validating) way: from_utf8 + structs twitter.json: 480 µs citm_catalog.json: 1,125 µs canada.json: 1,560 µs jeopardy.json: 62,378 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · select 2.45× the time of the fastest library (fully validating) way: from_utf8 + structs twitter.json: 484 µs citm_catalog.json: 1,126 µs canada.json: 1,559 µs jeopardy.json: 63,574 µs">
|
||||
<rect class="nj-heat-2" x="409" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="431.5" y="390" text-anchor="middle">2.41</text>
|
||||
<text class="nj-charts-cell" x="431.5" y="390" text-anchor="middle">2.45</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · select, checking less 2.26× the time of the fastest fully validating library twitter.json: 410 µs · structs citm_catalog.json: 1,084 µs · structs canada.json: 1,455 µs · structs jeopardy.json: 62,378 µs · from_utf8 + structs (validates fully) trusts U​TF-8 in the strings it skips (from_slice); strings it reads are checked">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · select, checking less 2.29× the time of the fastest fully validating library twitter.json: 412 µs · structs citm_catalog.json: 1,086 µs · structs canada.json: 1,454 µs · structs jeopardy.json: 63,574 µs · from_utf8 + structs (validates fully) trusts U​TF-8 in the strings it skips (from_slice); strings it reads are checked">
|
||||
<rect class="nj-heat-2" x="455" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="476.5" y="384" text-anchor="middle">2.26</text>
|
||||
<text class="nj-charts-cell" x="476.5" y="384" text-anchor="middle">2.29</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="476.5" y="397" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · edit 5.02× the time of the fastest library (fully validating) way: Value twitter.json: 2,009 µs citm_catalog.json: 3,316 µs canada.json: 9,666 µs jeopardy.json: 251,931 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · edit 5.10× the time of the fastest library (fully validating) way: Value twitter.json: 2,036 µs citm_catalog.json: 3,323 µs canada.json: 9,645 µs jeopardy.json: 255,608 µs">
|
||||
<rect class="nj-heat-4" x="501" y="369" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="390" text-anchor="middle">5.02</text>
|
||||
<text class="nj-charts-cell" x="546" y="390" text-anchor="middle">5.10</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · minify 5.85× the time of the fastest library (fully validating) way: Value twitter.json: 2,004 µs citm_catalog.json: 3,290 µs canada.json: 9,792 µs jeopardy.json: 227,369 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · minify 5.91× the time of the fastest library (fully validating) way: Value twitter.json: 2,020 µs citm_catalog.json: 3,296 µs canada.json: 9,635 µs jeopardy.json: 232,185 µs">
|
||||
<rect class="nj-heat-4" x="593" y="369" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="390" text-anchor="middle">5.85</text>
|
||||
<text class="nj-charts-cell" x="638" y="390" text-anchor="middle">5.91</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · write 2.90× the time of the fastest library (fully validating) way: Value twitter.json: 322 µs citm_catalog.json: 490 µs canada.json: 2,286 µs jeopardy.json: 49,967 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · write 2.98× the time of the fastest library (fully validating) way: Value twitter.json: 340 µs citm_catalog.json: 497 µs canada.json: 2,257 µs jeopardy.json: 50,311 µs">
|
||||
<rect class="nj-heat-3" x="685" y="369" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="390" text-anchor="middle">2.90</text>
|
||||
<text class="nj-charts-cell" x="730" y="390" text-anchor="middle">2.98</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="426" text-anchor="end">RapidJSON</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · validate 4.67× the time of the fastest library (fully validating) twitter.json: 1,318 µs · insitu (copy) citm_catalog.json: 1,391 µs · S​AX (string stream, default precision) canada.json: 1,971 µs · S​AX (string stream, default precision) jeopardy.json: 133,695 µs · S​AX (string stream, default precision) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · validate 4.77× the time of the fastest library (fully validating) twitter.json: 1,312 µs · insitu (copy) citm_catalog.json: 1,392 µs · S​AX (string stream, default precision) canada.json: 1,976 µs · S​AX (string stream, default precision) jeopardy.json: 134,644 µs · S​AX (string stream, default precision) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-3" x="225" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="247.5" y="426" text-anchor="middle">4.67</text>
|
||||
<text class="nj-charts-cell" x="247.5" y="426" text-anchor="middle">4.77</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · validate, checking less 3.09× the time of the fastest fully validating library twitter.json: 706 µs · insitu (copy) (no encoding check) citm_catalog.json: 1,033 µs · S​AX (string stream, default precision) (no encoding check) canada.json: 1,971 µs · S​AX (string stream, default precision) (validates fully) jeopardy.json: 64,732 µs · insitu (copy) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · validate, checking less 3.13× the time of the fastest fully validating library twitter.json: 690 µs · insitu (copy) (no encoding check) citm_catalog.json: 1,029 µs · S​AX (string stream, default precision) (no encoding check) canada.json: 1,976 µs · S​AX (string stream, default precision) (validates fully) jeopardy.json: 64,302 µs · insitu (copy) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-3" x="271" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="292.5" y="420" text-anchor="middle">3.09</text>
|
||||
<text class="nj-charts-cell" x="292.5" y="420" text-anchor="middle">3.13</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="292.5" y="433" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · sum 4.18× the time of the fastest library (fully validating) twitter.json: 1,332 µs · S​AX citm_catalog.json: 1,472 µs · S​AX (string stream) canada.json: 6,448 µs · S​AX (string stream) jeopardy.json: 136,330 µs · S​AX (string stream)">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · sum 4.20× the time of the fastest library (fully validating) twitter.json: 1,346 µs · S​AX citm_catalog.json: 1,454 µs · S​AX (string stream) canada.json: 6,453 µs · S​AX (string stream) jeopardy.json: 135,579 µs · S​AX (string stream)">
|
||||
<rect class="nj-heat-3" x="317" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="339.5" y="426" text-anchor="middle">4.18</text>
|
||||
<text class="nj-charts-cell" x="339.5" y="426" text-anchor="middle">4.20</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · sum, checking less 2.89× the time of the fastest fully validating library twitter.json: 738 µs · S​AX (string stream) (no encoding check) citm_catalog.json: 1,157 µs · S​AX (string stream) (no encoding check) canada.json: 6,432 µs · S​AX (string stream) (no encoding check) jeopardy.json: 71,646 µs · insitu (copy) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · sum, checking less 2.87× the time of the fastest fully validating library twitter.json: 730 µs · S​AX (string stream) (no encoding check) citm_catalog.json: 1,132 µs · S​AX (string stream) (no encoding check) canada.json: 6,427 µs · S​AX (string stream) (no encoding check) jeopardy.json: 70,706 µs · insitu (copy) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-3" x="363" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="384.5" y="420" text-anchor="middle">2.89</text>
|
||||
<text class="nj-charts-cell" x="384.5" y="420" text-anchor="middle">2.87</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="384.5" y="433" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · select 6.02× the time of the fastest library (fully validating) twitter.json: 1,314 µs · insitu (copy) citm_catalog.json: 1,578 µs · insitu (copy) canada.json: 6,814 µs · Document (string stream) jeopardy.json: 144,649 µs · insitu (copy) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · select 6.05× the time of the fastest library (fully validating) way: insitu (copy) twitter.json: 1,317 µs citm_catalog.json: 1,564 µs canada.json: 6,761 µs jeopardy.json: 143,406 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-4" x="409" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="431.5" y="426" text-anchor="middle">6.02</text>
|
||||
<text class="nj-charts-cell" x="431.5" y="426" text-anchor="middle">6.05</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · select, checking less 3.93× the time of the fastest fully validating library twitter.json: 701 µs · insitu (copy) (no encoding check) citm_catalog.json: 1,166 µs · insitu (copy) (no encoding check) canada.json: 6,745 µs · Document (string stream) (no encoding check) jeopardy.json: 67,617 µs · insitu (copy) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · select, checking less 3.96× the time of the fastest fully validating library twitter.json: 703 µs · insitu (copy) (no encoding check) citm_catalog.json: 1,152 µs · insitu (copy) (no encoding check) canada.json: 6,761 µs · insitu (copy) (validates fully) jeopardy.json: 67,167 µs · insitu (copy) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-3" x="455" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="476.5" y="420" text-anchor="middle">3.93</text>
|
||||
<text class="nj-charts-cell" x="476.5" y="420" text-anchor="middle">3.96</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="476.5" y="433" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · edit 4.85× the time of the fastest library (fully validating) twitter.json: 1,924 µs · Document citm_catalog.json: 2,393 µs · insitu (copy) canada.json: 13,711 µs · Document (string stream) jeopardy.json: 224,328 µs · Document (string stream) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · edit 4.89× the time of the fastest library (fully validating) twitter.json: 1,928 µs · Document citm_catalog.json: 2,385 µs · Document (string stream) canada.json: 13,768 µs · Document (string stream) jeopardy.json: 222,367 µs · Document (string stream)">
|
||||
<rect class="nj-heat-3" x="501" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="523.5" y="426" text-anchor="middle">4.85</text>
|
||||
<text class="nj-charts-cell" x="523.5" y="426" text-anchor="middle">4.89</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · edit, checking less 3.83× the time of the fastest fully validating library twitter.json: 1,356 µs · insitu (copy) (no encoding check) citm_catalog.json: 1,992 µs · insitu (copy) (no encoding check) canada.json: 13,711 µs · Document (string stream) (validates fully) jeopardy.json: 147,902 µs · insitu (copy) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · edit, checking less 3.87× the time of the fastest fully validating library way: insitu (copy) (no encoding check) twitter.json: 1,358 µs citm_catalog.json: 1,993 µs canada.json: 13,737 µs jeopardy.json: 147,900 µs trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-3" x="547" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="568.5" y="420" text-anchor="middle">3.83</text>
|
||||
<text class="nj-charts-cell" x="568.5" y="420" text-anchor="middle">3.87</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="568.5" y="433" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · minify 4.85× the time of the fastest library (fully validating) twitter.json: 1,523 µs · S​AX to Writer citm_catalog.json: 1,803 µs · S​AX to Writer (string stream) canada.json: 14,378 µs · Document + Writer jeopardy.json: 174,958 µs · S​AX to Writer (string stream)">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · minify 4.84× the time of the fastest library (fully validating) twitter.json: 1,501 µs · S​AX to Writer citm_catalog.json: 1,784 µs · S​AX to Writer (string stream) canada.json: 14,332 µs · Document + Writer jeopardy.json: 173,504 µs · S​AX to Writer (string stream)">
|
||||
<rect class="nj-heat-3" x="593" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="615.5" y="426" text-anchor="middle">4.85</text>
|
||||
<text class="nj-charts-cell" x="615.5" y="426" text-anchor="middle">4.84</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · minify, checking less 3.66× the time of the fastest fully validating library twitter.json: 1,044 µs · S​AX to Writer (string stream) (no encoding check) citm_catalog.json: 1,499 µs · S​AX to Writer (string stream) (no encoding check) canada.json: 11,568 µs · S​AX to Writer (raw numbers) (validates fully) jeopardy.json: 123,908 µs · S​AX to Writer (string stream) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) copies each number's text instead of formatting it (kParseNumbersAsStringsFlag)">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · minify, checking less 3.60× the time of the fastest fully validating library twitter.json: 1,045 µs · S​AX to Writer (string stream) (no encoding check) citm_catalog.json: 1,474 µs · S​AX to Writer (string stream) (no encoding check) canada.json: 10,853 µs · S​AX to Writer (raw numbers) (no encoding check) jeopardy.json: 122,744 µs · S​AX to Writer (string stream) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) copies each number's text instead of formatting it (kParseNumbersAsStringsFlag)">
|
||||
<rect class="nj-heat-3" x="639" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="420" text-anchor="middle">3.66</text>
|
||||
<text class="nj-charts-cell" x="660.5" y="420" text-anchor="middle">3.60</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="433" text-anchor="middle">U N</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · write 5.74× the time of the fastest library (fully validating) way: Writer twitter.json: 596 µs citm_catalog.json: 836 µs canada.json: 6,928 µs jeopardy.json: 80,160 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · write 5.86× the time of the fastest library (fully validating) way: Writer twitter.json: 606 µs citm_catalog.json: 838 µs canada.json: 6,906 µs jeopardy.json: 82,072 µs">
|
||||
<rect class="nj-heat-4" x="685" y="405" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="426" text-anchor="middle">5.74</text>
|
||||
<text class="nj-charts-cell" x="730" y="426" text-anchor="middle">5.86</text>
|
||||
</g>
|
||||
<text class="nj-charts-tick nj-charts-tick--l" x="8" y="472">time relative to the fastest fully validating library, less is better</text>
|
||||
<g><rect class="nj-heat-0" x="8" y="482" width="76" height="20" rx="3"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
@@ -1,6 +1,6 @@
|
||||
<svg class="nj-fig nj-charts nj-charts--blog nj-charts--heat" viewBox="0 0 784 510" role="img" aria-labelledby="nj-blog-uc-x86-clang nj-blog-uc-x86-clang-d" xmlns="http://www.w3.org/2000/svg">
|
||||
<title id="nj-blog-uc-x86-clang">Use cases: time of each library relative to the fastest, x86-64 with Clang 23</title>
|
||||
<desc id="nj-blog-uc-x86-clang-d">Table of relative times, libraries by use case. nlohmann/json json_document validate: 1.00; nlohmann/json json_document sum: 1.05; nlohmann/json json_document select: 1.00; nlohmann/json json_document edit: 1.00 (0.81 doing less, N); nlohmann/json json_document minify: 1.00 (0.83 doing less, N); nlohmann/json json_document write: 1.00 (0.71 doing less, N); yyjson validate: 2.21; yyjson sum: 1.23; yyjson select: 1.40; yyjson edit: 1.48; yyjson minify: 1.27 (1.09 doing less, N); yyjson write: 1.16; sonic-cpp validate: no fully validating way (2.32 doing less, U); sonic-cpp sum: no fully validating way (1.26 doing less, U); sonic-cpp select: no fully validating way (1.50 doing less, U); sonic-cpp edit: no fully validating way (1.21 doing less, U); sonic-cpp minify: no fully validating way (1.36 doing less, U); sonic-cpp write: 1.33; simdjson validate: 2.06; simdjson sum: 1.19; simdjson select: 1.33 (0.56 doing less, P); simdjson edit: n/a; simdjson minify: 1.55 (0.18 doing less, P); simdjson write: 2.07; sonic-rs (Rust) validate: 1.90; sonic-rs (Rust) sum: 1.13; sonic-rs (Rust) select: 1.37; sonic-rs (Rust) edit: 1.90; sonic-rs (Rust) minify: 1.75; sonic-rs (Rust) write: 2.01; Boost.J​SON validate: 1.80; Boost.J​SON sum: 1.17; Boost.J​SON select: 2.19; Boost.J​SON edit: 2.37; Boost.J​SON minify: 2.65; Boost.J​SON write: 2.38; nlohmann/json json validate: 1.43; nlohmann/json json sum: 1.00; nlohmann/json json select: 6.54; nlohmann/json json edit: 3.53; nlohmann/json json minify: 4.31; nlohmann/json json write: 1.88; simd-json (Rust) validate: 3.57; simd-json (Rust) sum: 1.91; simd-json (Rust) select: 2.61; simd-json (Rust) edit: 2.88; simd-json (Rust) minify: 3.43; simd-json (Rust) write: 2.28; serde_json (Rust) validate: 2.36 (2.11 doing less, U); serde_json (Rust) sum: 2.35; serde_json (Rust) select: 1.75; serde_json (Rust) edit: 4.53; serde_json (Rust) minify: 4.99; serde_json (Rust) write: 2.22; Glaze validate: 2.24; Glaze sum: 4.24 (3.96 doing less, P); Glaze select: 1.39 (0.61 doing less, P); Glaze edit: 5.50; Glaze minify: 5.78 (0.69 doing less, P); Glaze write: 1.95; RapidJSON validate: 5.18 (3.77 doing less, U); RapidJSON sum: 3.25 (2.40 doing less, U); RapidJSON select: 4.45 (3.45 doing less, U); RapidJSON edit: 3.16 (2.68 doing less, U); RapidJSON minify: 3.43 (2.57 doing less, U N); RapidJSON write: 2.86.</desc>
|
||||
<desc id="nj-blog-uc-x86-clang-d">Table of relative times, libraries by use case. nlohmann/json json_document validate: 1.00; nlohmann/json json_document sum: 1.00; nlohmann/json json_document select: 1.00; nlohmann/json json_document edit: 1.00 (0.82 doing less, N); nlohmann/json json_document minify: 1.00 (0.83 doing less, N); nlohmann/json json_document write: 1.00 (0.74 doing less, N); simdjson validate: 1.48; simdjson sum: 1.04; simdjson select: 1.21 (0.44 doing less, P); simdjson edit: n/a; simdjson minify: 1.56 (0.11 doing less, P); simdjson write: 2.15; yyjson validate: 2.02; yyjson sum: 1.27; yyjson select: 1.59; yyjson edit: 1.63; yyjson minify: 1.41 (1.27 doing less, N); yyjson write: 1.26; sonic-cpp validate: no fully validating way (2.01 doing less, U); sonic-cpp sum: no fully validating way (1.29 doing less, U); sonic-cpp select: no fully validating way (1.64 doing less, U); sonic-cpp edit: no fully validating way (1.35 doing less, U); sonic-cpp minify: no fully validating way (1.51 doing less, U); sonic-cpp write: 1.43; sonic-rs (Rust) validate: 1.73; sonic-rs (Rust) sum: 1.12; sonic-rs (Rust) select: 1.43; sonic-rs (Rust) edit: 2.14; sonic-rs (Rust) minify: 1.83; sonic-rs (Rust) write: 2.03; Boost.J​SON validate: 2.01; Boost.J​SON sum: 1.40; Boost.J​SON select: 2.33; Boost.J​SON edit: 2.39; Boost.J​SON minify: 2.69; Boost.J​SON write: 2.34; nlohmann/json json validate: 1.46; nlohmann/json json sum: 1.06; nlohmann/json json select: 7.50; nlohmann/json json edit: 4.02; nlohmann/json json minify: 5.03; nlohmann/json json write: 2.48; simd-json (Rust) validate: 3.23; simd-json (Rust) sum: 2.00; simd-json (Rust) select: 3.04; simd-json (Rust) edit: 3.38; simd-json (Rust) minify: 3.84; simd-json (Rust) write: 2.57; serde_json (Rust) validate: 2.26 (1.89 doing less, U); serde_json (Rust) sum: 2.42; serde_json (Rust) select: 2.06 (1.88 doing less, U); serde_json (Rust) edit: 5.10; serde_json (Rust) minify: 5.41; serde_json (Rust) write: 2.66; Glaze validate: 1.92; Glaze sum: 4.14 (3.96 doing less, P); Glaze select: 1.55 (0.68 doing less, P); Glaze edit: 5.74; Glaze minify: 6.13 (0.80 doing less, P); Glaze write: 2.19; RapidJSON validate: 4.11 (3.28 doing less, U); RapidJSON sum: 3.11 (2.40 doing less, U); RapidJSON select: 4.58 (3.62 doing less, U); RapidJSON edit: 3.37 (2.86 doing less, U); RapidJSON minify: 3.68 (2.44 doing less, U N); RapidJSON write: 2.94.</desc>
|
||||
<text class="nj-charts-tick" x="270" y="34">validate</text>
|
||||
<text class="nj-charts-tick" x="362" y="34">sum</text>
|
||||
<text class="nj-charts-tick" x="454" y="34">select</text>
|
||||
@@ -8,359 +8,364 @@
|
||||
<text class="nj-charts-tick" x="638" y="34">minify</text>
|
||||
<text class="nj-charts-tick" x="730" y="34">write</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-name-json" x="216" y="66" text-anchor="end">nlohmann/json json_document</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · validate 1.00× the time of the fastest library (fully validating) way: accept twitter.json: 250 µs citm_catalog.json: 509 µs canada.json: 1,032 µs jeopardy.json: 34,454 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · validate 1.00× the time of the fastest library (fully validating) way: accept twitter.json: 158 µs citm_catalog.json: 301 µs canada.json: 692 µs jeopardy.json: 22,891 µs">
|
||||
<rect class="nj-heat-0" x="225" y="45" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="66" text-anchor="middle">1.00</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · sum 1.05× the time of the fastest library (fully validating) way: parse twitter.json: 366 µs citm_catalog.json: 941 µs canada.json: 3,680 µs jeopardy.json: 86,966 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · sum 1.00× the time of the fastest library (fully validating) way: parse twitter.json: 208 µs citm_catalog.json: 501 µs canada.json: 1,918 µs jeopardy.json: 46,213 µs">
|
||||
<rect class="nj-heat-0" x="317" y="45" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="66" text-anchor="middle">1.05</text>
|
||||
<text class="nj-charts-cell" x="362" y="66" text-anchor="middle">1.00</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · select 1.00× the time of the fastest library (fully validating) twitter.json: 316 µs · structs (from_json) citm_catalog.json: 783 µs · parse canada.json: 1,368 µs · structs (from_json) jeopardy.json: 91,736 µs · parse">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · select 1.00× the time of the fastest library (fully validating) way: parse twitter.json: 170 µs citm_catalog.json: 374 µs canada.json: 714 µs jeopardy.json: 46,743 µs">
|
||||
<rect class="nj-heat-0" x="409" y="45" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="66" text-anchor="middle">1.00</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · edit 1.00× the time of the fastest library (fully validating) way: editable twitter.json: 519 µs citm_catalog.json: 1,152 µs canada.json: 5,671 µs jeopardy.json: 195,716 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · edit 1.00× the time of the fastest library (fully validating) way: editable twitter.json: 276 µs citm_catalog.json: 594 µs canada.json: 2,949 µs jeopardy.json: 103,847 µs">
|
||||
<rect class="nj-heat-0" x="501" y="45" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="523.5" y="66" text-anchor="middle">1.00</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · edit, checking less 0.81× the time of the fastest fully validating library twitter.json: 518 µs · editable (source numbers) (validates fully) citm_catalog.json: 1,152 µs · editable (validates fully) canada.json: 2,502 µs · editable (source numbers) (validates fully) jeopardy.json: 195,716 µs · editable (validates fully) copies each number's text instead of formatting it (number_format::source)">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · edit, checking less 0.82× the time of the fastest fully validating library twitter.json: 276 µs · editable (validates fully) citm_catalog.json: 594 µs · editable (validates fully) canada.json: 1,324 µs · editable (source numbers) (validates fully) jeopardy.json: 103,734 µs · editable (source numbers) (validates fully) copies each number's text instead of formatting it (number_format::source)">
|
||||
<rect class="nj-heat-0" x="547" y="45" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="568.5" y="60" text-anchor="middle">0.81</text>
|
||||
<text class="nj-charts-cell" x="568.5" y="60" text-anchor="middle">0.82</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="568.5" y="73" text-anchor="middle">N</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · minify 1.00× the time of the fastest library (fully validating) way: parse + dump twitter.json: 472 µs citm_catalog.json: 1,055 µs canada.json: 5,041 µs jeopardy.json: 149,143 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · minify 1.00× the time of the fastest library (fully validating) way: parse + dump twitter.json: 257 µs citm_catalog.json: 535 µs canada.json: 2,705 µs jeopardy.json: 74,831 µs">
|
||||
<rect class="nj-heat-0" x="593" y="45" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="615.5" y="66" text-anchor="middle">1.00</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · minify, checking less 0.83× the time of the fastest fully validating library twitter.json: 467 µs · parse + dump (source numbers) (validates fully) citm_catalog.json: 1,055 µs · parse + dump (validates fully) canada.json: 2,363 µs · parse + dump (source numbers) (validates fully) jeopardy.json: 149,143 µs · parse + dump (validates fully) copies each number's text instead of formatting it (number_format::source)">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · minify, checking less 0.83× the time of the fastest fully validating library twitter.json: 257 µs · parse + dump (validates fully) citm_catalog.json: 535 µs · parse + dump (validates fully) canada.json: 1,321 µs · parse + dump (source numbers) (validates fully) jeopardy.json: 74,348 µs · parse + dump (source numbers) (validates fully) copies each number's text instead of formatting it (number_format::source)">
|
||||
<rect class="nj-heat-0" x="639" y="45" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="60" text-anchor="middle">0.83</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="73" text-anchor="middle">N</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · write 1.00× the time of the fastest library (fully validating) way: dump twitter.json: 158 µs citm_catalog.json: 279 µs canada.json: 3,637 µs jeopardy.json: 67,366 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · write 1.00× the time of the fastest library (fully validating) way: dump twitter.json: 80.0 µs citm_catalog.json: 162 µs canada.json: 1,978 µs jeopardy.json: 33,185 µs">
|
||||
<rect class="nj-heat-0" x="685" y="45" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="707.5" y="66" text-anchor="middle">1.00</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · write, checking less 0.71× the time of the fastest fully validating library twitter.json: 153 µs · dump (source numbers) (validates fully) citm_catalog.json: 276 µs · dump (source numbers) (validates fully) canada.json: 982 µs · dump (source numbers) (validates fully) jeopardy.json: 67,366 µs · dump (validates fully) copies each number's text instead of formatting it (number_format::source)">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · write, checking less 0.74× the time of the fastest fully validating library twitter.json: 80.0 µs · dump (validates fully) citm_catalog.json: 162 µs · dump (validates fully) canada.json: 602 µs · dump (source numbers) (validates fully) jeopardy.json: 32,746 µs · dump (source numbers) (validates fully) copies each number's text instead of formatting it (number_format::source)">
|
||||
<rect class="nj-heat-0" x="731" y="45" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="752.5" y="60" text-anchor="middle">0.71</text>
|
||||
<text class="nj-charts-cell" x="752.5" y="60" text-anchor="middle">0.74</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="752.5" y="73" text-anchor="middle">N</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="102" text-anchor="end">yyjson</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · validate 2.21× the time of the fastest library (fully validating) twitter.json: 383 µs · read citm_catalog.json: 887 µs · read canada.json: 2,572 µs · read (raw numbers) jeopardy.json: 123,640 µs · read (raw numbers)">
|
||||
<rect class="nj-heat-2" x="225" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="102" text-anchor="middle">2.21</text>
|
||||
<text class="nj-charts-rowlabel " x="216" y="102" text-anchor="end">simdjson</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · validate 1.48× the time of the fastest library (fully validating) way: D​OM twitter.json: 129 µs citm_catalog.json: 339 µs canada.json: 1,706 µs jeopardy.json: 49,134 µs">
|
||||
<rect class="nj-heat-1" x="225" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="102" text-anchor="middle">1.48</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · sum 1.23× the time of the fastest library (fully validating) twitter.json: 436 µs · read citm_catalog.json: 1,048 µs · insitu (copy) canada.json: 3,454 µs · read jeopardy.json: 133,577 µs · read (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-1" x="317" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="102" text-anchor="middle">1.23</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · sum 1.04× the time of the fastest library (fully validating) way: D​OM twitter.json: 174 µs citm_catalog.json: 479 µs canada.json: 2,160 µs jeopardy.json: 59,125 µs">
|
||||
<rect class="nj-heat-0" x="317" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="102" text-anchor="middle">1.04</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · select 1.40× the time of the fastest library (fully validating) twitter.json: 386 µs · insitu (copy) citm_catalog.json: 891 µs · insitu (copy) canada.json: 2,572 µs · read (raw numbers) jeopardy.json: 135,813 µs · insitu (copy) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-1" x="409" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="102" text-anchor="middle">1.40</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · select 1.21× the time of the fastest library (fully validating) way: D​OM twitter.json: 137 µs citm_catalog.json: 345 µs canada.json: 1,704 µs jeopardy.json: 57,080 µs">
|
||||
<rect class="nj-heat-1" x="409" y="81" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="431.5" y="102" text-anchor="middle">1.21</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · edit 1.48× the time of the fastest library (fully validating) twitter.json: 833 µs · mut copy citm_catalog.json: 1,674 µs · mut copy canada.json: 7,249 µs · mut copy jeopardy.json: 316,652 µs · insitu (copy) + mut copy (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-1" x="501" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="102" text-anchor="middle">1.48</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · minify 1.27× the time of the fastest library (fully validating) way: read + write twitter.json: 626 µs citm_catalog.json: 1,261 µs canada.json: 6,179 µs jeopardy.json: 200,886 µs">
|
||||
<rect class="nj-heat-1" x="593" y="81" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="615.5" y="102" text-anchor="middle">1.27</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · minify, checking less 1.09× the time of the fastest fully validating library twitter.json: 626 µs · read + write (validates fully) citm_catalog.json: 1,236 µs · read (raw numbers) + write (validates fully) canada.json: 3,426 µs · read (raw numbers) + write (validates fully) jeopardy.json: 197,700 µs · read (raw numbers) + write (validates fully) copies each number's text instead of formatting it (YYJSON_READ_NUMBER_AS_RAW)">
|
||||
<rect class="nj-heat-0" x="639" y="81" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="96" text-anchor="middle">1.09</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="109" text-anchor="middle">N</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · write 1.16× the time of the fastest library (fully validating) way: write twitter.json: 216 µs citm_catalog.json: 367 µs canada.json: 3,366 µs jeopardy.json: 73,272 µs">
|
||||
<rect class="nj-heat-1" x="685" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="102" text-anchor="middle">1.16</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="138" text-anchor="end">sonic-cpp</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · validate, checking less 2.32× the time of the fastest fully validating library way: Document twitter.json: 451 µs citm_catalog.json: 998 µs canada.json: 3,031 µs jeopardy.json: 95,823 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-2" x="225" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="132" text-anchor="middle">2.32</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="270" y="145" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · sum, checking less 1.26× the time of the fastest fully validating library way: Document twitter.json: 504 µs citm_catalog.json: 1,176 µs canada.json: 3,701 µs jeopardy.json: 104,509 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-1" x="317" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="132" text-anchor="middle">1.26</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="362" y="145" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · select, checking less 1.50× the time of the fastest fully validating library way: Document twitter.json: 454 µs citm_catalog.json: 1,015 µs canada.json: 3,025 µs jeopardy.json: 112,621 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-1" x="409" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="132" text-anchor="middle">1.50</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="454" y="145" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · edit, checking less 1.21× the time of the fastest fully validating library way: Document twitter.json: 642 µs citm_catalog.json: 1,497 µs canada.json: 8,153 µs jeopardy.json: 184,321 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-1" x="501" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="132" text-anchor="middle">1.21</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="546" y="145" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · minify, checking less 1.36× the time of the fastest fully validating library way: Document + Serialize twitter.json: 655 µs citm_catalog.json: 1,474 µs canada.json: 7,856 µs jeopardy.json: 169,992 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-1" x="593" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="132" text-anchor="middle">1.36</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="638" y="145" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · write 1.33× the time of the fastest library (fully validating) way: Serialize twitter.json: 228 µs citm_catalog.json: 474 µs canada.json: 4,766 µs jeopardy.json: 66,619 µs">
|
||||
<rect class="nj-heat-1" x="685" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="138" text-anchor="middle">1.33</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="174" text-anchor="end">simdjson</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · validate 2.06× the time of the fastest library (fully validating) way: D​OM twitter.json: 302 µs citm_catalog.json: 721 µs canada.json: 3,202 µs jeopardy.json: 116,859 µs">
|
||||
<rect class="nj-heat-2" x="225" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="174" text-anchor="middle">2.06</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · sum 1.19× the time of the fastest library (fully validating) twitter.json: 391 µs · D​OM citm_catalog.json: 969 µs · D​OM canada.json: 4,121 µs · D​OM jeopardy.json: 116,855 µs · On-Demand">
|
||||
<rect class="nj-heat-1" x="317" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="174" text-anchor="middle">1.19</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · select 1.33× the time of the fastest library (fully validating) way: D​OM twitter.json: 318 µs citm_catalog.json: 728 µs canada.json: 3,213 µs jeopardy.json: 129,986 µs">
|
||||
<rect class="nj-heat-1" x="409" y="153" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="431.5" y="174" text-anchor="middle">1.33</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · select, checking less 0.56× the time of the fastest fully validating library way: On-Demand twitter.json: 182 µs citm_catalog.json: 494 µs canada.json: 692 µs jeopardy.json: 50,660 µs reads lazily: On-Demand reads only what you ask for and steps over the rest by matching brackets">
|
||||
<rect class="nj-heat-0" x="455" y="153" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="476.5" y="168" text-anchor="middle">0.56</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="476.5" y="181" text-anchor="middle">P</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · select, checking less 0.44× the time of the fastest fully validating library twitter.json: 69.1 µs · On-Demand structs citm_catalog.json: 219 µs · On-Demand canada.json: 261 µs · On-Demand (key selectors) jeopardy.json: 19,564 µs · On-Demand reads lazily: On-Demand reads only what you ask for and steps over the rest by matching brackets">
|
||||
<rect class="nj-heat-0" x="455" y="81" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="476.5" y="96" text-anchor="middle">0.44</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="476.5" y="109" text-anchor="middle">P</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · edit simdjson's documents are read-only: it has no A​PI to change a value and write the result">
|
||||
<rect class="nj-heat-na" x="501" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-tick" x="546" y="174">n/a</text>
|
||||
<rect class="nj-heat-na" x="501" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-tick" x="546" y="102">n/a</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · minify 1.55× the time of the fastest library (fully validating) way: D​OM + to_string twitter.json: 706 µs citm_catalog.json: 1,411 µs canada.json: 8,125 µs jeopardy.json: 270,332 µs">
|
||||
<rect class="nj-heat-2" x="593" y="153" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="615.5" y="174" text-anchor="middle">1.55</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · minify 1.56× the time of the fastest library (fully validating) way: D​OM + to_string twitter.json: 335 µs citm_catalog.json: 706 µs canada.json: 4,879 µs jeopardy.json: 143,106 µs">
|
||||
<rect class="nj-heat-2" x="593" y="81" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="615.5" y="102" text-anchor="middle">1.56</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · minify, checking less 0.18× the time of the fastest fully validating library way: minify twitter.json: 99.0 µs citm_catalog.json: 270 µs canada.json: 329 µs jeopardy.json: 42,546 µs simdjson::minify() only removes whitespace, without parsing the values">
|
||||
<rect class="nj-heat-0" x="639" y="153" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="168" text-anchor="middle">0.18</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="181" text-anchor="middle">P</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · minify, checking less 0.11× the time of the fastest fully validating library way: minify twitter.json: 25.8 µs citm_catalog.json: 66.2 µs canada.json: 133 µs jeopardy.json: 18,402 µs simdjson::minify() only removes whitespace, without parsing the values">
|
||||
<rect class="nj-heat-0" x="639" y="81" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="96" text-anchor="middle">0.11</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="109" text-anchor="middle">P</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · write 2.07× the time of the fastest library (fully validating) way: to_string twitter.json: 382 µs citm_catalog.json: 661 µs canada.json: 4,787 µs jeopardy.json: 162,220 µs">
|
||||
<rect class="nj-heat-2" x="685" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="174" text-anchor="middle">2.07</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · write 2.15× the time of the fastest library (fully validating) way: to_string twitter.json: 189 µs citm_catalog.json: 356 µs canada.json: 3,256 µs jeopardy.json: 83,260 µs">
|
||||
<rect class="nj-heat-2" x="685" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="102" text-anchor="middle">2.15</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="138" text-anchor="end">yyjson</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · validate 2.02× the time of the fastest library (fully validating) twitter.json: 206 µs · read citm_catalog.json: 531 µs · insitu (copy) canada.json: 1,676 µs · insitu (copy) jeopardy.json: 69,260 µs · insitu (copy) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-2" x="225" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="138" text-anchor="middle">2.02</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · sum 1.27× the time of the fastest library (fully validating) twitter.json: 241 µs · read citm_catalog.json: 634 µs · read canada.json: 2,079 µs · insitu (copy) jeopardy.json: 75,758 µs · insitu (copy) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-1" x="317" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="138" text-anchor="middle">1.27</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · select 1.59× the time of the fastest library (fully validating) twitter.json: 202 µs · insitu (copy) citm_catalog.json: 532 µs · read canada.json: 1,674 µs · read jeopardy.json: 75,109 µs · insitu (copy) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-2" x="409" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="138" text-anchor="middle">1.59</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · edit 1.63× the time of the fastest library (fully validating) way: mut copy twitter.json: 482 µs citm_catalog.json: 1,008 µs canada.json: 4,242 µs jeopardy.json: 173,943 µs">
|
||||
<rect class="nj-heat-2" x="501" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="138" text-anchor="middle">1.63</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · minify 1.41× the time of the fastest library (fully validating) twitter.json: 359 µs · insitu (copy) + write citm_catalog.json: 725 µs · read + write canada.json: 3,731 µs · insitu (copy) + write jeopardy.json: 113,348 µs · insitu (copy) + write (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-1" x="593" y="117" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="615.5" y="138" text-anchor="middle">1.41</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · minify, checking less 1.27× the time of the fastest fully validating library twitter.json: 359 µs · insitu (copy) + write (validates fully) citm_catalog.json: 725 µs · read + write (validates fully) canada.json: 2,460 µs · read (raw numbers) + write (validates fully) jeopardy.json: 113,348 µs · insitu (copy) + write (validates fully) copies each number's text instead of formatting it (YYJSON_READ_NUMBER_AS_RAW) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-1" x="639" y="117" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="132" text-anchor="middle">1.27</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="145" text-anchor="middle">N</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · write 1.26× the time of the fastest library (fully validating) way: write twitter.json: 132 µs citm_catalog.json: 190 µs canada.json: 2,053 µs jeopardy.json: 41,226 µs">
|
||||
<rect class="nj-heat-1" x="685" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="138" text-anchor="middle">1.26</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="174" text-anchor="end">sonic-cpp</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · validate, checking less 2.01× the time of the fastest fully validating library way: Document twitter.json: 246 µs citm_catalog.json: 564 µs canada.json: 1,750 µs jeopardy.json: 50,682 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-2" x="225" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="168" text-anchor="middle">2.01</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="270" y="181" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · sum, checking less 1.29× the time of the fastest fully validating library way: Document twitter.json: 293 µs citm_catalog.json: 692 µs canada.json: 2,141 µs jeopardy.json: 58,785 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-1" x="317" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="168" text-anchor="middle">1.29</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="362" y="181" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · select, checking less 1.64× the time of the fastest fully validating library way: Document twitter.json: 261 µs citm_catalog.json: 572 µs canada.json: 1,752 µs jeopardy.json: 59,327 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-2" x="409" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="168" text-anchor="middle">1.64</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="454" y="181" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · edit, checking less 1.35× the time of the fastest fully validating library way: Document twitter.json: 364 µs citm_catalog.json: 843 µs canada.json: 5,309 µs jeopardy.json: 102,212 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-1" x="501" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="168" text-anchor="middle">1.35</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="546" y="181" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · minify, checking less 1.51× the time of the fastest fully validating library way: Document + Serialize twitter.json: 366 µs citm_catalog.json: 842 µs canada.json: 5,313 µs jeopardy.json: 89,464 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-2" x="593" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="168" text-anchor="middle">1.51</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="638" y="181" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · write 1.43× the time of the fastest library (fully validating) way: Serialize twitter.json: 115 µs citm_catalog.json: 262 µs canada.json: 3,560 µs jeopardy.json: 33,218 µs">
|
||||
<rect class="nj-heat-1" x="685" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="174" text-anchor="middle">1.43</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="210" text-anchor="end">sonic-rs (Rust)</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · validate 1.90× the time of the fastest library (fully validating) way: IgnoredAny twitter.json: 501 µs citm_catalog.json: 970 µs canada.json: 2,249 µs jeopardy.json: 54,369 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · validate 1.73× the time of the fastest library (fully validating) twitter.json: 290 µs · Value citm_catalog.json: 548 µs · IgnoredAny canada.json: 1,234 µs · IgnoredAny jeopardy.json: 34,104 µs · IgnoredAny">
|
||||
<rect class="nj-heat-2" x="225" y="189" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="210" text-anchor="middle">1.90</text>
|
||||
<text class="nj-charts-cell" x="270" y="210" text-anchor="middle">1.73</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · sum 1.13× the time of the fastest library (fully validating) way: visitor twitter.json: 501 µs citm_catalog.json: 1,123 µs canada.json: 4,397 µs jeopardy.json: 59,583 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · sum 1.12× the time of the fastest library (fully validating) way: visitor twitter.json: 287 µs citm_catalog.json: 604 µs canada.json: 2,643 µs jeopardy.json: 32,088 µs">
|
||||
<rect class="nj-heat-0" x="317" y="189" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="210" text-anchor="middle">1.13</text>
|
||||
<text class="nj-charts-cell" x="362" y="210" text-anchor="middle">1.12</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · select 1.37× the time of the fastest library (fully validating) way: structs twitter.json: 504 µs citm_catalog.json: 1,033 µs canada.json: 2,328 µs jeopardy.json: 90,486 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · select 1.43× the time of the fastest library (fully validating) twitter.json: 294 µs · Value citm_catalog.json: 609 µs · structs canada.json: 1,237 µs · structs jeopardy.json: 40,453 µs · structs">
|
||||
<rect class="nj-heat-1" x="409" y="189" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="210" text-anchor="middle">1.37</text>
|
||||
<text class="nj-charts-cell" x="454" y="210" text-anchor="middle">1.43</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · edit 1.90× the time of the fastest library (fully validating) way: Value twitter.json: 1,197 µs citm_catalog.json: 2,389 µs canada.json: 7,744 µs jeopardy.json: 390,952 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · edit 2.14× the time of the fastest library (fully validating) way: Value twitter.json: 668 µs citm_catalog.json: 1,374 µs canada.json: 4,662 µs jeopardy.json: 246,664 µs">
|
||||
<rect class="nj-heat-2" x="501" y="189" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="210" text-anchor="middle">1.90</text>
|
||||
<text class="nj-charts-cell" x="546" y="210" text-anchor="middle">2.14</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · minify 1.75× the time of the fastest library (fully validating) way: Value twitter.json: 1,000 µs citm_catalog.json: 2,097 µs canada.json: 7,795 µs jeopardy.json: 215,280 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · minify 1.83× the time of the fastest library (fully validating) way: Value twitter.json: 521 µs citm_catalog.json: 1,163 µs canada.json: 4,568 µs jeopardy.json: 112,037 µs">
|
||||
<rect class="nj-heat-2" x="593" y="189" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="210" text-anchor="middle">1.75</text>
|
||||
<text class="nj-charts-cell" x="638" y="210" text-anchor="middle">1.83</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · write 2.01× the time of the fastest library (fully validating) way: Value twitter.json: 434 µs citm_catalog.json: 927 µs canada.json: 3,987 µs jeopardy.json: 109,176 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · write 2.03× the time of the fastest library (fully validating) way: Value twitter.json: 230 µs citm_catalog.json: 515 µs canada.json: 2,458 µs jeopardy.json: 49,042 µs">
|
||||
<rect class="nj-heat-2" x="685" y="189" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="210" text-anchor="middle">2.01</text>
|
||||
<text class="nj-charts-cell" x="730" y="210" text-anchor="middle">2.03</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="246" text-anchor="end">Boost.J​SON</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · validate 1.80× the time of the fastest library (fully validating) twitter.json: 570 µs · S​AX (numbers: none) citm_catalog.json: 903 µs · S​AX (numbers: none) canada.json: 1,678 µs · S​AX (numbers: none) jeopardy.json: 55,087 µs · S​AX">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · validate 2.01× the time of the fastest library (fully validating) twitter.json: 395 µs · S​AX (numbers: none) citm_catalog.json: 672 µs · S​AX (numbers: none) canada.json: 1,144 µs · S​AX (numbers: none) jeopardy.json: 40,109 µs · S​AX">
|
||||
<rect class="nj-heat-2" x="225" y="225" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="246" text-anchor="middle">1.80</text>
|
||||
<text class="nj-charts-cell" x="270" y="246" text-anchor="middle">2.01</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · sum 1.17× the time of the fastest library (fully validating) way: S​AX twitter.json: 580 µs citm_catalog.json: 928 µs canada.json: 5,715 µs jeopardy.json: 55,874 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · sum 1.40× the time of the fastest library (fully validating) way: S​AX twitter.json: 392 µs citm_catalog.json: 675 µs canada.json: 3,399 µs jeopardy.json: 39,552 µs">
|
||||
<rect class="nj-heat-1" x="317" y="225" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="246" text-anchor="middle">1.17</text>
|
||||
<text class="nj-charts-cell" x="362" y="246" text-anchor="middle">1.40</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · select 2.19× the time of the fastest library (fully validating) twitter.json: 760 µs · parse_into structs citm_catalog.json: 1,388 µs · parse_into structs canada.json: 7,026 µs · parse jeopardy.json: 97,008 µs · parse_into structs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · select 2.33× the time of the fastest library (fully validating) twitter.json: 422 µs · parse_into structs citm_catalog.json: 715 µs · parse_into structs canada.json: 3,815 µs · parse jeopardy.json: 53,913 µs · parse_into structs">
|
||||
<rect class="nj-heat-2" x="409" y="225" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="246" text-anchor="middle">2.19</text>
|
||||
<text class="nj-charts-cell" x="454" y="246" text-anchor="middle">2.33</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · edit 2.37× the time of the fastest library (fully validating) way: parse twitter.json: 1,716 µs citm_catalog.json: 2,578 µs canada.json: 13,427 µs jeopardy.json: 354,510 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · edit 2.39× the time of the fastest library (fully validating) way: parse twitter.json: 936 µs citm_catalog.json: 1,302 µs canada.json: 6,990 µs jeopardy.json: 191,545 µs">
|
||||
<rect class="nj-heat-2" x="501" y="225" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="246" text-anchor="middle">2.37</text>
|
||||
<text class="nj-charts-cell" x="546" y="246" text-anchor="middle">2.39</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · minify 2.65× the time of the fastest library (fully validating) way: parse + serialize twitter.json: 1,722 µs citm_catalog.json: 2,573 µs canada.json: 12,678 µs jeopardy.json: 330,878 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · minify 2.69× the time of the fastest library (fully validating) way: parse + serialize twitter.json: 949 µs citm_catalog.json: 1,277 µs canada.json: 6,991 µs jeopardy.json: 173,183 µs">
|
||||
<rect class="nj-heat-3" x="593" y="225" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="246" text-anchor="middle">2.65</text>
|
||||
<text class="nj-charts-cell" x="638" y="246" text-anchor="middle">2.69</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · write 2.38× the time of the fastest library (fully validating) way: serialize twitter.json: 478 µs citm_catalog.json: 913 µs canada.json: 5,610 µs jeopardy.json: 141,994 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · write 2.34× the time of the fastest library (fully validating) way: serialize twitter.json: 253 µs citm_catalog.json: 438 µs canada.json: 3,162 µs jeopardy.json: 72,223 µs">
|
||||
<rect class="nj-heat-2" x="685" y="225" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="246" text-anchor="middle">2.38</text>
|
||||
<text class="nj-charts-cell" x="730" y="246" text-anchor="middle">2.34</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel nj-charts-name-json" x="216" y="282" text-anchor="end">nlohmann/json json</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · validate 1.43× the time of the fastest library (fully validating) way: accept twitter.json: 335 µs citm_catalog.json: 711 µs canada.json: 2,018 µs jeopardy.json: 39,513 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · validate 1.46× the time of the fastest library (fully validating) way: accept twitter.json: 219 µs citm_catalog.json: 494 µs canada.json: 1,247 µs jeopardy.json: 25,192 µs">
|
||||
<rect class="nj-heat-1" x="225" y="261" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="282" text-anchor="middle">1.43</text>
|
||||
<text class="nj-charts-cell" x="270" y="282" text-anchor="middle">1.46</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · sum 1.00× the time of the fastest library (fully validating) way: sax twitter.json: 431 µs citm_catalog.json: 914 µs canada.json: 3,824 µs jeopardy.json: 60,439 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · sum 1.06× the time of the fastest library (fully validating) way: sax twitter.json: 256 µs citm_catalog.json: 601 µs canada.json: 2,131 µs jeopardy.json: 35,298 µs">
|
||||
<rect class="nj-heat-0" x="317" y="261" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="282" text-anchor="middle">1.00</text>
|
||||
<text class="nj-charts-cell" x="362" y="282" text-anchor="middle">1.06</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · select 6.54× the time of the fastest library (fully validating) way: parse twitter.json: 3,181 µs citm_catalog.json: 4,583 µs canada.json: 9,599 µs jeopardy.json: 405,734 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · select 7.50× the time of the fastest library (fully validating) twitter.json: 1,858 µs · structs (from_json) citm_catalog.json: 2,782 µs · parse canada.json: 5,057 µs · parse jeopardy.json: 256,520 µs · parse">
|
||||
<rect class="nj-heat-4" x="409" y="261" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="282" text-anchor="middle">6.54</text>
|
||||
<text class="nj-charts-cell" x="454" y="282" text-anchor="middle">7.50</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · edit 3.53× the time of the fastest library (fully validating) twitter.json: 2,452 µs · ordered_json citm_catalog.json: 4,402 µs · ordered_json canada.json: 14,765 µs · parse jeopardy.json: 646,489 µs · ordered_json">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · edit 4.02× the time of the fastest library (fully validating) twitter.json: 1,556 µs · ordered_json citm_catalog.json: 2,610 µs · ordered_json canada.json: 8,452 µs · parse jeopardy.json: 380,266 µs · ordered_json">
|
||||
<rect class="nj-heat-3" x="501" y="261" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="282" text-anchor="middle">3.53</text>
|
||||
<text class="nj-charts-cell" x="546" y="282" text-anchor="middle">4.02</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · minify 4.31× the time of the fastest library (fully validating) way: parse + dump twitter.json: 3,525 µs citm_catalog.json: 5,178 µs canada.json: 14,024 µs jeopardy.json: 506,705 µs">
|
||||
<rect class="nj-heat-3" x="593" y="261" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="282" text-anchor="middle">4.31</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · minify 5.03× the time of the fastest library (fully validating) way: parse + dump twitter.json: 2,190 µs citm_catalog.json: 3,111 µs canada.json: 8,509 µs jeopardy.json: 306,446 µs">
|
||||
<rect class="nj-heat-4" x="593" y="261" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="282" text-anchor="middle">5.03</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · write 1.88× the time of the fastest library (fully validating) way: dump twitter.json: 438 µs citm_catalog.json: 599 µs canada.json: 4,458 µs jeopardy.json: 116,318 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · write 2.48× the time of the fastest library (fully validating) way: dump twitter.json: 308 µs citm_catalog.json: 382 µs canada.json: 3,330 µs jeopardy.json: 81,811 µs">
|
||||
<rect class="nj-heat-2" x="685" y="261" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="282" text-anchor="middle">1.88</text>
|
||||
<text class="nj-charts-cell" x="730" y="282" text-anchor="middle">2.48</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="318" text-anchor="end">simd-json (Rust)</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · validate 3.57× the time of the fastest library (fully validating) way: tape (copy) twitter.json: 567 µs citm_catalog.json: 1,430 µs canada.json: 4,359 µs jeopardy.json: 207,551 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · validate 3.23× the time of the fastest library (fully validating) way: tape (copy) twitter.json: 323 µs citm_catalog.json: 887 µs canada.json: 2,670 µs jeopardy.json: 107,087 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-3" x="225" y="297" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="318" text-anchor="middle">3.57</text>
|
||||
<text class="nj-charts-cell" x="270" y="318" text-anchor="middle">3.23</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · sum 1.91× the time of the fastest library (fully validating) way: visitor (copy) twitter.json: 681 µs citm_catalog.json: 1,650 µs canada.json: 5,083 µs jeopardy.json: 210,185 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · sum 2.00× the time of the fastest library (fully validating) way: visitor (copy) twitter.json: 384 µs citm_catalog.json: 1,021 µs canada.json: 3,151 µs jeopardy.json: 118,952 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-2" x="317" y="297" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="318" text-anchor="middle">1.91</text>
|
||||
<text class="nj-charts-cell" x="362" y="318" text-anchor="middle">2.00</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · select 2.61× the time of the fastest library (fully validating) way: structs (copy) twitter.json: 679 µs citm_catalog.json: 1,731 µs canada.json: 5,144 µs jeopardy.json: 239,164 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · select 3.04× the time of the fastest library (fully validating) way: structs (copy) twitter.json: 401 µs citm_catalog.json: 1,106 µs canada.json: 3,070 µs jeopardy.json: 134,048 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-3" x="409" y="297" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="318" text-anchor="middle">2.61</text>
|
||||
<text class="nj-charts-cell" x="454" y="318" text-anchor="middle">3.04</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · edit 2.88× the time of the fastest library (fully validating) twitter.json: 1,862 µs · borrowed (copy) citm_catalog.json: 4,194 µs · borrowed (copy) canada.json: 14,896 µs · owned (copy) jeopardy.json: 391,369 µs · borrowed (copy) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · edit 3.38× the time of the fastest library (fully validating) way: borrowed (copy) twitter.json: 1,224 µs citm_catalog.json: 2,630 µs canada.json: 8,994 µs jeopardy.json: 226,271 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-3" x="501" y="297" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="318" text-anchor="middle">2.88</text>
|
||||
<text class="nj-charts-cell" x="546" y="318" text-anchor="middle">3.38</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · minify 3.43× the time of the fastest library (fully validating) way: borrowed (copy) twitter.json: 1,889 µs citm_catalog.json: 4,196 µs canada.json: 15,716 µs jeopardy.json: 414,377 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · minify 3.84× the time of the fastest library (fully validating) way: borrowed (copy) twitter.json: 1,194 µs citm_catalog.json: 2,602 µs canada.json: 8,985 µs jeopardy.json: 217,085 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-3" x="593" y="297" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="318" text-anchor="middle">3.43</text>
|
||||
<text class="nj-charts-cell" x="638" y="318" text-anchor="middle">3.84</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · write 2.28× the time of the fastest library (fully validating) way: borrowed twitter.json: 582 µs citm_catalog.json: 800 µs canada.json: 5,147 µs jeopardy.json: 122,623 µs">
|
||||
<rect class="nj-heat-2" x="685" y="297" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="318" text-anchor="middle">2.28</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · write 2.57× the time of the fastest library (fully validating) way: borrowed twitter.json: 390 µs citm_catalog.json: 501 µs canada.json: 3,146 µs jeopardy.json: 59,808 µs">
|
||||
<rect class="nj-heat-3" x="685" y="297" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="318" text-anchor="middle">2.57</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="354" text-anchor="end">serde_json (Rust)</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · validate 2.36× the time of the fastest library (fully validating) way: from_utf8 + IgnoredAny twitter.json: 624 µs citm_catalog.json: 1,440 µs canada.json: 2,406 µs jeopardy.json: 64,720 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · validate 2.26× the time of the fastest library (fully validating) way: from_utf8 + IgnoredAny twitter.json: 387 µs citm_catalog.json: 992 µs canada.json: 1,558 µs jeopardy.json: 32,686 µs">
|
||||
<rect class="nj-heat-2" x="225" y="333" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="247.5" y="354" text-anchor="middle">2.36</text>
|
||||
<text class="nj-charts-cell" x="247.5" y="354" text-anchor="middle">2.26</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · validate, checking less 2.11× the time of the fastest fully validating library way: IgnoredAny twitter.json: 484 µs citm_catalog.json: 1,370 µs canada.json: 2,314 µs jeopardy.json: 58,247 µs trusts U​TF-8 in the strings it skips (from_slice); strings it reads are checked">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · validate, checking less 1.89× the time of the fastest fully validating library way: IgnoredAny twitter.json: 258 µs citm_catalog.json: 846 µs canada.json: 1,428 µs jeopardy.json: 30,731 µs trusts U​TF-8 in the strings it skips (from_slice); strings it reads are checked">
|
||||
<rect class="nj-heat-2" x="271" y="333" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="292.5" y="348" text-anchor="middle">2.11</text>
|
||||
<text class="nj-charts-cell" x="292.5" y="348" text-anchor="middle">1.89</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="292.5" y="361" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · sum 2.35× the time of the fastest library (fully validating) way: visitor twitter.json: 1,311 µs citm_catalog.json: 2,288 µs canada.json: 7,127 µs jeopardy.json: 129,497 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · sum 2.42× the time of the fastest library (fully validating) way: visitor twitter.json: 772 µs citm_catalog.json: 1,228 µs canada.json: 4,790 µs jeopardy.json: 70,198 µs">
|
||||
<rect class="nj-heat-2" x="317" y="333" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="354" text-anchor="middle">2.35</text>
|
||||
<text class="nj-charts-cell" x="362" y="354" text-anchor="middle">2.42</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · select 1.75× the time of the fastest library (fully validating) way: from_utf8 + structs twitter.json: 701 µs citm_catalog.json: 1,532 µs canada.json: 2,529 µs jeopardy.json: 107,316 µs">
|
||||
<rect class="nj-heat-2" x="409" y="333" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="354" text-anchor="middle">1.75</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · select 2.06× the time of the fastest library (fully validating) way: from_utf8 + structs twitter.json: 434 µs citm_catalog.json: 1,055 µs canada.json: 1,560 µs jeopardy.json: 53,880 µs">
|
||||
<rect class="nj-heat-2" x="409" y="333" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="431.5" y="354" text-anchor="middle">2.06</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · edit 4.53× the time of the fastest library (fully validating) way: Value twitter.json: 4,042 µs citm_catalog.json: 6,586 µs canada.json: 16,631 µs jeopardy.json: 632,766 µs">
|
||||
<rect class="nj-heat-3" x="501" y="333" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="354" text-anchor="middle">4.53</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · select, checking less 1.88× the time of the fastest fully validating library twitter.json: 367 µs · structs citm_catalog.json: 946 µs · structs canada.json: 1,420 µs · structs jeopardy.json: 53,880 µs · from_utf8 + structs (validates fully) trusts U​TF-8 in the strings it skips (from_slice); strings it reads are checked">
|
||||
<rect class="nj-heat-2" x="455" y="333" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="476.5" y="348" text-anchor="middle">1.88</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="476.5" y="361" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · minify 4.99× the time of the fastest library (fully validating) way: Value twitter.json: 4,012 µs citm_catalog.json: 6,583 µs canada.json: 17,306 µs jeopardy.json: 509,702 µs">
|
||||
<rect class="nj-heat-3" x="593" y="333" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="354" text-anchor="middle">4.99</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · edit 5.10× the time of the fastest library (fully validating) way: Value twitter.json: 2,423 µs citm_catalog.json: 3,549 µs canada.json: 10,095 µs jeopardy.json: 389,645 µs">
|
||||
<rect class="nj-heat-4" x="501" y="333" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="354" text-anchor="middle">5.10</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · write 2.22× the time of the fastest library (fully validating) way: Value twitter.json: 550 µs citm_catalog.json: 887 µs canada.json: 4,005 µs jeopardy.json: 134,163 µs">
|
||||
<rect class="nj-heat-2" x="685" y="333" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="354" text-anchor="middle">2.22</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · minify 5.41× the time of the fastest library (fully validating) way: Value twitter.json: 2,396 µs citm_catalog.json: 3,633 µs canada.json: 10,095 µs jeopardy.json: 271,504 µs">
|
||||
<rect class="nj-heat-4" x="593" y="333" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="354" text-anchor="middle">5.41</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · write 2.66× the time of the fastest library (fully validating) way: Value twitter.json: 399 µs citm_catalog.json: 590 µs canada.json: 2,432 µs jeopardy.json: 73,863 µs">
|
||||
<rect class="nj-heat-3" x="685" y="333" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="354" text-anchor="middle">2.66</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="390" text-anchor="end">Glaze</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · validate 2.24× the time of the fastest library (fully validating) way: validate_json twitter.json: 594 µs citm_catalog.json: 1,230 µs canada.json: 2,139 µs jeopardy.json: 73,235 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · validate 1.92× the time of the fastest library (fully validating) way: validate_json twitter.json: 314 µs citm_catalog.json: 688 µs canada.json: 1,119 µs jeopardy.json: 42,232 µs">
|
||||
<rect class="nj-heat-2" x="225" y="369" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="390" text-anchor="middle">2.24</text>
|
||||
<text class="nj-charts-cell" x="270" y="390" text-anchor="middle">1.92</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · sum 4.24× the time of the fastest library (fully validating) way: generic (double, strict) twitter.json: 2,374 µs citm_catalog.json: 3,982 µs canada.json: 11,930 µs jeopardy.json: 261,204 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · sum 4.14× the time of the fastest library (fully validating) way: generic (double, strict) twitter.json: 1,362 µs citm_catalog.json: 2,299 µs canada.json: 6,012 µs jeopardy.json: 143,894 µs">
|
||||
<rect class="nj-heat-3" x="317" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="339.5" y="390" text-anchor="middle">4.24</text>
|
||||
<text class="nj-charts-cell" x="339.5" y="390" text-anchor="middle">4.14</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · sum, checking less 3.96× the time of the fastest fully validating library twitter.json: 2,374 µs · generic (double, strict) (validates fully) citm_catalog.json: 3,982 µs · generic (double, strict) (validates fully) canada.json: 11,921 µs · generic (double) jeopardy.json: 198,036 µs · lazy_json accepts trailing garbage after the value: Glaze's default (validate_trailing_whitespace checks it) reads lazily: lazy_json reads only what you ask for and steps over the rest">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · sum, checking less 3.96× the time of the fastest fully validating library twitter.json: 1,358 µs · generic (double) citm_catalog.json: 2,286 µs · generic (double) canada.json: 6,012 µs · generic (double, strict) (validates fully) jeopardy.json: 122,038 µs · lazy_json accepts trailing garbage after the value: Glaze's default (validate_trailing_whitespace checks it) reads lazily: lazy_json reads only what you ask for and steps over the rest">
|
||||
<rect class="nj-heat-3" x="363" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="384.5" y="384" text-anchor="middle">3.96</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="384.5" y="397" text-anchor="middle">P</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · select 1.39× the time of the fastest library (fully validating) way: structs (validate_skipped) twitter.json: 542 µs citm_catalog.json: 1,369 µs canada.json: 1,846 µs jeopardy.json: 83,907 µs">
|
||||
<rect class="nj-heat-1" x="409" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="431.5" y="390" text-anchor="middle">1.39</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · select 1.55× the time of the fastest library (fully validating) way: structs (validate_skipped) twitter.json: 303 µs citm_catalog.json: 750 µs canada.json: 1,129 µs jeopardy.json: 47,576 µs">
|
||||
<rect class="nj-heat-2" x="409" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="431.5" y="390" text-anchor="middle">1.55</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · select, checking less 0.61× the time of the fastest fully validating library way: structs twitter.json: 337 µs citm_catalog.json: 416 µs canada.json: 447 µs jeopardy.json: 68,455 µs reads into structs and steps over fields it doesn't know without checking them (validate_skipped checks them too)">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · select, checking less 0.68× the time of the fastest fully validating library way: structs twitter.json: 200 µs citm_catalog.json: 226 µs canada.json: 280 µs jeopardy.json: 35,865 µs reads into structs and steps over fields it doesn't know without checking them (validate_skipped checks them too)">
|
||||
<rect class="nj-heat-0" x="455" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="476.5" y="384" text-anchor="middle">0.61</text>
|
||||
<text class="nj-charts-cell" x="476.5" y="384" text-anchor="middle">0.68</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="476.5" y="397" text-anchor="middle">P</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · edit 5.50× the time of the fastest library (fully validating) way: generic (strict) twitter.json: 3,896 µs citm_catalog.json: 7,671 µs canada.json: 28,104 µs jeopardy.json: 723,675 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · edit 5.74× the time of the fastest library (fully validating) way: generic (strict) twitter.json: 2,229 µs citm_catalog.json: 4,175 µs canada.json: 15,470 µs jeopardy.json: 379,283 µs">
|
||||
<rect class="nj-heat-4" x="501" y="369" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="390" text-anchor="middle">5.50</text>
|
||||
<text class="nj-charts-cell" x="546" y="390" text-anchor="middle">5.74</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · minify 5.78× the time of the fastest library (fully validating) way: generic (strict) twitter.json: 3,801 µs citm_catalog.json: 7,482 µs canada.json: 26,932 µs jeopardy.json: 544,342 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · minify 6.13× the time of the fastest library (fully validating) way: generic (strict) twitter.json: 2,161 µs citm_catalog.json: 4,119 µs canada.json: 15,484 µs jeopardy.json: 284,691 µs">
|
||||
<rect class="nj-heat-4" x="593" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="615.5" y="390" text-anchor="middle">5.78</text>
|
||||
<text class="nj-charts-cell" x="615.5" y="390" text-anchor="middle">6.13</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · minify, checking less 0.69× the time of the fastest fully validating library way: minify_json twitter.json: 422 µs citm_catalog.json: 1,051 µs canada.json: 2,140 µs jeopardy.json: 87,842 µs minify_json only removes whitespace, without parsing the values">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · minify, checking less 0.80× the time of the fastest fully validating library way: minify_json twitter.json: 234 µs citm_catalog.json: 659 µs canada.json: 1,511 µs jeopardy.json: 48,839 µs minify_json only removes whitespace, without parsing the values">
|
||||
<rect class="nj-heat-0" x="639" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="384" text-anchor="middle">0.69</text>
|
||||
<text class="nj-charts-cell" x="660.5" y="384" text-anchor="middle">0.80</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="397" text-anchor="middle">P</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · write 1.95× the time of the fastest library (fully validating) twitter.json: 396 µs · generic citm_catalog.json: 725 µs · generic (strict) canada.json: 4,107 µs · generic (strict) jeopardy.json: 132,573 µs · generic">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · write 2.19× the time of the fastest library (fully validating) twitter.json: 214 µs · generic citm_catalog.json: 392 µs · generic canada.json: 3,058 µs · generic (strict) jeopardy.json: 75,717 µs · generic">
|
||||
<rect class="nj-heat-2" x="685" y="369" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="390" text-anchor="middle">1.95</text>
|
||||
<text class="nj-charts-cell" x="730" y="390" text-anchor="middle">2.19</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="426" text-anchor="end">RapidJSON</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · validate 5.18× the time of the fastest library (fully validating) twitter.json: 1,798 µs · insitu (copy) citm_catalog.json: 1,944 µs · S​AX (default precision) canada.json: 4,019 µs · S​AX (string stream, default precision) jeopardy.json: 232,684 µs · S​AX (string stream, default precision) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-4" x="225" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="247.5" y="426" text-anchor="middle">5.18</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · validate 4.11× the time of the fastest library (fully validating) twitter.json: 937 µs · S​AX (default precision) citm_catalog.json: 900 µs · S​AX (default precision) canada.json: 2,075 µs · S​AX (string stream, default precision) jeopardy.json: 123,143 µs · S​AX (raw numbers)">
|
||||
<rect class="nj-heat-3" x="225" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="247.5" y="426" text-anchor="middle">4.11</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · validate, checking less 3.77× the time of the fastest fully validating library twitter.json: 1,173 µs · insitu (copy) (no encoding check) citm_catalog.json: 1,504 µs · S​AX (default precision) (no encoding check) canada.json: 4,019 µs · S​AX (string stream, default precision) (validates fully) jeopardy.json: 128,516 µs · S​AX (string stream, default precision) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · validate, checking less 3.28× the time of the fastest fully validating library twitter.json: 623 µs · S​AX (no encoding check) citm_catalog.json: 728 µs · S​AX (default precision) (no encoding check) canada.json: 2,075 µs · S​AX (string stream, default precision) (validates fully) jeopardy.json: 93,128 µs · S​AX (string stream, default precision) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it)">
|
||||
<rect class="nj-heat-3" x="271" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="292.5" y="420" text-anchor="middle">3.77</text>
|
||||
<text class="nj-charts-cell" x="292.5" y="420" text-anchor="middle">3.28</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="292.5" y="433" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · sum 3.25× the time of the fastest library (fully validating) twitter.json: 1,846 µs · insitu (copy) citm_catalog.json: 2,176 µs · S​AX canada.json: 10,561 µs · S​AX (string stream) jeopardy.json: 239,499 µs · S​AX (string stream) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · sum 3.11× the time of the fastest library (fully validating) twitter.json: 977 µs · S​AX citm_catalog.json: 1,025 µs · S​AX canada.json: 6,628 µs · S​AX (string stream) jeopardy.json: 129,798 µs · S​AX">
|
||||
<rect class="nj-heat-3" x="317" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="339.5" y="426" text-anchor="middle">3.25</text>
|
||||
<text class="nj-charts-cell" x="339.5" y="426" text-anchor="middle">3.11</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · sum, checking less 2.40× the time of the fastest fully validating library twitter.json: 1,229 µs · insitu (copy) (no encoding check) citm_catalog.json: 1,761 µs · S​AX (no encoding check) canada.json: 10,561 µs · S​AX (string stream) (validates fully) jeopardy.json: 131,510 µs · S​AX (string stream) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · sum, checking less 2.40× the time of the fastest fully validating library twitter.json: 606 µs · S​AX (no encoding check) citm_catalog.json: 804 µs · S​AX (no encoding check) canada.json: 6,588 µs · S​AX (string stream) (no encoding check) jeopardy.json: 94,996 µs · S​AX (string stream) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it)">
|
||||
<rect class="nj-heat-2" x="363" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="384.5" y="420" text-anchor="middle">2.40</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="384.5" y="433" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · select 4.45× the time of the fastest library (fully validating) way: insitu (copy) twitter.json: 1,806 µs citm_catalog.json: 2,303 µs canada.json: 11,395 µs jeopardy.json: 257,762 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · select 4.58× the time of the fastest library (fully validating) twitter.json: 1,034 µs · Document citm_catalog.json: 1,171 µs · Document canada.json: 5,223 µs · Document (raw numbers) jeopardy.json: 147,421 µs · Document">
|
||||
<rect class="nj-heat-3" x="409" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="431.5" y="426" text-anchor="middle">4.45</text>
|
||||
<text class="nj-charts-cell" x="431.5" y="426" text-anchor="middle">4.58</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · select, checking less 3.45× the time of the fastest fully validating library twitter.json: 1,184 µs · insitu (copy) (no encoding check) citm_catalog.json: 1,929 µs · insitu (copy) (no encoding check) canada.json: 11,261 µs · Document (string stream) (no encoding check) jeopardy.json: 171,716 µs · Document (string stream) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · select, checking less 3.62× the time of the fastest fully validating library twitter.json: 694 µs · Document (no encoding check) citm_catalog.json: 901 µs · Document (no encoding check) canada.json: 5,223 µs · Document (raw numbers) (validates fully) jeopardy.json: 111,804 µs · Document (string stream) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it)">
|
||||
<rect class="nj-heat-3" x="455" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="476.5" y="420" text-anchor="middle">3.45</text>
|
||||
<text class="nj-charts-cell" x="476.5" y="420" text-anchor="middle">3.62</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="476.5" y="433" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · edit 3.16× the time of the fastest library (fully validating) way: insitu (copy) twitter.json: 2,478 µs citm_catalog.json: 3,261 µs canada.json: 21,686 µs jeopardy.json: 378,727 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · edit 3.37× the time of the fastest library (fully validating) twitter.json: 1,344 µs · Document citm_catalog.json: 1,610 µs · Document canada.json: 13,274 µs · Document (string stream) jeopardy.json: 224,631 µs · Document">
|
||||
<rect class="nj-heat-3" x="501" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="523.5" y="426" text-anchor="middle">3.16</text>
|
||||
<text class="nj-charts-cell" x="523.5" y="426" text-anchor="middle">3.37</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · edit, checking less 2.68× the time of the fastest fully validating library twitter.json: 1,842 µs · insitu (copy) (no encoding check) citm_catalog.json: 2,887 µs · insitu (copy) (no encoding check) canada.json: 21,686 µs · insitu (copy) (validates fully) jeopardy.json: 294,727 µs · Document (string stream) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · edit, checking less 2.86× the time of the fastest fully validating library twitter.json: 989 µs · Document (no encoding check) citm_catalog.json: 1,349 µs · Document (no encoding check) canada.json: 13,274 µs · Document (string stream) (validates fully) jeopardy.json: 188,305 µs · Document (string stream) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it)">
|
||||
<rect class="nj-heat-3" x="547" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="568.5" y="420" text-anchor="middle">2.68</text>
|
||||
<text class="nj-charts-cell" x="568.5" y="420" text-anchor="middle">2.86</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="568.5" y="433" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · minify 3.43× the time of the fastest library (fully validating) twitter.json: 2,456 µs · S​AX to Writer citm_catalog.json: 2,864 µs · S​AX to Writer canada.json: 21,753 µs · Document + Writer jeopardy.json: 338,985 µs · S​AX to Writer (string stream)">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · minify 3.68× the time of the fastest library (fully validating) twitter.json: 1,273 µs · S​AX to Writer citm_catalog.json: 1,412 µs · S​AX to Writer canada.json: 13,200 µs · S​AX to Writer (string stream) jeopardy.json: 215,385 µs · Document + Writer">
|
||||
<rect class="nj-heat-3" x="593" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="615.5" y="426" text-anchor="middle">3.43</text>
|
||||
<text class="nj-charts-cell" x="615.5" y="426" text-anchor="middle">3.68</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · minify, checking less 2.57× the time of the fastest fully validating library twitter.json: 1,794 µs · S​AX to Writer (no encoding check) citm_catalog.json: 2,444 µs · S​AX to Writer (no encoding check) canada.json: 14,707 µs · S​AX to Writer (raw numbers) (no encoding check) jeopardy.json: 252,656 µs · S​AX to Writer (string stream) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) copies each number's text instead of formatting it (kParseNumbersAsStringsFlag)">
|
||||
<rect class="nj-heat-3" x="639" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="420" text-anchor="middle">2.57</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · minify, checking less 2.44× the time of the fastest fully validating library twitter.json: 887 µs · S​AX to Writer (no encoding check) citm_catalog.json: 1,141 µs · S​AX to Writer (no encoding check) canada.json: 6,113 µs · S​AX to Writer (raw numbers) (validates fully) jeopardy.json: 159,026 µs · S​AX to Writer (string stream) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) copies each number's text instead of formatting it (kParseNumbersAsStringsFlag)">
|
||||
<rect class="nj-heat-2" x="639" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="420" text-anchor="middle">2.44</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="433" text-anchor="middle">U N</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · write 2.86× the time of the fastest library (fully validating) way: Writer twitter.json: 633 µs citm_catalog.json: 960 µs canada.json: 9,388 µs jeopardy.json: 127,319 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · write 2.94× the time of the fastest library (fully validating) way: Writer twitter.json: 296 µs citm_catalog.json: 454 µs canada.json: 6,485 µs jeopardy.json: 73,086 µs">
|
||||
<rect class="nj-heat-3" x="685" y="405" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="426" text-anchor="middle">2.86</text>
|
||||
<text class="nj-charts-cell" x="730" y="426" text-anchor="middle">2.94</text>
|
||||
</g>
|
||||
<text class="nj-charts-tick nj-charts-tick--l" x="8" y="472">time relative to the fastest fully validating library, less is better</text>
|
||||
<g><rect class="nj-heat-0" x="8" y="482" width="76" height="20" rx="3"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
@@ -1,6 +1,6 @@
|
||||
<svg class="nj-fig nj-charts nj-charts--blog nj-charts--heat" viewBox="0 0 784 510" role="img" aria-labelledby="nj-blog-uc-x86-gcc nj-blog-uc-x86-gcc-d" xmlns="http://www.w3.org/2000/svg">
|
||||
<title id="nj-blog-uc-x86-gcc">Use cases: time of each library relative to the fastest, x86-64 with G​CC 16.2</title>
|
||||
<desc id="nj-blog-uc-x86-gcc-d">Table of relative times, libraries by use case. nlohmann/json json_document validate: 1.00; nlohmann/json json_document sum: 1.10; nlohmann/json json_document select: 1.00; nlohmann/json json_document edit: 1.00 (0.78 doing less, N); nlohmann/json json_document minify: 1.00 (0.78 doing less, N); nlohmann/json json_document write: 1.00 (0.64 doing less, N); yyjson validate: 2.23; yyjson sum: 1.31; yyjson select: 1.37; yyjson edit: 1.43; yyjson minify: 1.24 (0.99 doing less, N); yyjson write: 1.08; sonic-cpp validate: no fully validating way (2.32 doing less, U); sonic-cpp sum: no fully validating way (1.26 doing less, U); sonic-cpp select: no fully validating way (1.43 doing less, U); sonic-cpp edit: no fully validating way (1.18 doing less, U); sonic-cpp minify: no fully validating way (1.33 doing less, U); sonic-cpp write: 1.49; simdjson validate: 2.08; simdjson sum: 1.00; simdjson select: 1.29 (0.55 doing less, P); simdjson edit: n/a; simdjson minify: 1.49 (0.17 doing less, P); simdjson write: 2.09; sonic-rs (Rust) validate: 1.98; sonic-rs (Rust) sum: 1.14; sonic-rs (Rust) select: 1.36; sonic-rs (Rust) edit: 1.87; sonic-rs (Rust) minify: 1.68; sonic-rs (Rust) write: 2.05; Boost.J​SON validate: 1.98; Boost.J​SON sum: 1.29; Boost.J​SON select: 2.21; Boost.J​SON edit: 2.33; Boost.J​SON minify: 2.54; Boost.J​SON write: 2.33; nlohmann/json json validate: 1.69; nlohmann/json json sum: 1.17; nlohmann/json json select: 6.20; nlohmann/json json edit: 3.42; nlohmann/json json minify: 4.07; nlohmann/json json write: 1.84; simd-json (Rust) validate: 3.71; simd-json (Rust) sum: 1.93; simd-json (Rust) select: 2.59; simd-json (Rust) edit: 2.83; simd-json (Rust) minify: 3.30; simd-json (Rust) write: 2.34; serde_json (Rust) validate: 2.46 (2.19 doing less, U); serde_json (Rust) sum: 2.38; serde_json (Rust) select: 1.74; serde_json (Rust) edit: 4.45; serde_json (Rust) minify: 4.80; serde_json (Rust) write: 2.27; RapidJSON validate: 3.86 (3.48 doing less, U); RapidJSON sum: 2.35 (2.15 doing less, U); RapidJSON select: 3.17 (3.02 doing less, U); RapidJSON edit: 2.49 (2.40 doing less, U); RapidJSON minify: 2.58 (2.36 doing less, U N); RapidJSON write: 2.94; Glaze validate: 2.87; Glaze sum: 4.05; Glaze select: 1.71 (0.59 doing less, P); Glaze edit: 4.48; Glaze minify: 4.56 (0.75 doing less, P); Glaze write: 1.96.</desc>
|
||||
<desc id="nj-blog-uc-x86-gcc-d">Table of relative times, libraries by use case. nlohmann/json json_document validate: 1.00; nlohmann/json json_document sum: 1.17; nlohmann/json json_document select: 1.00; nlohmann/json json_document edit: 1.00 (0.80 doing less, N); nlohmann/json json_document minify: 1.00 (0.80 doing less, N); nlohmann/json json_document write: 1.00 (0.65 doing less, N); simdjson validate: 1.40; simdjson sum: 1.00; simdjson select: 1.14 (0.44 doing less, P); simdjson edit: n/a; simdjson minify: 1.52 (0.11 doing less, P); simdjson write: 2.09; yyjson validate: 1.94; yyjson sum: 1.52; yyjson select: 1.51; yyjson edit: 1.63; yyjson minify: 1.41 (1.20 doing less, N); yyjson write: 1.24; sonic-cpp validate: no fully validating way (2.06 doing less, U); sonic-cpp sum: no fully validating way (1.52 doing less, U); sonic-cpp select: no fully validating way (1.65 doing less, U); sonic-cpp edit: no fully validating way (1.36 doing less, U); sonic-cpp minify: no fully validating way (1.52 doing less, U); sonic-cpp write: 1.47; sonic-rs (Rust) validate: 1.71; sonic-rs (Rust) sum: 1.31; sonic-rs (Rust) select: 1.41; sonic-rs (Rust) edit: 2.13; sonic-rs (Rust) minify: 1.81; sonic-rs (Rust) write: 2.03; Boost.J​SON validate: 2.04; Boost.J​SON sum: 1.66; Boost.J​SON select: 2.33; Boost.J​SON edit: 2.31; Boost.J​SON minify: 2.60; Boost.J​SON write: 2.27; nlohmann/json json validate: 1.50; nlohmann/json json sum: 1.29; nlohmann/json json select: 6.84; nlohmann/json json edit: 3.71; nlohmann/json json minify: 4.62; nlohmann/json json write: 2.25; simd-json (Rust) validate: 3.20; simd-json (Rust) sum: 2.32; simd-json (Rust) select: 2.99; simd-json (Rust) edit: 3.37; simd-json (Rust) minify: 3.81; simd-json (Rust) write: 2.57; Glaze validate: 2.21; Glaze sum: 4.47; Glaze select: 1.65 (0.65 doing less, P); Glaze edit: 4.83; Glaze minify: 5.11 (0.87 doing less, P); Glaze write: 2.18; RapidJSON validate: 3.26 (2.77 doing less, U); RapidJSON sum: 2.76 (2.44 doing less, U); RapidJSON select: 3.44 (3.26 doing less, U); RapidJSON edit: 3.00 (2.84 doing less, U); RapidJSON minify: 3.01 (2.25 doing less, U N); RapidJSON write: 3.28; serde_json (Rust) validate: 2.23 (1.87 doing less, U); serde_json (Rust) sum: 2.82; serde_json (Rust) select: 2.03 (1.85 doing less, U); serde_json (Rust) edit: 5.07; serde_json (Rust) minify: 5.37; serde_json (Rust) write: 2.66.</desc>
|
||||
<text class="nj-charts-tick" x="270" y="34">validate</text>
|
||||
<text class="nj-charts-tick" x="362" y="34">sum</text>
|
||||
<text class="nj-charts-tick" x="454" y="34">select</text>
|
||||
@@ -8,354 +8,359 @@
|
||||
<text class="nj-charts-tick" x="638" y="34">minify</text>
|
||||
<text class="nj-charts-tick" x="730" y="34">write</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-name-json" x="216" y="66" text-anchor="end">nlohmann/json json_document</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · validate 1.00× the time of the fastest library (fully validating) way: accept twitter.json: 254 µs citm_catalog.json: 515 µs canada.json: 892 µs jeopardy.json: 33,006 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · validate 1.00× the time of the fastest library (fully validating) way: accept twitter.json: 161 µs citm_catalog.json: 314 µs canada.json: 674 µs jeopardy.json: 23,002 µs">
|
||||
<rect class="nj-heat-0" x="225" y="45" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="66" text-anchor="middle">1.00</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · sum 1.10× the time of the fastest library (fully validating) way: parse twitter.json: 384 µs citm_catalog.json: 1,066 µs canada.json: 3,526 µs jeopardy.json: 88,527 µs">
|
||||
<rect class="nj-heat-0" x="317" y="45" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="66" text-anchor="middle">1.10</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · sum 1.17× the time of the fastest library (fully validating) way: parse twitter.json: 212 µs citm_catalog.json: 527 µs canada.json: 1,865 µs jeopardy.json: 46,072 µs">
|
||||
<rect class="nj-heat-1" x="317" y="45" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="66" text-anchor="middle">1.17</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · select 1.00× the time of the fastest library (fully validating) way: parse twitter.json: 325 µs citm_catalog.json: 863 µs canada.json: 1,302 µs jeopardy.json: 87,940 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · select 1.00× the time of the fastest library (fully validating) twitter.json: 177 µs · structs (from_json) citm_catalog.json: 394 µs · parse canada.json: 699 µs · structs (from_json) jeopardy.json: 46,890 µs · parse">
|
||||
<rect class="nj-heat-0" x="409" y="45" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="66" text-anchor="middle">1.00</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · edit 1.00× the time of the fastest library (fully validating) way: editable twitter.json: 538 µs citm_catalog.json: 1,214 µs canada.json: 5,640 µs jeopardy.json: 193,024 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · edit 1.00× the time of the fastest library (fully validating) way: editable twitter.json: 285 µs citm_catalog.json: 593 µs canada.json: 2,935 µs jeopardy.json: 103,015 µs">
|
||||
<rect class="nj-heat-0" x="501" y="45" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="523.5" y="66" text-anchor="middle">1.00</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · edit, checking less 0.78× the time of the fastest fully validating library twitter.json: 533 µs · editable (source numbers) (validates fully) citm_catalog.json: 1,214 µs · editable (validates fully) canada.json: 2,140 µs · editable (source numbers) (validates fully) jeopardy.json: 193,024 µs · editable (validates fully) copies each number's text instead of formatting it (number_format::source)">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · edit, checking less 0.80× the time of the fastest fully validating library twitter.json: 283 µs · editable (source numbers) (validates fully) citm_catalog.json: 593 µs · editable (validates fully) canada.json: 1,211 µs · editable (source numbers) (validates fully) jeopardy.json: 103,015 µs · editable (validates fully) copies each number's text instead of formatting it (number_format::source)">
|
||||
<rect class="nj-heat-0" x="547" y="45" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="568.5" y="60" text-anchor="middle">0.78</text>
|
||||
<text class="nj-charts-cell" x="568.5" y="60" text-anchor="middle">0.80</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="568.5" y="73" text-anchor="middle">N</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · minify 1.00× the time of the fastest library (fully validating) way: parse + dump twitter.json: 478 µs citm_catalog.json: 1,152 µs canada.json: 5,209 µs jeopardy.json: 152,631 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · minify 1.00× the time of the fastest library (fully validating) way: parse + dump twitter.json: 253 µs citm_catalog.json: 551 µs canada.json: 2,759 µs jeopardy.json: 74,924 µs">
|
||||
<rect class="nj-heat-0" x="593" y="45" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="615.5" y="66" text-anchor="middle">1.00</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · minify, checking less 0.78× the time of the fastest fully validating library way: parse + dump (source numbers) twitter.json: 467 µs (validates fully) citm_catalog.json: 1,118 µs (validates fully) canada.json: 2,150 µs (validates fully) jeopardy.json: 145,664 µs (validates fully) copies each number's text instead of formatting it (number_format::source)">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · minify, checking less 0.80× the time of the fastest fully validating library way: parse + dump (source numbers) twitter.json: 250 µs (validates fully) citm_catalog.json: 537 µs (validates fully) canada.json: 1,186 µs (validates fully) jeopardy.json: 74,197 µs (validates fully) copies each number's text instead of formatting it (number_format::source)">
|
||||
<rect class="nj-heat-0" x="639" y="45" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="60" text-anchor="middle">0.78</text>
|
||||
<text class="nj-charts-cell" x="660.5" y="60" text-anchor="middle">0.80</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="73" text-anchor="middle">N</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · write 1.00× the time of the fastest library (fully validating) way: dump twitter.json: 154 µs citm_catalog.json: 251 µs canada.json: 3,946 µs jeopardy.json: 64,776 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · write 1.00× the time of the fastest library (fully validating) way: dump twitter.json: 79.3 µs citm_catalog.json: 157 µs canada.json: 2,058 µs jeopardy.json: 33,000 µs">
|
||||
<rect class="nj-heat-0" x="685" y="45" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="707.5" y="66" text-anchor="middle">1.00</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · write, checking less 0.64× the time of the fastest fully validating library way: dump (source numbers) twitter.json: 139 µs (validates fully) citm_catalog.json: 229 µs (validates fully) canada.json: 831 µs (validates fully) jeopardy.json: 62,866 µs (validates fully) copies each number's text instead of formatting it (number_format::source)">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · write, checking less 0.65× the time of the fastest fully validating library way: dump (source numbers) twitter.json: 69.8 µs (validates fully) citm_catalog.json: 143 µs (validates fully) canada.json: 467 µs (validates fully) jeopardy.json: 32,463 µs (validates fully) copies each number's text instead of formatting it (number_format::source)">
|
||||
<rect class="nj-heat-0" x="731" y="45" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="752.5" y="60" text-anchor="middle">0.64</text>
|
||||
<text class="nj-charts-cell" x="752.5" y="60" text-anchor="middle">0.65</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="752.5" y="73" text-anchor="middle">N</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="102" text-anchor="end">yyjson</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · validate 2.23× the time of the fastest library (fully validating) twitter.json: 393 µs · read citm_catalog.json: 930 µs · read (raw numbers) canada.json: 2,140 µs · read (raw numbers) jeopardy.json: 122,230 µs · insitu (copy) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-2" x="225" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="102" text-anchor="middle">2.23</text>
|
||||
<text class="nj-charts-rowlabel " x="216" y="102" text-anchor="end">simdjson</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · validate 1.40× the time of the fastest library (fully validating) way: D​OM twitter.json: 124 µs citm_catalog.json: 316 µs canada.json: 1,619 µs jeopardy.json: 48,032 µs">
|
||||
<rect class="nj-heat-1" x="225" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="102" text-anchor="middle">1.40</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · sum 1.31× the time of the fastest library (fully validating) way: read twitter.json: 445 µs citm_catalog.json: 1,093 µs canada.json: 3,948 µs jeopardy.json: 133,860 µs">
|
||||
<rect class="nj-heat-1" x="317" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="102" text-anchor="middle">1.31</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · sum 1.00× the time of the fastest library (fully validating) way: On-Demand twitter.json: 162 µs citm_catalog.json: 413 µs canada.json: 1,841 µs jeopardy.json: 40,935 µs">
|
||||
<rect class="nj-heat-0" x="317" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="102" text-anchor="middle">1.00</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · select 1.37× the time of the fastest library (fully validating) twitter.json: 402 µs · read (raw numbers) citm_catalog.json: 954 µs · read canada.json: 2,127 µs · read (raw numbers) jeopardy.json: 140,491 µs · read">
|
||||
<rect class="nj-heat-1" x="409" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="102" text-anchor="middle">1.37</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · select 1.14× the time of the fastest library (fully validating) way: D​OM twitter.json: 130 µs citm_catalog.json: 324 µs canada.json: 1,622 µs jeopardy.json: 56,255 µs">
|
||||
<rect class="nj-heat-0" x="409" y="81" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="431.5" y="102" text-anchor="middle">1.14</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · edit 1.43× the time of the fastest library (fully validating) twitter.json: 786 µs · mut copy citm_catalog.json: 1,642 µs · insitu (copy) + mut copy canada.json: 7,599 µs · insitu (copy) + mut copy jeopardy.json: 303,303 µs · mut copy (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-1" x="501" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="102" text-anchor="middle">1.43</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · minify 1.24× the time of the fastest library (fully validating) twitter.json: 610 µs · read + write citm_catalog.json: 1,277 µs · read + write canada.json: 6,630 µs · read + write jeopardy.json: 199,086 µs · insitu (copy) + write (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-1" x="593" y="81" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="615.5" y="102" text-anchor="middle">1.24</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · minify, checking less 0.99× the time of the fastest fully validating library twitter.json: 609 µs · read (raw numbers) + write (validates fully) citm_catalog.json: 1,221 µs · read (raw numbers) + write (validates fully) canada.json: 2,860 µs · read (raw numbers) + write (validates fully) jeopardy.json: 199,086 µs · insitu (copy) + write (validates fully) copies each number's text instead of formatting it (YYJSON_READ_NUMBER_AS_RAW) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-0" x="639" y="81" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="96" text-anchor="middle">0.99</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="109" text-anchor="middle">N</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · write 1.08× the time of the fastest library (fully validating) way: write twitter.json: 185 µs citm_catalog.json: 318 µs canada.json: 3,330 µs jeopardy.json: 67,531 µs">
|
||||
<rect class="nj-heat-0" x="685" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="102" text-anchor="middle">1.08</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="138" text-anchor="end">sonic-cpp</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · validate, checking less 2.32× the time of the fastest fully validating library way: Document twitter.json: 404 µs citm_catalog.json: 923 µs canada.json: 3,216 µs jeopardy.json: 93,142 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-2" x="225" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="132" text-anchor="middle">2.32</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="270" y="145" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · sum, checking less 1.26× the time of the fastest fully validating library way: Document twitter.json: 458 µs citm_catalog.json: 1,120 µs canada.json: 3,887 µs jeopardy.json: 107,494 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-1" x="317" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="132" text-anchor="middle">1.26</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="362" y="145" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · select, checking less 1.43× the time of the fastest fully validating library way: Document twitter.json: 408 µs citm_catalog.json: 942 µs canada.json: 3,166 µs jeopardy.json: 110,763 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-1" x="409" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="132" text-anchor="middle">1.43</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="454" y="145" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · edit, checking less 1.18× the time of the fastest fully validating library way: Document twitter.json: 620 µs citm_catalog.json: 1,426 µs canada.json: 8,466 µs jeopardy.json: 181,035 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-1" x="501" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="132" text-anchor="middle">1.18</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="546" y="145" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · minify, checking less 1.33× the time of the fastest fully validating library way: Document + Serialize twitter.json: 636 µs citm_catalog.json: 1,498 µs canada.json: 8,354 µs jeopardy.json: 173,180 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-1" x="593" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="132" text-anchor="middle">1.33</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="638" y="145" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · write 1.49× the time of the fastest library (fully validating) way: Serialize twitter.json: 258 µs citm_catalog.json: 508 µs canada.json: 5,077 µs jeopardy.json: 72,262 µs">
|
||||
<rect class="nj-heat-1" x="685" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="138" text-anchor="middle">1.49</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="174" text-anchor="end">simdjson</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · validate 2.08× the time of the fastest library (fully validating) way: D​OM twitter.json: 297 µs citm_catalog.json: 687 µs canada.json: 3,165 µs jeopardy.json: 111,631 µs">
|
||||
<rect class="nj-heat-2" x="225" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="174" text-anchor="middle">2.08</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · sum 1.00× the time of the fastest library (fully validating) way: On-Demand twitter.json: 344 µs citm_catalog.json: 809 µs canada.json: 3,405 µs jeopardy.json: 90,960 µs">
|
||||
<rect class="nj-heat-0" x="317" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="174" text-anchor="middle">1.00</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · select 1.29× the time of the fastest library (fully validating) way: D​OM twitter.json: 311 µs citm_catalog.json: 698 µs canada.json: 3,141 µs jeopardy.json: 130,228 µs">
|
||||
<rect class="nj-heat-1" x="409" y="153" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="431.5" y="174" text-anchor="middle">1.29</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · select, checking less 0.55× the time of the fastest fully validating library twitter.json: 178 µs · On-Demand citm_catalog.json: 494 µs · On-Demand (key selectors) canada.json: 674 µs · On-Demand jeopardy.json: 48,492 µs · On-Demand reads lazily: On-Demand reads only what you ask for and steps over the rest by matching brackets">
|
||||
<rect class="nj-heat-0" x="455" y="153" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="476.5" y="168" text-anchor="middle">0.55</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="476.5" y="181" text-anchor="middle">P</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · select, checking less 0.44× the time of the fastest fully validating library twitter.json: 72.0 µs · On-Demand citm_catalog.json: 228 µs · On-Demand (key selectors) canada.json: 274 µs · On-Demand jeopardy.json: 19,511 µs · On-Demand reads lazily: On-Demand reads only what you ask for and steps over the rest by matching brackets">
|
||||
<rect class="nj-heat-0" x="455" y="81" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="476.5" y="96" text-anchor="middle">0.44</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="476.5" y="109" text-anchor="middle">P</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · edit simdjson's documents are read-only: it has no A​PI to change a value and write the result">
|
||||
<rect class="nj-heat-na" x="501" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-tick" x="546" y="174">n/a</text>
|
||||
<rect class="nj-heat-na" x="501" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-tick" x="546" y="102">n/a</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · minify 1.49× the time of the fastest library (fully validating) way: D​OM + to_string twitter.json: 666 µs citm_catalog.json: 1,354 µs canada.json: 8,606 µs jeopardy.json: 280,739 µs">
|
||||
<rect class="nj-heat-1" x="593" y="153" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="615.5" y="174" text-anchor="middle">1.49</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · minify 1.52× the time of the fastest library (fully validating) way: D​OM + to_string twitter.json: 312 µs citm_catalog.json: 649 µs canada.json: 5,335 µs jeopardy.json: 141,097 µs">
|
||||
<rect class="nj-heat-2" x="593" y="81" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="615.5" y="102" text-anchor="middle">1.52</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · minify, checking less 0.17× the time of the fastest fully validating library way: minify twitter.json: 93.3 µs citm_catalog.json: 279 µs canada.json: 314 µs jeopardy.json: 46,006 µs simdjson::minify() only removes whitespace, without parsing the values">
|
||||
<rect class="nj-heat-0" x="639" y="153" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="168" text-anchor="middle">0.17</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="181" text-anchor="middle">P</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · minify, checking less 0.11× the time of the fastest fully validating library way: minify twitter.json: 28.4 µs citm_catalog.json: 73.3 µs canada.json: 132 µs jeopardy.json: 18,285 µs simdjson::minify() only removes whitespace, without parsing the values">
|
||||
<rect class="nj-heat-0" x="639" y="81" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="96" text-anchor="middle">0.11</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="109" text-anchor="middle">P</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · write 2.09× the time of the fastest library (fully validating) way: to_string twitter.json: 346 µs citm_catalog.json: 610 µs canada.json: 5,580 µs jeopardy.json: 158,670 µs">
|
||||
<rect class="nj-heat-2" x="685" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="174" text-anchor="middle">2.09</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · write 2.09× the time of the fastest library (fully validating) way: to_string twitter.json: 168 µs citm_catalog.json: 320 µs canada.json: 3,632 µs jeopardy.json: 82,490 µs">
|
||||
<rect class="nj-heat-2" x="685" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="102" text-anchor="middle">2.09</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="138" text-anchor="end">yyjson</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · validate 1.94× the time of the fastest library (fully validating) twitter.json: 201 µs · read citm_catalog.json: 569 µs · read canada.json: 1,479 µs · read (raw numbers) jeopardy.json: 66,298 µs · insitu (copy) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-2" x="225" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="138" text-anchor="middle">1.94</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · sum 1.52× the time of the fastest library (fully validating) twitter.json: 243 µs · insitu (copy) citm_catalog.json: 675 µs · insitu (copy) canada.json: 2,261 µs · read jeopardy.json: 72,368 µs · insitu (copy) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-2" x="317" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="138" text-anchor="middle">1.52</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · select 1.51× the time of the fastest library (fully validating) twitter.json: 197 µs · insitu (copy) citm_catalog.json: 575 µs · insitu (copy) canada.json: 1,470 µs · read (raw numbers) jeopardy.json: 72,154 µs · insitu (copy) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-2" x="409" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="138" text-anchor="middle">1.51</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · edit 1.63× the time of the fastest library (fully validating) twitter.json: 473 µs · insitu (copy) + mut copy citm_catalog.json: 1,030 µs · insitu (copy) + mut copy canada.json: 4,352 µs · mut copy jeopardy.json: 170,778 µs · insitu (copy) + mut copy (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-2" x="501" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="138" text-anchor="middle">1.63</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · minify 1.41× the time of the fastest library (fully validating) twitter.json: 354 µs · read + write citm_catalog.json: 773 µs · read + write canada.json: 3,881 µs · read + write jeopardy.json: 108,260 µs · insitu (copy) + write (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-1" x="593" y="117" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="615.5" y="138" text-anchor="middle">1.41</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · minify, checking less 1.20× the time of the fastest fully validating library twitter.json: 354 µs · read + write (validates fully) citm_catalog.json: 773 µs · read + write (validates fully) canada.json: 2,009 µs · read (raw numbers) + write (validates fully) jeopardy.json: 108,260 µs · insitu (copy) + write (validates fully) copies each number's text instead of formatting it (YYJSON_READ_NUMBER_AS_RAW) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-1" x="639" y="117" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="132" text-anchor="middle">1.20</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="145" text-anchor="middle">N</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · write 1.24× the time of the fastest library (fully validating) way: write twitter.json: 129 µs citm_catalog.json: 193 µs canada.json: 2,025 µs jeopardy.json: 39,462 µs">
|
||||
<rect class="nj-heat-1" x="685" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="138" text-anchor="middle">1.24</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="174" text-anchor="end">sonic-cpp</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · validate, checking less 2.06× the time of the fastest fully validating library way: Document twitter.json: 249 µs citm_catalog.json: 607 µs canada.json: 1,895 µs jeopardy.json: 49,126 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-2" x="225" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="168" text-anchor="middle">2.06</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="270" y="181" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · sum, checking less 1.52× the time of the fastest fully validating library way: Document twitter.json: 287 µs citm_catalog.json: 738 µs canada.json: 2,244 µs jeopardy.json: 56,954 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-2" x="317" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="168" text-anchor="middle">1.52</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="362" y="181" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · select, checking less 1.65× the time of the fastest fully validating library way: Document twitter.json: 252 µs citm_catalog.json: 609 µs canada.json: 1,903 µs jeopardy.json: 57,482 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-2" x="409" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="168" text-anchor="middle">1.65</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="454" y="181" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · edit, checking less 1.36× the time of the fastest fully validating library way: Document twitter.json: 364 µs citm_catalog.json: 903 µs canada.json: 5,172 µs jeopardy.json: 101,668 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-1" x="501" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="168" text-anchor="middle">1.36</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="546" y="181" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · minify, checking less 1.52× the time of the fastest fully validating library way: Document + Serialize twitter.json: 372 µs citm_catalog.json: 904 µs canada.json: 5,165 µs jeopardy.json: 88,729 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-2" x="593" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="168" text-anchor="middle">1.52</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="638" y="181" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · write 1.47× the time of the fastest library (fully validating) way: Serialize twitter.json: 120 µs citm_catalog.json: 298 µs canada.json: 3,275 µs jeopardy.json: 34,116 µs">
|
||||
<rect class="nj-heat-1" x="685" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="174" text-anchor="middle">1.47</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="210" text-anchor="end">sonic-rs (Rust)</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · validate 1.98× the time of the fastest library (fully validating) way: IgnoredAny twitter.json: 501 µs citm_catalog.json: 970 µs canada.json: 2,249 µs jeopardy.json: 54,369 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · validate 1.71× the time of the fastest library (fully validating) twitter.json: 290 µs · Value citm_catalog.json: 548 µs · IgnoredAny canada.json: 1,234 µs · IgnoredAny jeopardy.json: 34,104 µs · IgnoredAny">
|
||||
<rect class="nj-heat-2" x="225" y="189" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="210" text-anchor="middle">1.98</text>
|
||||
<text class="nj-charts-cell" x="270" y="210" text-anchor="middle">1.71</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · sum 1.14× the time of the fastest library (fully validating) way: visitor twitter.json: 501 µs citm_catalog.json: 1,123 µs canada.json: 4,397 µs jeopardy.json: 59,583 µs">
|
||||
<rect class="nj-heat-0" x="317" y="189" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="210" text-anchor="middle">1.14</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · sum 1.31× the time of the fastest library (fully validating) way: visitor twitter.json: 287 µs citm_catalog.json: 604 µs canada.json: 2,643 µs jeopardy.json: 32,088 µs">
|
||||
<rect class="nj-heat-1" x="317" y="189" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="210" text-anchor="middle">1.31</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · select 1.36× the time of the fastest library (fully validating) way: structs twitter.json: 504 µs citm_catalog.json: 1,033 µs canada.json: 2,328 µs jeopardy.json: 90,486 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · select 1.41× the time of the fastest library (fully validating) twitter.json: 294 µs · Value citm_catalog.json: 609 µs · structs canada.json: 1,237 µs · structs jeopardy.json: 40,453 µs · structs">
|
||||
<rect class="nj-heat-1" x="409" y="189" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="210" text-anchor="middle">1.36</text>
|
||||
<text class="nj-charts-cell" x="454" y="210" text-anchor="middle">1.41</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · edit 1.87× the time of the fastest library (fully validating) way: Value twitter.json: 1,197 µs citm_catalog.json: 2,389 µs canada.json: 7,744 µs jeopardy.json: 390,952 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · edit 2.13× the time of the fastest library (fully validating) way: Value twitter.json: 668 µs citm_catalog.json: 1,374 µs canada.json: 4,662 µs jeopardy.json: 246,664 µs">
|
||||
<rect class="nj-heat-2" x="501" y="189" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="210" text-anchor="middle">1.87</text>
|
||||
<text class="nj-charts-cell" x="546" y="210" text-anchor="middle">2.13</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · minify 1.68× the time of the fastest library (fully validating) way: Value twitter.json: 1,000 µs citm_catalog.json: 2,097 µs canada.json: 7,795 µs jeopardy.json: 215,280 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · minify 1.81× the time of the fastest library (fully validating) way: Value twitter.json: 521 µs citm_catalog.json: 1,163 µs canada.json: 4,568 µs jeopardy.json: 112,037 µs">
|
||||
<rect class="nj-heat-2" x="593" y="189" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="210" text-anchor="middle">1.68</text>
|
||||
<text class="nj-charts-cell" x="638" y="210" text-anchor="middle">1.81</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · write 2.05× the time of the fastest library (fully validating) way: Value twitter.json: 434 µs citm_catalog.json: 927 µs canada.json: 3,987 µs jeopardy.json: 109,176 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · write 2.03× the time of the fastest library (fully validating) way: Value twitter.json: 230 µs citm_catalog.json: 515 µs canada.json: 2,458 µs jeopardy.json: 49,042 µs">
|
||||
<rect class="nj-heat-2" x="685" y="189" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="210" text-anchor="middle">2.05</text>
|
||||
<text class="nj-charts-cell" x="730" y="210" text-anchor="middle">2.03</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="246" text-anchor="end">Boost.J​SON</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · validate 1.98× the time of the fastest library (fully validating) way: S​AX (numbers: none) twitter.json: 683 µs citm_catalog.json: 913 µs canada.json: 1,642 µs jeopardy.json: 57,932 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · validate 2.04× the time of the fastest library (fully validating) twitter.json: 451 µs · S​AX citm_catalog.json: 675 µs · S​AX (numbers: none) canada.json: 1,102 µs · S​AX (numbers: none) jeopardy.json: 40,709 µs · S​AX (numbers: none)">
|
||||
<rect class="nj-heat-2" x="225" y="225" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="246" text-anchor="middle">1.98</text>
|
||||
<text class="nj-charts-cell" x="270" y="246" text-anchor="middle">2.04</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · sum 1.29× the time of the fastest library (fully validating) way: S​AX twitter.json: 690 µs citm_catalog.json: 956 µs canada.json: 5,762 µs jeopardy.json: 62,051 µs">
|
||||
<rect class="nj-heat-1" x="317" y="225" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="246" text-anchor="middle">1.29</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · sum 1.66× the time of the fastest library (fully validating) way: S​AX twitter.json: 453 µs citm_catalog.json: 683 µs canada.json: 2,991 µs jeopardy.json: 40,992 µs">
|
||||
<rect class="nj-heat-2" x="317" y="225" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="246" text-anchor="middle">1.66</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · select 2.21× the time of the fastest library (fully validating) twitter.json: 883 µs · parse_into structs citm_catalog.json: 1,286 µs · parse_into structs canada.json: 6,690 µs · parse jeopardy.json: 101,286 µs · parse_into structs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · select 2.33× the time of the fastest library (fully validating) twitter.json: 509 µs · parse_into structs citm_catalog.json: 728 µs · parse_into structs canada.json: 3,345 µs · parse jeopardy.json: 54,057 µs · parse_into structs">
|
||||
<rect class="nj-heat-2" x="409" y="225" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="246" text-anchor="middle">2.21</text>
|
||||
<text class="nj-charts-cell" x="454" y="246" text-anchor="middle">2.33</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · edit 2.33× the time of the fastest library (fully validating) way: parse twitter.json: 1,859 µs citm_catalog.json: 2,513 µs canada.json: 12,765 µs jeopardy.json: 348,703 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · edit 2.31× the time of the fastest library (fully validating) way: parse twitter.json: 970 µs citm_catalog.json: 1,240 µs canada.json: 6,520 µs jeopardy.json: 186,182 µs">
|
||||
<rect class="nj-heat-2" x="501" y="225" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="246" text-anchor="middle">2.33</text>
|
||||
<text class="nj-charts-cell" x="546" y="246" text-anchor="middle">2.31</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · minify 2.54× the time of the fastest library (fully validating) way: parse + serialize twitter.json: 1,783 µs citm_catalog.json: 2,498 µs canada.json: 12,367 µs jeopardy.json: 329,300 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · minify 2.60× the time of the fastest library (fully validating) way: parse + serialize twitter.json: 980 µs citm_catalog.json: 1,226 µs canada.json: 6,526 µs jeopardy.json: 168,104 µs">
|
||||
<rect class="nj-heat-3" x="593" y="225" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="246" text-anchor="middle">2.54</text>
|
||||
<text class="nj-charts-cell" x="638" y="246" text-anchor="middle">2.60</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · write 2.33× the time of the fastest library (fully validating) way: serialize twitter.json: 451 µs citm_catalog.json: 832 µs canada.json: 5,570 µs jeopardy.json: 138,780 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · write 2.27× the time of the fastest library (fully validating) way: serialize twitter.json: 244 µs citm_catalog.json: 408 µs canada.json: 3,162 µs jeopardy.json: 71,417 µs">
|
||||
<rect class="nj-heat-2" x="685" y="225" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="246" text-anchor="middle">2.33</text>
|
||||
<text class="nj-charts-cell" x="730" y="246" text-anchor="middle">2.27</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel nj-charts-name-json" x="216" y="282" text-anchor="end">nlohmann/json json</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · validate 1.69× the time of the fastest library (fully validating) way: accept twitter.json: 370 µs citm_catalog.json: 883 µs canada.json: 2,441 µs jeopardy.json: 39,142 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · validate 1.50× the time of the fastest library (fully validating) way: accept twitter.json: 228 µs citm_catalog.json: 509 µs canada.json: 1,425 µs jeopardy.json: 24,220 µs">
|
||||
<rect class="nj-heat-2" x="225" y="261" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="282" text-anchor="middle">1.69</text>
|
||||
<text class="nj-charts-cell" x="270" y="282" text-anchor="middle">1.50</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · sum 1.17× the time of the fastest library (fully validating) way: sax twitter.json: 533 µs citm_catalog.json: 1,113 µs canada.json: 4,134 µs jeopardy.json: 66,403 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · sum 1.29× the time of the fastest library (fully validating) way: sax twitter.json: 279 µs citm_catalog.json: 603 µs canada.json: 2,154 µs jeopardy.json: 38,169 µs">
|
||||
<rect class="nj-heat-1" x="317" y="261" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="282" text-anchor="middle">1.17</text>
|
||||
<text class="nj-charts-cell" x="362" y="282" text-anchor="middle">1.29</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · select 6.20× the time of the fastest library (fully validating) twitter.json: 2,984 µs · parse citm_catalog.json: 4,548 µs · parse canada.json: 9,124 µs · structs (from_json) jeopardy.json: 383,108 µs · parse">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · select 6.84× the time of the fastest library (fully validating) twitter.json: 1,702 µs · parse citm_catalog.json: 2,626 µs · parse canada.json: 4,787 µs · structs (from_json) jeopardy.json: 233,043 µs · parse">
|
||||
<rect class="nj-heat-4" x="409" y="261" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="282" text-anchor="middle">6.20</text>
|
||||
<text class="nj-charts-cell" x="454" y="282" text-anchor="middle">6.84</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · edit 3.42× the time of the fastest library (fully validating) twitter.json: 2,535 µs · ordered_json citm_catalog.json: 4,484 µs · ordered_json canada.json: 13,526 µs · parse jeopardy.json: 635,912 µs · ordered_json">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · edit 3.71× the time of the fastest library (fully validating) twitter.json: 1,539 µs · ordered_json citm_catalog.json: 2,433 µs · ordered_json canada.json: 7,166 µs · parse jeopardy.json: 360,524 µs · ordered_json">
|
||||
<rect class="nj-heat-3" x="501" y="261" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="282" text-anchor="middle">3.42</text>
|
||||
<text class="nj-charts-cell" x="546" y="282" text-anchor="middle">3.71</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · minify 4.07× the time of the fastest library (fully validating) way: parse + dump twitter.json: 3,369 µs citm_catalog.json: 5,399 µs canada.json: 13,402 µs jeopardy.json: 493,302 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · minify 4.62× the time of the fastest library (fully validating) way: parse + dump twitter.json: 2,075 µs citm_catalog.json: 2,952 µs canada.json: 7,166 µs jeopardy.json: 297,955 µs">
|
||||
<rect class="nj-heat-3" x="593" y="261" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="282" text-anchor="middle">4.07</text>
|
||||
<text class="nj-charts-cell" x="638" y="282" text-anchor="middle">4.62</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · write 1.84× the time of the fastest library (fully validating) way: dump twitter.json: 413 µs citm_catalog.json: 611 µs canada.json: 3,905 µs jeopardy.json: 113,990 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · write 2.25× the time of the fastest library (fully validating) way: dump twitter.json: 305 µs citm_catalog.json: 370 µs canada.json: 2,385 µs jeopardy.json: 80,091 µs">
|
||||
<rect class="nj-heat-2" x="685" y="261" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="282" text-anchor="middle">1.84</text>
|
||||
<text class="nj-charts-cell" x="730" y="282" text-anchor="middle">2.25</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="318" text-anchor="end">simd-json (Rust)</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · validate 3.71× the time of the fastest library (fully validating) way: tape (copy) twitter.json: 567 µs citm_catalog.json: 1,430 µs canada.json: 4,359 µs jeopardy.json: 207,551 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · validate 3.20× the time of the fastest library (fully validating) way: tape (copy) twitter.json: 323 µs citm_catalog.json: 887 µs canada.json: 2,670 µs jeopardy.json: 107,087 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-3" x="225" y="297" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="318" text-anchor="middle">3.71</text>
|
||||
<text class="nj-charts-cell" x="270" y="318" text-anchor="middle">3.20</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · sum 1.93× the time of the fastest library (fully validating) way: visitor (copy) twitter.json: 681 µs citm_catalog.json: 1,650 µs canada.json: 5,083 µs jeopardy.json: 210,185 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · sum 2.32× the time of the fastest library (fully validating) way: visitor (copy) twitter.json: 384 µs citm_catalog.json: 1,021 µs canada.json: 3,151 µs jeopardy.json: 118,952 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-2" x="317" y="297" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="318" text-anchor="middle">1.93</text>
|
||||
<text class="nj-charts-cell" x="362" y="318" text-anchor="middle">2.32</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · select 2.59× the time of the fastest library (fully validating) way: structs (copy) twitter.json: 679 µs citm_catalog.json: 1,731 µs canada.json: 5,144 µs jeopardy.json: 239,164 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · select 2.99× the time of the fastest library (fully validating) way: structs (copy) twitter.json: 401 µs citm_catalog.json: 1,106 µs canada.json: 3,070 µs jeopardy.json: 134,048 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-3" x="409" y="297" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="318" text-anchor="middle">2.59</text>
|
||||
<text class="nj-charts-cell" x="454" y="318" text-anchor="middle">2.99</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · edit 2.83× the time of the fastest library (fully validating) twitter.json: 1,862 µs · borrowed (copy) citm_catalog.json: 4,194 µs · borrowed (copy) canada.json: 14,896 µs · owned (copy) jeopardy.json: 391,369 µs · borrowed (copy) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · edit 3.37× the time of the fastest library (fully validating) way: borrowed (copy) twitter.json: 1,224 µs citm_catalog.json: 2,630 µs canada.json: 8,994 µs jeopardy.json: 226,271 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-3" x="501" y="297" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="318" text-anchor="middle">2.83</text>
|
||||
<text class="nj-charts-cell" x="546" y="318" text-anchor="middle">3.37</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · minify 3.30× the time of the fastest library (fully validating) way: borrowed (copy) twitter.json: 1,889 µs citm_catalog.json: 4,196 µs canada.json: 15,716 µs jeopardy.json: 414,377 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · minify 3.81× the time of the fastest library (fully validating) way: borrowed (copy) twitter.json: 1,194 µs citm_catalog.json: 2,602 µs canada.json: 8,985 µs jeopardy.json: 217,085 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-3" x="593" y="297" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="318" text-anchor="middle">3.30</text>
|
||||
<text class="nj-charts-cell" x="638" y="318" text-anchor="middle">3.81</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · write 2.34× the time of the fastest library (fully validating) way: borrowed twitter.json: 582 µs citm_catalog.json: 800 µs canada.json: 5,147 µs jeopardy.json: 122,623 µs">
|
||||
<rect class="nj-heat-2" x="685" y="297" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="318" text-anchor="middle">2.34</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · write 2.57× the time of the fastest library (fully validating) way: borrowed twitter.json: 390 µs citm_catalog.json: 501 µs canada.json: 3,146 µs jeopardy.json: 59,808 µs">
|
||||
<rect class="nj-heat-3" x="685" y="297" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="318" text-anchor="middle">2.57</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="354" text-anchor="end">serde_json (Rust)</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · validate 2.46× the time of the fastest library (fully validating) way: from_utf8 + IgnoredAny twitter.json: 624 µs citm_catalog.json: 1,440 µs canada.json: 2,406 µs jeopardy.json: 64,720 µs">
|
||||
<rect class="nj-heat-2" x="225" y="333" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="247.5" y="354" text-anchor="middle">2.46</text>
|
||||
<text class="nj-charts-rowlabel " x="216" y="354" text-anchor="end">Glaze</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · validate 2.21× the time of the fastest library (fully validating) way: validate_json twitter.json: 365 µs citm_catalog.json: 819 µs canada.json: 1,368 µs jeopardy.json: 45,611 µs">
|
||||
<rect class="nj-heat-2" x="225" y="333" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="354" text-anchor="middle">2.21</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · validate, checking less 2.19× the time of the fastest fully validating library way: IgnoredAny twitter.json: 484 µs citm_catalog.json: 1,370 µs canada.json: 2,314 µs jeopardy.json: 58,247 µs trusts U​TF-8 in the strings it skips (from_slice); strings it reads are checked">
|
||||
<rect class="nj-heat-2" x="271" y="333" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="292.5" y="348" text-anchor="middle">2.19</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="292.5" y="361" text-anchor="middle">U</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · sum 4.47× the time of the fastest library (fully validating) way: generic (double, strict) twitter.json: 1,307 µs citm_catalog.json: 2,173 µs canada.json: 5,243 µs jeopardy.json: 135,830 µs">
|
||||
<rect class="nj-heat-3" x="317" y="333" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="354" text-anchor="middle">4.47</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · sum 2.38× the time of the fastest library (fully validating) way: visitor twitter.json: 1,311 µs citm_catalog.json: 2,288 µs canada.json: 7,127 µs jeopardy.json: 129,497 µs">
|
||||
<rect class="nj-heat-2" x="317" y="333" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="354" text-anchor="middle">2.38</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · select 1.65× the time of the fastest library (fully validating) way: structs (validate_skipped) twitter.json: 324 µs citm_catalog.json: 836 µs canada.json: 1,337 µs jeopardy.json: 46,893 µs">
|
||||
<rect class="nj-heat-2" x="409" y="333" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="431.5" y="354" text-anchor="middle">1.65</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · select 1.74× the time of the fastest library (fully validating) way: from_utf8 + structs twitter.json: 701 µs citm_catalog.json: 1,532 µs canada.json: 2,529 µs jeopardy.json: 107,316 µs">
|
||||
<rect class="nj-heat-2" x="409" y="333" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="354" text-anchor="middle">1.74</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · select, checking less 0.65× the time of the fastest fully validating library way: structs twitter.json: 210 µs citm_catalog.json: 214 µs canada.json: 263 µs jeopardy.json: 34,599 µs reads into structs and steps over fields it doesn't know without checking them (validate_skipped checks them too)">
|
||||
<rect class="nj-heat-0" x="455" y="333" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="476.5" y="348" text-anchor="middle">0.65</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="476.5" y="361" text-anchor="middle">P</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · edit 4.45× the time of the fastest library (fully validating) way: Value twitter.json: 4,042 µs citm_catalog.json: 6,586 µs canada.json: 16,631 µs jeopardy.json: 632,766 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · edit 4.83× the time of the fastest library (fully validating) way: generic (strict) twitter.json: 1,997 µs citm_catalog.json: 3,422 µs canada.json: 11,754 µs jeopardy.json: 344,348 µs">
|
||||
<rect class="nj-heat-3" x="501" y="333" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="354" text-anchor="middle">4.45</text>
|
||||
<text class="nj-charts-cell" x="546" y="354" text-anchor="middle">4.83</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · minify 4.80× the time of the fastest library (fully validating) way: Value twitter.json: 4,012 µs citm_catalog.json: 6,583 µs canada.json: 17,306 µs jeopardy.json: 509,702 µs">
|
||||
<rect class="nj-heat-3" x="593" y="333" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="354" text-anchor="middle">4.80</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · minify 5.11× the time of the fastest library (fully validating) way: generic (strict) twitter.json: 1,928 µs citm_catalog.json: 3,380 µs canada.json: 11,774 µs jeopardy.json: 256,577 µs">
|
||||
<rect class="nj-heat-4" x="593" y="333" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="615.5" y="354" text-anchor="middle">5.11</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · write 2.27× the time of the fastest library (fully validating) way: Value twitter.json: 550 µs citm_catalog.json: 887 µs canada.json: 4,005 µs jeopardy.json: 134,163 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · minify, checking less 0.87× the time of the fastest fully validating library way: minify_json twitter.json: 259 µs citm_catalog.json: 749 µs canada.json: 1,610 µs jeopardy.json: 51,976 µs minify_json only removes whitespace, without parsing the values">
|
||||
<rect class="nj-heat-0" x="639" y="333" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="348" text-anchor="middle">0.87</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="361" text-anchor="middle">P</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · write 2.18× the time of the fastest library (fully validating) twitter.json: 265 µs · generic citm_catalog.json: 423 µs · generic canada.json: 2,384 µs · generic (strict) jeopardy.json: 72,074 µs · generic">
|
||||
<rect class="nj-heat-2" x="685" y="333" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="354" text-anchor="middle">2.27</text>
|
||||
<text class="nj-charts-cell" x="730" y="354" text-anchor="middle">2.18</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="390" text-anchor="end">RapidJSON</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · validate 3.86× the time of the fastest library (fully validating) twitter.json: 1,215 µs · insitu (copy) citm_catalog.json: 1,550 µs · S​AX (string stream, default precision) canada.json: 3,625 µs · S​AX (string stream, default precision) jeopardy.json: 125,139 µs · S​AX (string stream, default precision) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · validate 3.26× the time of the fastest library (fully validating) twitter.json: 720 µs · insitu (copy) citm_catalog.json: 834 µs · S​AX (string stream, default precision) canada.json: 2,085 µs · S​AX (string stream, default precision) jeopardy.json: 71,142 µs · S​AX (string stream) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-3" x="225" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="247.5" y="390" text-anchor="middle">3.86</text>
|
||||
<text class="nj-charts-cell" x="247.5" y="390" text-anchor="middle">3.26</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · validate, checking less 3.48× the time of the fastest fully validating library twitter.json: 1,052 µs · insitu (copy) (no encoding check) citm_catalog.json: 1,427 µs · S​AX (default precision) (no encoding check) canada.json: 3,625 µs · S​AX (string stream, default precision) (validates fully) jeopardy.json: 104,342 µs · S​AX (string stream) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · validate, checking less 2.77× the time of the fastest fully validating library twitter.json: 527 µs · S​AX (no encoding check) citm_catalog.json: 671 µs · S​AX (default precision) (no encoding check) canada.json: 2,080 µs · S​AX (string stream, default precision) (no encoding check) jeopardy.json: 62,900 µs · S​AX (string stream) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it)">
|
||||
<rect class="nj-heat-3" x="271" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="292.5" y="384" text-anchor="middle">3.48</text>
|
||||
<text class="nj-charts-cell" x="292.5" y="384" text-anchor="middle">2.77</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="292.5" y="397" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · sum 2.35× the time of the fastest library (fully validating) twitter.json: 1,256 µs · insitu (copy) citm_catalog.json: 1,713 µs · S​AX (string stream) canada.json: 9,547 µs · S​AX (string stream) jeopardy.json: 127,564 µs · S​AX (string stream) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-2" x="317" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="339.5" y="390" text-anchor="middle">2.35</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · sum 2.76× the time of the fastest library (fully validating) twitter.json: 768 µs · insitu (copy) citm_catalog.json: 848 µs · S​AX (string stream) canada.json: 6,147 µs · S​AX (string stream) jeopardy.json: 73,302 µs · S​AX (string stream) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-3" x="317" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="339.5" y="390" text-anchor="middle">2.76</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · sum, checking less 2.15× the time of the fastest fully validating library twitter.json: 1,099 µs · insitu (copy) (no encoding check) citm_catalog.json: 1,635 µs · S​AX (string stream) (no encoding check) canada.json: 9,105 µs · S​AX (string stream) (no encoding check) jeopardy.json: 113,500 µs · S​AX (string stream) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · sum, checking less 2.44× the time of the fastest fully validating library twitter.json: 554 µs · S​AX (no encoding check) citm_catalog.json: 769 µs · S​AX (no encoding check) canada.json: 6,147 µs · S​AX (string stream) (validates fully) jeopardy.json: 67,805 µs · S​AX (string stream) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it)">
|
||||
<rect class="nj-heat-2" x="363" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="384.5" y="384" text-anchor="middle">2.15</text>
|
||||
<text class="nj-charts-cell" x="384.5" y="384" text-anchor="middle">2.44</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="384.5" y="397" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · select 3.17× the time of the fastest library (fully validating) twitter.json: 1,217 µs · insitu (copy) citm_catalog.json: 1,807 µs · insitu (copy) canada.json: 9,688 µs · Document (string stream) jeopardy.json: 152,275 µs · Document (string stream) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · select 3.44× the time of the fastest library (fully validating) twitter.json: 731 µs · insitu (copy) citm_catalog.json: 999 µs · Document (string stream) canada.json: 5,153 µs · Document (raw numbers) jeopardy.json: 84,837 µs · Document (string stream) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-3" x="409" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="431.5" y="390" text-anchor="middle">3.17</text>
|
||||
<text class="nj-charts-cell" x="431.5" y="390" text-anchor="middle">3.44</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · select, checking less 3.02× the time of the fastest fully validating library twitter.json: 1,056 µs · insitu (copy) (no encoding check) citm_catalog.json: 1,767 µs · insitu (copy) (no encoding check) canada.json: 9,632 µs · Document (string stream) (no encoding check) jeopardy.json: 148,964 µs · Document (string stream) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · select, checking less 3.26× the time of the fastest fully validating library twitter.json: 635 µs · Document (no encoding check) citm_catalog.json: 948 µs · Document (no encoding check) canada.json: 5,153 µs · Document (raw numbers) (validates fully) jeopardy.json: 83,243 µs · Document (string stream) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it)">
|
||||
<rect class="nj-heat-3" x="455" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="476.5" y="384" text-anchor="middle">3.02</text>
|
||||
<text class="nj-charts-cell" x="476.5" y="384" text-anchor="middle">3.26</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="476.5" y="397" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · edit 2.49× the time of the fastest library (fully validating) twitter.json: 1,896 µs · insitu (copy) citm_catalog.json: 2,754 µs · insitu (copy) canada.json: 19,359 µs · Document (string stream) jeopardy.json: 269,071 µs · Document (string stream) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-2" x="501" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="523.5" y="390" text-anchor="middle">2.49</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · edit 3.00× the time of the fastest library (fully validating) twitter.json: 1,214 µs · insitu (copy) citm_catalog.json: 1,525 µs · insitu (copy) canada.json: 13,209 µs · Document (string stream) jeopardy.json: 169,737 µs · Document (string stream) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-3" x="501" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="523.5" y="390" text-anchor="middle">3.00</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · edit, checking less 2.40× the time of the fastest fully validating library twitter.json: 1,749 µs · insitu (copy) (no encoding check) citm_catalog.json: 2,730 µs · insitu (copy) (no encoding check) canada.json: 19,155 µs · Document (string stream) (no encoding check) jeopardy.json: 259,148 µs · Document (string stream) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-2" x="547" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="568.5" y="384" text-anchor="middle">2.40</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · edit, checking less 2.84× the time of the fastest fully validating library twitter.json: 1,045 µs · Document (no encoding check) citm_catalog.json: 1,444 µs · Document (no encoding check) canada.json: 13,209 µs · Document (string stream) (validates fully) jeopardy.json: 166,376 µs · Document (string stream) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it)">
|
||||
<rect class="nj-heat-3" x="547" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="568.5" y="384" text-anchor="middle">2.84</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="568.5" y="397" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · minify 2.58× the time of the fastest library (fully validating) way: S​AX to Writer (string stream) twitter.json: 1,851 µs citm_catalog.json: 2,429 µs canada.json: 18,810 µs jeopardy.json: 229,769 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · minify 3.01× the time of the fastest library (fully validating) way: S​AX to Writer (string stream) twitter.json: 1,077 µs citm_catalog.json: 1,214 µs canada.json: 12,631 µs jeopardy.json: 142,919 µs">
|
||||
<rect class="nj-heat-3" x="593" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="615.5" y="390" text-anchor="middle">2.58</text>
|
||||
<text class="nj-charts-cell" x="615.5" y="390" text-anchor="middle">3.01</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · minify, checking less 2.36× the time of the fastest fully validating library twitter.json: 1,710 µs · S​AX to Writer (string stream) (no encoding check) citm_catalog.json: 2,429 µs · S​AX to Writer (string stream) (validates fully) canada.json: 14,205 µs · S​AX to Writer (raw numbers) (validates fully) jeopardy.json: 229,769 µs · S​AX to Writer (string stream) (validates fully) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) copies each number's text instead of formatting it (kParseNumbersAsStringsFlag)">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · minify, checking less 2.25× the time of the fastest fully validating library twitter.json: 840 µs · S​AX to Writer (no encoding check) citm_catalog.json: 1,112 µs · S​AX to Writer (no encoding check) canada.json: 5,855 µs · S​AX to Writer (raw numbers) (validates fully) jeopardy.json: 133,903 µs · S​AX to Writer (string stream) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) copies each number's text instead of formatting it (kParseNumbersAsStringsFlag)">
|
||||
<rect class="nj-heat-2" x="639" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="384" text-anchor="middle">2.36</text>
|
||||
<text class="nj-charts-cell" x="660.5" y="384" text-anchor="middle">2.25</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="397" text-anchor="middle">U N</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · write 2.94× the time of the fastest library (fully validating) way: Writer twitter.json: 638 µs citm_catalog.json: 984 µs canada.json: 8,886 µs jeopardy.json: 131,435 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · write 3.28× the time of the fastest library (fully validating) way: Writer twitter.json: 368 µs citm_catalog.json: 500 µs canada.json: 6,527 µs jeopardy.json: 81,166 µs">
|
||||
<rect class="nj-heat-3" x="685" y="369" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="390" text-anchor="middle">2.94</text>
|
||||
<text class="nj-charts-cell" x="730" y="390" text-anchor="middle">3.28</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="426" text-anchor="end">Glaze</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · validate 2.87× the time of the fastest library (fully validating) way: validate_json twitter.json: 705 µs citm_catalog.json: 1,971 µs canada.json: 2,532 µs jeopardy.json: 74,805 µs">
|
||||
<rect class="nj-heat-3" x="225" y="405" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="426" text-anchor="middle">2.87</text>
|
||||
<text class="nj-charts-rowlabel " x="216" y="426" text-anchor="end">serde_json (Rust)</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · validate 2.23× the time of the fastest library (fully validating) way: from_utf8 + IgnoredAny twitter.json: 387 µs citm_catalog.json: 992 µs canada.json: 1,558 µs jeopardy.json: 32,686 µs">
|
||||
<rect class="nj-heat-2" x="225" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="247.5" y="426" text-anchor="middle">2.23</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · sum 4.05× the time of the fastest library (fully validating) way: generic (double, strict) twitter.json: 2,317 µs citm_catalog.json: 4,068 µs canada.json: 10,333 µs jeopardy.json: 237,723 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · validate, checking less 1.87× the time of the fastest fully validating library way: IgnoredAny twitter.json: 258 µs citm_catalog.json: 846 µs canada.json: 1,428 µs jeopardy.json: 30,731 µs trusts U​TF-8 in the strings it skips (from_slice); strings it reads are checked">
|
||||
<rect class="nj-heat-2" x="271" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="292.5" y="420" text-anchor="middle">1.87</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="292.5" y="433" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · sum 2.82× the time of the fastest library (fully validating) way: visitor twitter.json: 772 µs citm_catalog.json: 1,228 µs canada.json: 4,790 µs jeopardy.json: 70,198 µs">
|
||||
<rect class="nj-heat-3" x="317" y="405" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="426" text-anchor="middle">4.05</text>
|
||||
<text class="nj-charts-cell" x="362" y="426" text-anchor="middle">2.82</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · select 1.71× the time of the fastest library (fully validating) way: structs (validate_skipped) twitter.json: 608 µs citm_catalog.json: 1,978 µs canada.json: 2,521 µs jeopardy.json: 90,807 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · select 2.03× the time of the fastest library (fully validating) way: from_utf8 + structs twitter.json: 434 µs citm_catalog.json: 1,055 µs canada.json: 1,560 µs jeopardy.json: 53,880 µs">
|
||||
<rect class="nj-heat-2" x="409" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="431.5" y="426" text-anchor="middle">1.71</text>
|
||||
<text class="nj-charts-cell" x="431.5" y="426" text-anchor="middle">2.03</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · select, checking less 0.59× the time of the fastest fully validating library way: structs twitter.json: 345 µs citm_catalog.json: 401 µs canada.json: 415 µs jeopardy.json: 67,456 µs reads into structs and steps over fields it doesn't know without checking them (validate_skipped checks them too)">
|
||||
<rect class="nj-heat-0" x="455" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="476.5" y="420" text-anchor="middle">0.59</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="476.5" y="433" text-anchor="middle">P</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · select, checking less 1.85× the time of the fastest fully validating library twitter.json: 367 µs · structs citm_catalog.json: 946 µs · structs canada.json: 1,420 µs · structs jeopardy.json: 53,880 µs · from_utf8 + structs (validates fully) trusts U​TF-8 in the strings it skips (from_slice); strings it reads are checked">
|
||||
<rect class="nj-heat-2" x="455" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="476.5" y="420" text-anchor="middle">1.85</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="476.5" y="433" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · edit 4.48× the time of the fastest library (fully validating) way: generic (strict) twitter.json: 3,364 µs citm_catalog.json: 6,036 µs canada.json: 21,592 µs jeopardy.json: 652,302 µs">
|
||||
<rect class="nj-heat-3" x="501" y="405" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="426" text-anchor="middle">4.48</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · edit 5.07× the time of the fastest library (fully validating) way: Value twitter.json: 2,423 µs citm_catalog.json: 3,549 µs canada.json: 10,095 µs jeopardy.json: 389,645 µs">
|
||||
<rect class="nj-heat-4" x="501" y="405" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="426" text-anchor="middle">5.07</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · minify 4.56× the time of the fastest library (fully validating) way: generic (strict) twitter.json: 3,243 µs citm_catalog.json: 6,175 µs canada.json: 20,961 µs jeopardy.json: 451,368 µs">
|
||||
<rect class="nj-heat-3" x="593" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="615.5" y="426" text-anchor="middle">4.56</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · minify 5.37× the time of the fastest library (fully validating) way: Value twitter.json: 2,396 µs citm_catalog.json: 3,633 µs canada.json: 10,095 µs jeopardy.json: 271,504 µs">
|
||||
<rect class="nj-heat-4" x="593" y="405" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="426" text-anchor="middle">5.37</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · minify, checking less 0.75× the time of the fastest fully validating library way: minify_json twitter.json: 417 µs citm_catalog.json: 1,299 µs canada.json: 2,699 µs jeopardy.json: 93,794 µs minify_json only removes whitespace, without parsing the values">
|
||||
<rect class="nj-heat-0" x="639" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="420" text-anchor="middle">0.75</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="433" text-anchor="middle">P</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · write 1.96× the time of the fastest library (fully validating) way: generic twitter.json: 377 µs citm_catalog.json: 730 µs canada.json: 4,050 µs jeopardy.json: 129,720 µs">
|
||||
<rect class="nj-heat-2" x="685" y="405" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="426" text-anchor="middle">1.96</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · write 2.66× the time of the fastest library (fully validating) way: Value twitter.json: 399 µs citm_catalog.json: 590 µs canada.json: 2,432 µs jeopardy.json: 73,863 µs">
|
||||
<rect class="nj-heat-3" x="685" y="405" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="426" text-anchor="middle">2.66</text>
|
||||
</g>
|
||||
<text class="nj-charts-tick nj-charts-tick--l" x="8" y="472">time relative to the fastest fully validating library, less is better</text>
|
||||
<g><rect class="nj-heat-0" x="8" y="482" width="76" height="20" rx="3"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
@@ -1,6 +1,6 @@
|
||||
<svg class="nj-fig nj-charts nj-charts--blog nj-charts--heat" viewBox="0 0 784 510" role="img" aria-labelledby="nj-blog-uc-x86-gcc13 nj-blog-uc-x86-gcc13-d" xmlns="http://www.w3.org/2000/svg">
|
||||
<title id="nj-blog-uc-x86-gcc13">Use cases: time of each library relative to the fastest, x86-64 with G​CC 13</title>
|
||||
<desc id="nj-blog-uc-x86-gcc13-d">Table of relative times, libraries by use case. nlohmann/json json_document validate: 1.00; nlohmann/json json_document sum: 1.10; nlohmann/json json_document select: 1.00; nlohmann/json json_document edit: 1.00 (0.82 doing less, N); nlohmann/json json_document minify: 1.00 (0.81 doing less, N); nlohmann/json json_document write: 1.00 (0.71 doing less, N); yyjson validate: 2.06; yyjson sum: 1.44; yyjson select: 1.37; yyjson edit: 1.57; yyjson minify: 1.37 (1.03 doing less, N); yyjson write: 1.08; sonic-cpp validate: no fully validating way (2.21 doing less, U); sonic-cpp sum: no fully validating way (1.28 doing less, U); sonic-cpp select: no fully validating way (1.48 doing less, U); sonic-cpp edit: no fully validating way (1.22 doing less, U); sonic-cpp minify: no fully validating way (1.40 doing less, U); sonic-cpp write: 1.50; simdjson validate: 1.93; simdjson sum: 1.00; simdjson select: 1.29 (0.56 doing less, P); simdjson edit: n/a; simdjson minify: 1.55 (0.21 doing less, P); simdjson write: 2.09; sonic-rs (Rust) validate: 1.77; sonic-rs (Rust) sum: 1.13; sonic-rs (Rust) select: 1.33; sonic-rs (Rust) edit: 1.86; sonic-rs (Rust) minify: 1.71; sonic-rs (Rust) write: 2.00; Boost.J​SON validate: 1.83; Boost.J​SON sum: 1.30; Boost.J​SON select: 2.23; Boost.J​SON edit: 2.45; Boost.J​SON minify: 2.83; Boost.J​SON write: 2.50; nlohmann/json json validate: 1.34; nlohmann/json json sum: 1.04; nlohmann/json json select: 6.05; nlohmann/json json edit: 3.37; nlohmann/json json minify: 4.13; nlohmann/json json write: 1.85; simd-json (Rust) validate: 3.31; simd-json (Rust) sum: 1.91; simd-json (Rust) select: 2.54; simd-json (Rust) edit: 2.82; simd-json (Rust) minify: 3.35; simd-json (Rust) write: 2.28; serde_json (Rust) validate: 2.19 (1.96 doing less, U); serde_json (Rust) sum: 2.35; serde_json (Rust) select: 1.70; serde_json (Rust) edit: 4.44; serde_json (Rust) minify: 4.88; serde_json (Rust) write: 2.21; Glaze validate: 2.05; Glaze sum: 4.06 (3.93 doing less, P); Glaze select: 1.39 (0.58 doing less, P); Glaze edit: 4.71; Glaze minify: 4.96 (0.70 doing less, P); Glaze write: 1.80; RapidJSON validate: 3.88 (3.36 doing less, U); RapidJSON sum: 2.67 (2.34 doing less, U); RapidJSON select: 3.39 (3.12 doing less, U); RapidJSON edit: 2.65 (2.52 doing less, U); RapidJSON minify: 3.64 (2.61 doing less, U N); RapidJSON write: 2.95.</desc>
|
||||
<desc id="nj-blog-uc-x86-gcc13-d">Table of relative times, libraries by use case. nlohmann/json json_document validate: 1.00; nlohmann/json json_document sum: 1.23; nlohmann/json json_document select: 1.00; nlohmann/json json_document edit: 1.00 (0.82 doing less, N); nlohmann/json json_document minify: 1.00 (0.81 doing less, N); nlohmann/json json_document write: 1.00 (0.67 doing less, N); simdjson validate: 1.43; simdjson sum: 1.00; simdjson select: 1.15 (0.44 doing less, P); simdjson edit: n/a; simdjson minify: 1.48 (0.11 doing less, P); simdjson write: 2.01; yyjson validate: 1.94; yyjson sum: 1.59; yyjson select: 1.50; yyjson edit: 1.67; yyjson minify: 1.38 (1.13 doing less, N); yyjson write: 1.16; sonic-cpp validate: no fully validating way (2.10 doing less, U); sonic-cpp sum: no fully validating way (1.60 doing less, U); sonic-cpp select: no fully validating way (1.65 doing less, U); sonic-cpp edit: no fully validating way (1.39 doing less, U); sonic-cpp minify: no fully validating way (1.56 doing less, U); sonic-cpp write: 1.51; sonic-rs (Rust) validate: 1.69; sonic-rs (Rust) sum: 1.34; sonic-rs (Rust) select: 1.38; sonic-rs (Rust) edit: 2.10; sonic-rs (Rust) minify: 1.78; sonic-rs (Rust) write: 2.01; Boost.J​SON validate: 2.05; Boost.J​SON sum: 1.73; Boost.J​SON select: 2.31; Boost.J​SON edit: 2.43; Boost.J​SON minify: 2.74; Boost.J​SON write: 2.48; nlohmann/json json validate: 1.46; nlohmann/json json sum: 1.25; nlohmann/json json select: 6.68; nlohmann/json json edit: 3.76; nlohmann/json json minify: 4.54; nlohmann/json json write: 2.24; simd-json (Rust) validate: 3.15; simd-json (Rust) sum: 2.39; simd-json (Rust) select: 2.92; simd-json (Rust) edit: 3.32; simd-json (Rust) minify: 3.74; simd-json (Rust) write: 2.54; Glaze validate: 2.09; Glaze sum: 4.93 (4.68 doing less, P); Glaze select: 1.61 (0.64 doing less, P); Glaze edit: 4.93; Glaze minify: 5.22 (0.88 doing less, P); Glaze write: 1.95; serde_json (Rust) validate: 2.20 (1.85 doing less, U); serde_json (Rust) sum: 2.90; serde_json (Rust) select: 1.98 (1.80 doing less, U); serde_json (Rust) edit: 5.00; serde_json (Rust) minify: 5.27; serde_json (Rust) write: 2.63; RapidJSON validate: 4.28 (3.34 doing less, U); RapidJSON sum: 3.85 (2.82 doing less, U); RapidJSON select: 4.37 (3.56 doing less, U); RapidJSON edit: 3.45 (2.95 doing less, U); RapidJSON minify: 3.66 (2.43 doing less, U N); RapidJSON write: 3.21.</desc>
|
||||
<text class="nj-charts-tick" x="270" y="34">validate</text>
|
||||
<text class="nj-charts-tick" x="362" y="34">sum</text>
|
||||
<text class="nj-charts-tick" x="454" y="34">select</text>
|
||||
@@ -8,359 +8,364 @@
|
||||
<text class="nj-charts-tick" x="638" y="34">minify</text>
|
||||
<text class="nj-charts-tick" x="730" y="34">write</text>
|
||||
<text class="nj-charts-rowlabel nj-charts-name-json" x="216" y="66" text-anchor="end">nlohmann/json json_document</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · validate 1.00× the time of the fastest library (fully validating) way: accept twitter.json: 267 µs citm_catalog.json: 664 µs canada.json: 986 µs jeopardy.json: 34,874 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · validate 1.00× the time of the fastest library (fully validating) way: accept twitter.json: 163 µs citm_catalog.json: 317 µs canada.json: 707 µs jeopardy.json: 22,634 µs">
|
||||
<rect class="nj-heat-0" x="225" y="45" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="66" text-anchor="middle">1.00</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · sum 1.10× the time of the fastest library (fully validating) way: parse twitter.json: 387 µs citm_catalog.json: 1,036 µs canada.json: 3,704 µs jeopardy.json: 89,477 µs">
|
||||
<rect class="nj-heat-0" x="317" y="45" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="66" text-anchor="middle">1.10</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · sum 1.23× the time of the fastest library (fully validating) way: parse twitter.json: 212 µs citm_catalog.json: 535 µs canada.json: 1,959 µs jeopardy.json: 46,233 µs">
|
||||
<rect class="nj-heat-1" x="317" y="45" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="66" text-anchor="middle">1.23</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · select 1.00× the time of the fastest library (fully validating) twitter.json: 329 µs · structs (from_json) citm_catalog.json: 855 µs · parse canada.json: 1,360 µs · structs (from_json) jeopardy.json: 90,597 µs · parse">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · select 1.00× the time of the fastest library (fully validating) way: parse twitter.json: 175 µs citm_catalog.json: 411 µs canada.json: 739 µs jeopardy.json: 47,064 µs">
|
||||
<rect class="nj-heat-0" x="409" y="45" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="66" text-anchor="middle">1.00</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · edit 1.00× the time of the fastest library (fully validating) way: editable twitter.json: 530 µs citm_catalog.json: 1,209 µs canada.json: 5,792 µs jeopardy.json: 193,925 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · edit 1.00× the time of the fastest library (fully validating) way: editable twitter.json: 281 µs citm_catalog.json: 610 µs canada.json: 3,060 µs jeopardy.json: 103,192 µs">
|
||||
<rect class="nj-heat-0" x="501" y="45" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="523.5" y="66" text-anchor="middle">1.00</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · edit, checking less 0.82× the time of the fastest fully validating library twitter.json: 530 µs · editable (validates fully) citm_catalog.json: 1,209 µs · editable (validates fully) canada.json: 2,621 µs · editable (source numbers) (validates fully) jeopardy.json: 193,925 µs · editable (validates fully) copies each number's text instead of formatting it (number_format::source)">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · edit, checking less 0.82× the time of the fastest fully validating library twitter.json: 281 µs · editable (validates fully) citm_catalog.json: 610 µs · editable (validates fully) canada.json: 1,387 µs · editable (source numbers) (validates fully) jeopardy.json: 103,192 µs · editable (validates fully) copies each number's text instead of formatting it (number_format::source)">
|
||||
<rect class="nj-heat-0" x="547" y="45" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="568.5" y="60" text-anchor="middle">0.82</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="568.5" y="73" text-anchor="middle">N</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · minify 1.00× the time of the fastest library (fully validating) way: parse + dump twitter.json: 475 µs citm_catalog.json: 1,102 µs canada.json: 5,414 µs jeopardy.json: 144,877 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · minify 1.00× the time of the fastest library (fully validating) way: parse + dump twitter.json: 258 µs citm_catalog.json: 557 µs canada.json: 2,872 µs jeopardy.json: 74,762 µs">
|
||||
<rect class="nj-heat-0" x="593" y="45" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="615.5" y="66" text-anchor="middle">1.00</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · minify, checking less 0.81× the time of the fastest fully validating library twitter.json: 471 µs · parse + dump (source numbers) (validates fully) citm_catalog.json: 1,102 µs · parse + dump (validates fully) canada.json: 2,372 µs · parse + dump (source numbers) (validates fully) jeopardy.json: 144,877 µs · parse + dump (validates fully) copies each number's text instead of formatting it (number_format::source)">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · minify, checking less 0.81× the time of the fastest fully validating library twitter.json: 255 µs · parse + dump (source numbers) (validates fully) citm_catalog.json: 557 µs · parse + dump (validates fully) canada.json: 1,259 µs · parse + dump (source numbers) (validates fully) jeopardy.json: 74,491 µs · parse + dump (source numbers) (validates fully) copies each number's text instead of formatting it (number_format::source)">
|
||||
<rect class="nj-heat-0" x="639" y="45" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="60" text-anchor="middle">0.81</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="73" text-anchor="middle">N</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · write 1.00× the time of the fastest library (fully validating) way: dump twitter.json: 152 µs citm_catalog.json: 260 µs canada.json: 3,811 µs jeopardy.json: 72,196 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · write 1.00× the time of the fastest library (fully validating) way: dump twitter.json: 80.5 µs citm_catalog.json: 158 µs canada.json: 2,124 µs jeopardy.json: 32,579 µs">
|
||||
<rect class="nj-heat-0" x="685" y="45" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="707.5" y="66" text-anchor="middle">1.00</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · write, checking less 0.71× the time of the fastest fully validating library twitter.json: 147 µs · dump (source numbers) (validates fully) citm_catalog.json: 260 µs · dump (validates fully) canada.json: 997 µs · dump (source numbers) (validates fully) jeopardy.json: 71,822 µs · dump (source numbers) (validates fully) copies each number's text instead of formatting it (number_format::source)">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json_document · write, checking less 0.67× the time of the fastest fully validating library twitter.json: 75.2 µs · dump (source numbers) (validates fully) citm_catalog.json: 148 µs · dump (source numbers) (validates fully) canada.json: 498 µs · dump (source numbers) (validates fully) jeopardy.json: 32,579 µs · dump (validates fully) copies each number's text instead of formatting it (number_format::source)">
|
||||
<rect class="nj-heat-0" x="731" y="45" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="752.5" y="60" text-anchor="middle">0.71</text>
|
||||
<text class="nj-charts-cell" x="752.5" y="60" text-anchor="middle">0.67</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="752.5" y="73" text-anchor="middle">N</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="102" text-anchor="end">yyjson</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · validate 2.06× the time of the fastest library (fully validating) twitter.json: 394 µs · insitu (copy) citm_catalog.json: 984 µs · read canada.json: 2,222 µs · read (raw numbers) jeopardy.json: 128,528 µs · insitu (copy) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-2" x="225" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="102" text-anchor="middle">2.06</text>
|
||||
<text class="nj-charts-rowlabel " x="216" y="102" text-anchor="end">simdjson</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · validate 1.43× the time of the fastest library (fully validating) way: D​OM twitter.json: 132 µs citm_catalog.json: 335 µs canada.json: 1,616 µs jeopardy.json: 48,463 µs">
|
||||
<rect class="nj-heat-1" x="225" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="102" text-anchor="middle">1.43</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · sum 1.44× the time of the fastest library (fully validating) twitter.json: 443 µs · insitu (copy) citm_catalog.json: 1,146 µs · insitu (copy) canada.json: 5,974 µs · read jeopardy.json: 129,054 µs · read (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-1" x="317" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="102" text-anchor="middle">1.44</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · sum 1.00× the time of the fastest library (fully validating) way: On-Demand twitter.json: 165 µs citm_catalog.json: 387 µs canada.json: 1,721 µs jeopardy.json: 41,228 µs">
|
||||
<rect class="nj-heat-0" x="317" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="102" text-anchor="middle">1.00</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · select 1.37× the time of the fastest library (fully validating) twitter.json: 397 µs · read citm_catalog.json: 994 µs · insitu (copy) canada.json: 2,228 µs · read (raw numbers) jeopardy.json: 140,073 µs · read (raw numbers) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-1" x="409" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="102" text-anchor="middle">1.37</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · select 1.15× the time of the fastest library (fully validating) way: D​OM twitter.json: 137 µs citm_catalog.json: 343 µs canada.json: 1,616 µs jeopardy.json: 56,960 µs">
|
||||
<rect class="nj-heat-0" x="409" y="81" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="431.5" y="102" text-anchor="middle">1.15</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · edit 1.57× the time of the fastest library (fully validating) twitter.json: 841 µs · insitu (copy) + mut copy citm_catalog.json: 1,719 µs · mut copy canada.json: 9,803 µs · insitu (copy) + mut copy jeopardy.json: 309,935 µs · insitu (copy) + mut copy (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-2" x="501" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="102" text-anchor="middle">1.57</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · minify 1.37× the time of the fastest library (fully validating) twitter.json: 600 µs · insitu (copy) + write citm_catalog.json: 1,316 µs · insitu (copy) + write canada.json: 9,151 µs · read + write jeopardy.json: 201,645 µs · read + write (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-1" x="593" y="81" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="615.5" y="102" text-anchor="middle">1.37</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · minify, checking less 1.03× the time of the fastest fully validating library twitter.json: 600 µs · read (raw numbers) + write (validates fully) citm_catalog.json: 1,264 µs · read (raw numbers) + write (validates fully) canada.json: 2,994 µs · read (raw numbers) + write (validates fully) jeopardy.json: 201,645 µs · read + write (validates fully) copies each number's text instead of formatting it (YYJSON_READ_NUMBER_AS_RAW)">
|
||||
<rect class="nj-heat-0" x="639" y="81" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="96" text-anchor="middle">1.03</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="109" text-anchor="middle">N</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · write 1.08× the time of the fastest library (fully validating) way: write twitter.json: 180 µs citm_catalog.json: 325 µs canada.json: 3,548 µs jeopardy.json: 71,044 µs">
|
||||
<rect class="nj-heat-0" x="685" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="102" text-anchor="middle">1.08</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="138" text-anchor="end">sonic-cpp</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · validate, checking less 2.21× the time of the fastest fully validating library way: Document twitter.json: 409 µs citm_catalog.json: 1,025 µs canada.json: 3,561 µs jeopardy.json: 96,607 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-2" x="225" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="132" text-anchor="middle">2.21</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="270" y="145" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · sum, checking less 1.28× the time of the fastest fully validating library way: Document twitter.json: 459 µs citm_catalog.json: 1,209 µs canada.json: 4,247 µs jeopardy.json: 103,731 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-1" x="317" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="132" text-anchor="middle">1.28</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="362" y="145" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · select, checking less 1.48× the time of the fastest fully validating library way: Document twitter.json: 412 µs citm_catalog.json: 1,044 µs canada.json: 3,632 µs jeopardy.json: 106,188 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-1" x="409" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="132" text-anchor="middle">1.48</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="454" y="145" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · edit, checking less 1.22× the time of the fastest fully validating library way: Document twitter.json: 632 µs citm_catalog.json: 1,583 µs canada.json: 8,734 µs jeopardy.json: 184,592 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-1" x="501" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="132" text-anchor="middle">1.22</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="546" y="145" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · minify, checking less 1.40× the time of the fastest fully validating library way: Document + Serialize twitter.json: 647 µs citm_catalog.json: 1,563 µs canada.json: 8,917 µs jeopardy.json: 176,625 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-1" x="593" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="132" text-anchor="middle">1.40</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="638" y="145" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · write 1.50× the time of the fastest library (fully validating) way: Serialize twitter.json: 268 µs citm_catalog.json: 543 µs canada.json: 5,057 µs jeopardy.json: 75,734 µs">
|
||||
<rect class="nj-heat-2" x="685" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="138" text-anchor="middle">1.50</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="174" text-anchor="end">simdjson</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · validate 1.93× the time of the fastest library (fully validating) way: D​OM twitter.json: 309 µs citm_catalog.json: 737 µs canada.json: 3,183 µs jeopardy.json: 115,296 µs">
|
||||
<rect class="nj-heat-2" x="225" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="174" text-anchor="middle">1.93</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · sum 1.00× the time of the fastest library (fully validating) way: On-Demand twitter.json: 356 µs citm_catalog.json: 819 µs canada.json: 3,291 µs jeopardy.json: 94,267 µs">
|
||||
<rect class="nj-heat-0" x="317" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="174" text-anchor="middle">1.00</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · select 1.29× the time of the fastest library (fully validating) way: D​OM twitter.json: 323 µs citm_catalog.json: 748 µs canada.json: 3,189 µs jeopardy.json: 126,288 µs">
|
||||
<rect class="nj-heat-1" x="409" y="153" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="431.5" y="174" text-anchor="middle">1.29</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · select, checking less 0.56× the time of the fastest fully validating library twitter.json: 186 µs · On-Demand citm_catalog.json: 508 µs · On-Demand canada.json: 707 µs · On-Demand jeopardy.json: 50,215 µs · On-Demand (key selectors) reads lazily: On-Demand reads only what you ask for and steps over the rest by matching brackets">
|
||||
<rect class="nj-heat-0" x="455" y="153" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="476.5" y="168" text-anchor="middle">0.56</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="476.5" y="181" text-anchor="middle">P</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · select, checking less 0.44× the time of the fastest fully validating library twitter.json: 74.2 µs · On-Demand (key selectors) citm_catalog.json: 230 µs · On-Demand (key selectors) canada.json: 278 µs · On-Demand jeopardy.json: 19,882 µs · On-Demand reads lazily: On-Demand reads only what you ask for and steps over the rest by matching brackets">
|
||||
<rect class="nj-heat-0" x="455" y="81" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="476.5" y="96" text-anchor="middle">0.44</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="476.5" y="109" text-anchor="middle">P</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · edit simdjson's documents are read-only: it has no A​PI to change a value and write the result">
|
||||
<rect class="nj-heat-na" x="501" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-tick" x="546" y="174">n/a</text>
|
||||
<rect class="nj-heat-na" x="501" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-tick" x="546" y="102">n/a</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · minify 1.55× the time of the fastest library (fully validating) way: D​OM + to_string twitter.json: 689 µs citm_catalog.json: 1,394 µs canada.json: 8,457 µs jeopardy.json: 292,576 µs">
|
||||
<rect class="nj-heat-2" x="593" y="153" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="615.5" y="174" text-anchor="middle">1.55</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · minify 1.48× the time of the fastest library (fully validating) way: D​OM + to_string twitter.json: 325 µs citm_catalog.json: 669 µs canada.json: 4,935 µs jeopardy.json: 139,695 µs">
|
||||
<rect class="nj-heat-1" x="593" y="81" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="615.5" y="102" text-anchor="middle">1.48</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · minify, checking less 0.21× the time of the fastest fully validating library way: minify twitter.json: 122 µs citm_catalog.json: 336 µs canada.json: 426 µs jeopardy.json: 49,731 µs simdjson::minify() only removes whitespace, without parsing the values">
|
||||
<rect class="nj-heat-0" x="639" y="153" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="168" text-anchor="middle">0.21</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="181" text-anchor="middle">P</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · minify, checking less 0.11× the time of the fastest fully validating library way: minify twitter.json: 28.6 µs citm_catalog.json: 73.4 µs canada.json: 132 µs jeopardy.json: 18,644 µs simdjson::minify() only removes whitespace, without parsing the values">
|
||||
<rect class="nj-heat-0" x="639" y="81" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="96" text-anchor="middle">0.11</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="109" text-anchor="middle">P</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · write 2.09× the time of the fastest library (fully validating) way: to_string twitter.json: 360 µs citm_catalog.json: 636 µs canada.json: 5,363 µs jeopardy.json: 169,032 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simdjson · write 2.01× the time of the fastest library (fully validating) way: to_string twitter.json: 169 µs citm_catalog.json: 323 µs canada.json: 3,239 µs jeopardy.json: 80,814 µs">
|
||||
<rect class="nj-heat-2" x="685" y="81" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="102" text-anchor="middle">2.01</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="138" text-anchor="end">yyjson</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · validate 1.94× the time of the fastest library (fully validating) twitter.json: 213 µs · insitu (copy) citm_catalog.json: 547 µs · read canada.json: 1,476 µs · read (raw numbers) jeopardy.json: 67,966 µs · insitu (copy) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-2" x="225" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="138" text-anchor="middle">1.94</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · sum 1.59× the time of the fastest library (fully validating) twitter.json: 251 µs · insitu (copy) citm_catalog.json: 648 µs · read canada.json: 2,390 µs · read jeopardy.json: 74,294 µs · insitu (copy) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-2" x="317" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="138" text-anchor="middle">1.59</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · select 1.50× the time of the fastest library (fully validating) twitter.json: 211 µs · insitu (copy) citm_catalog.json: 552 µs · read canada.json: 1,480 µs · read (raw numbers) jeopardy.json: 73,477 µs · insitu (copy) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-1" x="409" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="138" text-anchor="middle">1.50</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · edit 1.67× the time of the fastest library (fully validating) twitter.json: 499 µs · insitu (copy) + mut copy citm_catalog.json: 1,013 µs · insitu (copy) + mut copy canada.json: 4,676 µs · insitu (copy) + mut copy jeopardy.json: 177,912 µs · mut copy (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-2" x="501" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="138" text-anchor="middle">1.67</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · minify 1.38× the time of the fastest library (fully validating) twitter.json: 340 µs · read + write citm_catalog.json: 724 µs · insitu (copy) + write canada.json: 4,199 µs · read + write jeopardy.json: 109,351 µs · insitu (copy) + write (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-1" x="593" y="117" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="615.5" y="138" text-anchor="middle">1.38</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · minify, checking less 1.13× the time of the fastest fully validating library twitter.json: 340 µs · read + write (validates fully) citm_catalog.json: 720 µs · read (raw numbers) + write (validates fully) canada.json: 1,912 µs · read (raw numbers) + write (validates fully) jeopardy.json: 109,351 µs · insitu (copy) + write (validates fully) copies each number's text instead of formatting it (YYJSON_READ_NUMBER_AS_RAW) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-0" x="639" y="117" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="132" text-anchor="middle">1.13</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="145" text-anchor="middle">N</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="yyjson · write 1.16× the time of the fastest library (fully validating) way: write twitter.json: 111 µs citm_catalog.json: 167 µs canada.json: 2,183 µs jeopardy.json: 38,692 µs">
|
||||
<rect class="nj-heat-1" x="685" y="117" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="138" text-anchor="middle">1.16</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="174" text-anchor="end">sonic-cpp</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · validate, checking less 2.10× the time of the fastest fully validating library way: Document twitter.json: 260 µs citm_catalog.json: 626 µs canada.json: 1,959 µs jeopardy.json: 50,164 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-2" x="225" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="168" text-anchor="middle">2.10</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="270" y="181" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · sum, checking less 1.60× the time of the fastest fully validating library way: Document twitter.json: 294 µs citm_catalog.json: 746 µs canada.json: 2,339 µs jeopardy.json: 57,826 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-2" x="317" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="168" text-anchor="middle">1.60</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="362" y="181" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · select, checking less 1.65× the time of the fastest fully validating library way: Document twitter.json: 252 µs citm_catalog.json: 636 µs canada.json: 1,969 µs jeopardy.json: 58,807 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-2" x="409" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="168" text-anchor="middle">1.65</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="454" y="181" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · edit, checking less 1.39× the time of the fastest fully validating library way: Document twitter.json: 381 µs citm_catalog.json: 948 µs canada.json: 5,392 µs jeopardy.json: 104,318 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-1" x="501" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="168" text-anchor="middle">1.39</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="546" y="181" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · minify, checking less 1.56× the time of the fastest fully validating library way: Document + Serialize twitter.json: 390 µs citm_catalog.json: 963 µs canada.json: 5,388 µs jeopardy.json: 90,851 µs trusts U​TF-8: sonic-cpp 1.0.2 doesn't check it">
|
||||
<rect class="nj-heat-2" x="593" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="168" text-anchor="middle">1.56</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="638" y="181" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-cpp · write 1.51× the time of the fastest library (fully validating) way: Serialize twitter.json: 131 µs citm_catalog.json: 293 µs canada.json: 3,421 µs jeopardy.json: 34,783 µs">
|
||||
<rect class="nj-heat-2" x="685" y="153" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="174" text-anchor="middle">2.09</text>
|
||||
<text class="nj-charts-cell" x="730" y="174" text-anchor="middle">1.51</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="210" text-anchor="end">sonic-rs (Rust)</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · validate 1.77× the time of the fastest library (fully validating) way: IgnoredAny twitter.json: 501 µs citm_catalog.json: 970 µs canada.json: 2,249 µs jeopardy.json: 54,369 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · validate 1.69× the time of the fastest library (fully validating) twitter.json: 290 µs · Value citm_catalog.json: 548 µs · IgnoredAny canada.json: 1,234 µs · IgnoredAny jeopardy.json: 34,104 µs · IgnoredAny">
|
||||
<rect class="nj-heat-2" x="225" y="189" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="210" text-anchor="middle">1.77</text>
|
||||
<text class="nj-charts-cell" x="270" y="210" text-anchor="middle">1.69</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · sum 1.13× the time of the fastest library (fully validating) way: visitor twitter.json: 501 µs citm_catalog.json: 1,123 µs canada.json: 4,397 µs jeopardy.json: 59,583 µs">
|
||||
<rect class="nj-heat-0" x="317" y="189" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="210" text-anchor="middle">1.13</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · sum 1.34× the time of the fastest library (fully validating) way: visitor twitter.json: 287 µs citm_catalog.json: 604 µs canada.json: 2,643 µs jeopardy.json: 32,088 µs">
|
||||
<rect class="nj-heat-1" x="317" y="189" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="210" text-anchor="middle">1.34</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · select 1.33× the time of the fastest library (fully validating) way: structs twitter.json: 504 µs citm_catalog.json: 1,033 µs canada.json: 2,328 µs jeopardy.json: 90,486 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · select 1.38× the time of the fastest library (fully validating) twitter.json: 294 µs · Value citm_catalog.json: 609 µs · structs canada.json: 1,237 µs · structs jeopardy.json: 40,453 µs · structs">
|
||||
<rect class="nj-heat-1" x="409" y="189" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="210" text-anchor="middle">1.33</text>
|
||||
<text class="nj-charts-cell" x="454" y="210" text-anchor="middle">1.38</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · edit 1.86× the time of the fastest library (fully validating) way: Value twitter.json: 1,197 µs citm_catalog.json: 2,389 µs canada.json: 7,744 µs jeopardy.json: 390,952 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · edit 2.10× the time of the fastest library (fully validating) way: Value twitter.json: 668 µs citm_catalog.json: 1,374 µs canada.json: 4,662 µs jeopardy.json: 246,664 µs">
|
||||
<rect class="nj-heat-2" x="501" y="189" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="210" text-anchor="middle">1.86</text>
|
||||
<text class="nj-charts-cell" x="546" y="210" text-anchor="middle">2.10</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · minify 1.71× the time of the fastest library (fully validating) way: Value twitter.json: 1,000 µs citm_catalog.json: 2,097 µs canada.json: 7,795 µs jeopardy.json: 215,280 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · minify 1.78× the time of the fastest library (fully validating) way: Value twitter.json: 521 µs citm_catalog.json: 1,163 µs canada.json: 4,568 µs jeopardy.json: 112,037 µs">
|
||||
<rect class="nj-heat-2" x="593" y="189" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="210" text-anchor="middle">1.71</text>
|
||||
<text class="nj-charts-cell" x="638" y="210" text-anchor="middle">1.78</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · write 2.00× the time of the fastest library (fully validating) way: Value twitter.json: 434 µs citm_catalog.json: 927 µs canada.json: 3,987 µs jeopardy.json: 109,176 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="sonic-rs (Rust) · write 2.01× the time of the fastest library (fully validating) way: Value twitter.json: 230 µs citm_catalog.json: 515 µs canada.json: 2,458 µs jeopardy.json: 49,042 µs">
|
||||
<rect class="nj-heat-2" x="685" y="189" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="210" text-anchor="middle">2.00</text>
|
||||
<text class="nj-charts-cell" x="730" y="210" text-anchor="middle">2.01</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="246" text-anchor="end">Boost.J​SON</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · validate 1.83× the time of the fastest library (fully validating) twitter.json: 730 µs · S​AX (numbers: none) citm_catalog.json: 934 µs · S​AX (numbers: none) canada.json: 1,637 µs · S​AX (numbers: none) jeopardy.json: 60,745 µs · S​AX">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · validate 2.05× the time of the fastest library (fully validating) twitter.json: 469 µs · S​AX citm_catalog.json: 673 µs · S​AX (numbers: none) canada.json: 1,110 µs · S​AX (numbers: none) jeopardy.json: 41,431 µs · S​AX (numbers: none)">
|
||||
<rect class="nj-heat-2" x="225" y="225" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="246" text-anchor="middle">1.83</text>
|
||||
<text class="nj-charts-cell" x="270" y="246" text-anchor="middle">2.05</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · sum 1.30× the time of the fastest library (fully validating) way: S​AX twitter.json: 746 µs citm_catalog.json: 1,025 µs canada.json: 5,370 µs jeopardy.json: 63,333 µs">
|
||||
<rect class="nj-heat-1" x="317" y="225" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="246" text-anchor="middle">1.30</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · sum 1.73× the time of the fastest library (fully validating) way: S​AX twitter.json: 470 µs citm_catalog.json: 686 µs canada.json: 3,030 µs jeopardy.json: 41,988 µs">
|
||||
<rect class="nj-heat-2" x="317" y="225" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="246" text-anchor="middle">1.73</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · select 2.23× the time of the fastest library (fully validating) twitter.json: 899 µs · parse_into structs citm_catalog.json: 1,353 µs · parse_into structs canada.json: 7,011 µs · parse jeopardy.json: 100,039 µs · parse_into structs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · select 2.31× the time of the fastest library (fully validating) twitter.json: 501 µs · parse_into structs citm_catalog.json: 738 µs · parse_into structs canada.json: 3,510 µs · parse jeopardy.json: 54,976 µs · parse_into structs">
|
||||
<rect class="nj-heat-2" x="409" y="225" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="246" text-anchor="middle">2.23</text>
|
||||
<text class="nj-charts-cell" x="454" y="246" text-anchor="middle">2.31</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · edit 2.45× the time of the fastest library (fully validating) way: parse twitter.json: 1,889 µs citm_catalog.json: 2,952 µs canada.json: 13,537 µs jeopardy.json: 346,542 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · edit 2.43× the time of the fastest library (fully validating) way: parse twitter.json: 1,023 µs citm_catalog.json: 1,414 µs canada.json: 6,793 µs jeopardy.json: 192,570 µs">
|
||||
<rect class="nj-heat-2" x="501" y="225" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="246" text-anchor="middle">2.45</text>
|
||||
<text class="nj-charts-cell" x="546" y="246" text-anchor="middle">2.43</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · minify 2.83× the time of the fastest library (fully validating) way: parse + serialize twitter.json: 1,907 µs citm_catalog.json: 2,950 µs canada.json: 13,662 µs jeopardy.json: 342,183 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · minify 2.74× the time of the fastest library (fully validating) way: parse + serialize twitter.json: 1,043 µs citm_catalog.json: 1,408 µs canada.json: 6,792 µs jeopardy.json: 174,241 µs">
|
||||
<rect class="nj-heat-3" x="593" y="225" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="246" text-anchor="middle">2.83</text>
|
||||
<text class="nj-charts-cell" x="638" y="246" text-anchor="middle">2.74</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · write 2.50× the time of the fastest library (fully validating) way: serialize twitter.json: 474 µs citm_catalog.json: 1,003 µs canada.json: 6,012 µs jeopardy.json: 148,120 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Boost.J​SON · write 2.48× the time of the fastest library (fully validating) way: serialize twitter.json: 261 µs citm_catalog.json: 540 µs canada.json: 3,272 µs jeopardy.json: 71,770 µs">
|
||||
<rect class="nj-heat-2" x="685" y="225" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="246" text-anchor="middle">2.50</text>
|
||||
<text class="nj-charts-cell" x="730" y="246" text-anchor="middle">2.48</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel nj-charts-name-json" x="216" y="282" text-anchor="end">nlohmann/json json</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · validate 1.34× the time of the fastest library (fully validating) way: accept twitter.json: 312 µs citm_catalog.json: 686 µs canada.json: 2,345 µs jeopardy.json: 38,948 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · validate 1.46× the time of the fastest library (fully validating) way: accept twitter.json: 215 µs citm_catalog.json: 464 µs canada.json: 1,527 µs jeopardy.json: 24,556 µs">
|
||||
<rect class="nj-heat-1" x="225" y="261" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="282" text-anchor="middle">1.34</text>
|
||||
<text class="nj-charts-cell" x="270" y="282" text-anchor="middle">1.46</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · sum 1.04× the time of the fastest library (fully validating) way: sax twitter.json: 451 µs citm_catalog.json: 941 µs canada.json: 3,816 µs jeopardy.json: 64,406 µs">
|
||||
<rect class="nj-heat-0" x="317" y="261" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="282" text-anchor="middle">1.04</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · sum 1.25× the time of the fastest library (fully validating) way: sax twitter.json: 252 µs citm_catalog.json: 570 µs canada.json: 2,166 µs jeopardy.json: 35,846 µs">
|
||||
<rect class="nj-heat-1" x="317" y="261" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="282" text-anchor="middle">1.25</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · select 6.05× the time of the fastest library (fully validating) way: parse twitter.json: 3,032 µs citm_catalog.json: 4,466 µs canada.json: 9,085 µs jeopardy.json: 376,812 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · select 6.68× the time of the fastest library (fully validating) twitter.json: 1,692 µs · parse citm_catalog.json: 2,506 µs · parse canada.json: 5,048 µs · structs (from_json) jeopardy.json: 232,140 µs · parse">
|
||||
<rect class="nj-heat-4" x="409" y="261" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="282" text-anchor="middle">6.05</text>
|
||||
<text class="nj-charts-cell" x="454" y="282" text-anchor="middle">6.68</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · edit 3.37× the time of the fastest library (fully validating) twitter.json: 2,503 µs · ordered_json citm_catalog.json: 4,414 µs · ordered_json canada.json: 13,479 µs · parse jeopardy.json: 622,816 µs · ordered_json">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · edit 3.76× the time of the fastest library (fully validating) twitter.json: 1,546 µs · ordered_json citm_catalog.json: 2,561 µs · ordered_json canada.json: 7,456 µs · parse jeopardy.json: 365,109 µs · ordered_json">
|
||||
<rect class="nj-heat-3" x="501" y="261" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="282" text-anchor="middle">3.37</text>
|
||||
<text class="nj-charts-cell" x="546" y="282" text-anchor="middle">3.76</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · minify 4.13× the time of the fastest library (fully validating) way: parse + dump twitter.json: 3,417 µs citm_catalog.json: 5,153 µs canada.json: 13,425 µs jeopardy.json: 504,511 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · minify 4.54× the time of the fastest library (fully validating) way: parse + dump twitter.json: 2,054 µs citm_catalog.json: 2,863 µs canada.json: 7,502 µs jeopardy.json: 296,521 µs">
|
||||
<rect class="nj-heat-3" x="593" y="261" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="282" text-anchor="middle">4.13</text>
|
||||
<text class="nj-charts-cell" x="638" y="282" text-anchor="middle">4.54</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · write 1.85× the time of the fastest library (fully validating) way: dump twitter.json: 413 µs citm_catalog.json: 617 µs canada.json: 4,036 µs jeopardy.json: 124,865 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="nlohmann/json json · write 2.24× the time of the fastest library (fully validating) way: dump twitter.json: 296 µs citm_catalog.json: 380 µs canada.json: 2,451 µs jeopardy.json: 80,667 µs">
|
||||
<rect class="nj-heat-2" x="685" y="261" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="282" text-anchor="middle">1.85</text>
|
||||
<text class="nj-charts-cell" x="730" y="282" text-anchor="middle">2.24</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="318" text-anchor="end">simd-json (Rust)</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · validate 3.31× the time of the fastest library (fully validating) way: tape (copy) twitter.json: 567 µs citm_catalog.json: 1,430 µs canada.json: 4,359 µs jeopardy.json: 207,551 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · validate 3.15× the time of the fastest library (fully validating) way: tape (copy) twitter.json: 323 µs citm_catalog.json: 887 µs canada.json: 2,670 µs jeopardy.json: 107,087 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-3" x="225" y="297" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="318" text-anchor="middle">3.31</text>
|
||||
<text class="nj-charts-cell" x="270" y="318" text-anchor="middle">3.15</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · sum 1.91× the time of the fastest library (fully validating) way: visitor (copy) twitter.json: 681 µs citm_catalog.json: 1,650 µs canada.json: 5,083 µs jeopardy.json: 210,185 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · sum 2.39× the time of the fastest library (fully validating) way: visitor (copy) twitter.json: 384 µs citm_catalog.json: 1,021 µs canada.json: 3,151 µs jeopardy.json: 118,952 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-2" x="317" y="297" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="318" text-anchor="middle">1.91</text>
|
||||
<text class="nj-charts-cell" x="362" y="318" text-anchor="middle">2.39</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · select 2.54× the time of the fastest library (fully validating) way: structs (copy) twitter.json: 679 µs citm_catalog.json: 1,731 µs canada.json: 5,144 µs jeopardy.json: 239,164 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · select 2.92× the time of the fastest library (fully validating) way: structs (copy) twitter.json: 401 µs citm_catalog.json: 1,106 µs canada.json: 3,070 µs jeopardy.json: 134,048 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-3" x="409" y="297" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="318" text-anchor="middle">2.54</text>
|
||||
<text class="nj-charts-cell" x="454" y="318" text-anchor="middle">2.92</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · edit 2.82× the time of the fastest library (fully validating) twitter.json: 1,862 µs · borrowed (copy) citm_catalog.json: 4,194 µs · borrowed (copy) canada.json: 14,896 µs · owned (copy) jeopardy.json: 391,369 µs · borrowed (copy) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · edit 3.32× the time of the fastest library (fully validating) way: borrowed (copy) twitter.json: 1,224 µs citm_catalog.json: 2,630 µs canada.json: 8,994 µs jeopardy.json: 226,271 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-3" x="501" y="297" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="318" text-anchor="middle">2.82</text>
|
||||
<text class="nj-charts-cell" x="546" y="318" text-anchor="middle">3.32</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · minify 3.35× the time of the fastest library (fully validating) way: borrowed (copy) twitter.json: 1,889 µs citm_catalog.json: 4,196 µs canada.json: 15,716 µs jeopardy.json: 414,377 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · minify 3.74× the time of the fastest library (fully validating) way: borrowed (copy) twitter.json: 1,194 µs citm_catalog.json: 2,602 µs canada.json: 8,985 µs jeopardy.json: 217,085 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-3" x="593" y="297" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="318" text-anchor="middle">3.35</text>
|
||||
<text class="nj-charts-cell" x="638" y="318" text-anchor="middle">3.74</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · write 2.28× the time of the fastest library (fully validating) way: borrowed twitter.json: 582 µs citm_catalog.json: 800 µs canada.json: 5,147 µs jeopardy.json: 122,623 µs">
|
||||
<rect class="nj-heat-2" x="685" y="297" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="318" text-anchor="middle">2.28</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="simd-json (Rust) · write 2.54× the time of the fastest library (fully validating) way: borrowed twitter.json: 390 µs citm_catalog.json: 501 µs canada.json: 3,146 µs jeopardy.json: 59,808 µs">
|
||||
<rect class="nj-heat-3" x="685" y="297" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="318" text-anchor="middle">2.54</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="354" text-anchor="end">serde_json (Rust)</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · validate 2.19× the time of the fastest library (fully validating) way: from_utf8 + IgnoredAny twitter.json: 624 µs citm_catalog.json: 1,440 µs canada.json: 2,406 µs jeopardy.json: 64,720 µs">
|
||||
<rect class="nj-heat-2" x="225" y="333" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="247.5" y="354" text-anchor="middle">2.19</text>
|
||||
<text class="nj-charts-rowlabel " x="216" y="354" text-anchor="end">Glaze</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · validate 2.09× the time of the fastest library (fully validating) way: validate_json twitter.json: 337 µs citm_catalog.json: 830 µs canada.json: 1,204 µs jeopardy.json: 47,033 µs">
|
||||
<rect class="nj-heat-2" x="225" y="333" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="354" text-anchor="middle">2.09</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · validate, checking less 1.96× the time of the fastest fully validating library way: IgnoredAny twitter.json: 484 µs citm_catalog.json: 1,370 µs canada.json: 2,314 µs jeopardy.json: 58,247 µs trusts U​TF-8 in the strings it skips (from_slice); strings it reads are checked">
|
||||
<rect class="nj-heat-2" x="271" y="333" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="292.5" y="348" text-anchor="middle">1.96</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="292.5" y="361" text-anchor="middle">U</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · sum 4.93× the time of the fastest library (fully validating) way: generic (double, strict) twitter.json: 1,381 µs citm_catalog.json: 2,416 µs canada.json: 5,536 µs jeopardy.json: 145,097 µs">
|
||||
<rect class="nj-heat-3" x="317" y="333" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="339.5" y="354" text-anchor="middle">4.93</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · sum 2.35× the time of the fastest library (fully validating) way: visitor twitter.json: 1,311 µs citm_catalog.json: 2,288 µs canada.json: 7,127 µs jeopardy.json: 129,497 µs">
|
||||
<rect class="nj-heat-2" x="317" y="333" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="354" text-anchor="middle">2.35</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · sum, checking less 4.68× the time of the fastest fully validating library twitter.json: 1,301 µs · generic (double) citm_catalog.json: 2,270 µs · generic (double) canada.json: 5,410 µs · generic (double) jeopardy.json: 136,554 µs · lazy_json accepts trailing garbage after the value: Glaze's default (validate_trailing_whitespace checks it) reads lazily: lazy_json reads only what you ask for and steps over the rest">
|
||||
<rect class="nj-heat-3" x="363" y="333" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="384.5" y="348" text-anchor="middle">4.68</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="384.5" y="361" text-anchor="middle">P</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · select 1.70× the time of the fastest library (fully validating) way: from_utf8 + structs twitter.json: 701 µs citm_catalog.json: 1,532 µs canada.json: 2,529 µs jeopardy.json: 107,316 µs">
|
||||
<rect class="nj-heat-2" x="409" y="333" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="454" y="354" text-anchor="middle">1.70</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · select 1.61× the time of the fastest library (fully validating) way: structs (validate_skipped) twitter.json: 325 µs citm_catalog.json: 955 µs canada.json: 1,134 µs jeopardy.json: 47,661 µs">
|
||||
<rect class="nj-heat-2" x="409" y="333" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="431.5" y="354" text-anchor="middle">1.61</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · edit 4.44× the time of the fastest library (fully validating) way: Value twitter.json: 4,042 µs citm_catalog.json: 6,586 µs canada.json: 16,631 µs jeopardy.json: 632,766 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · select, checking less 0.64× the time of the fastest fully validating library way: structs twitter.json: 205 µs citm_catalog.json: 224 µs canada.json: 262 µs jeopardy.json: 34,634 µs reads into structs and steps over fields it doesn't know without checking them (validate_skipped checks them too)">
|
||||
<rect class="nj-heat-0" x="455" y="333" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="476.5" y="348" text-anchor="middle">0.64</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="476.5" y="361" text-anchor="middle">P</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · edit 4.93× the time of the fastest library (fully validating) way: generic (strict) twitter.json: 2,007 µs citm_catalog.json: 3,558 µs canada.json: 12,681 µs jeopardy.json: 352,094 µs">
|
||||
<rect class="nj-heat-3" x="501" y="333" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="354" text-anchor="middle">4.44</text>
|
||||
<text class="nj-charts-cell" x="546" y="354" text-anchor="middle">4.93</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · minify 4.88× the time of the fastest library (fully validating) way: Value twitter.json: 4,012 µs citm_catalog.json: 6,583 µs canada.json: 17,306 µs jeopardy.json: 509,702 µs">
|
||||
<rect class="nj-heat-3" x="593" y="333" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="354" text-anchor="middle">4.88</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · minify 5.22× the time of the fastest library (fully validating) way: generic (strict) twitter.json: 1,953 µs citm_catalog.json: 3,499 µs canada.json: 12,670 µs jeopardy.json: 264,336 µs">
|
||||
<rect class="nj-heat-4" x="593" y="333" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="615.5" y="354" text-anchor="middle">5.22</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · write 2.21× the time of the fastest library (fully validating) way: Value twitter.json: 550 µs citm_catalog.json: 887 µs canada.json: 4,005 µs jeopardy.json: 134,163 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · minify, checking less 0.88× the time of the fastest fully validating library way: minify_json twitter.json: 280 µs citm_catalog.json: 826 µs canada.json: 1,492 µs jeopardy.json: 53,780 µs minify_json only removes whitespace, without parsing the values">
|
||||
<rect class="nj-heat-0" x="639" y="333" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="348" text-anchor="middle">0.88</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="361" text-anchor="middle">P</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · write 1.95× the time of the fastest library (fully validating) way: generic twitter.json: 193 µs citm_catalog.json: 388 µs canada.json: 2,334 µs jeopardy.json: 73,274 µs">
|
||||
<rect class="nj-heat-2" x="685" y="333" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="354" text-anchor="middle">2.21</text>
|
||||
<text class="nj-charts-cell" x="730" y="354" text-anchor="middle">1.95</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="390" text-anchor="end">Glaze</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · validate 2.05× the time of the fastest library (fully validating) way: validate_json twitter.json: 584 µs citm_catalog.json: 1,402 µs canada.json: 1,837 µs jeopardy.json: 71,382 µs">
|
||||
<rect class="nj-heat-2" x="225" y="369" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="270" y="390" text-anchor="middle">2.05</text>
|
||||
<text class="nj-charts-rowlabel " x="216" y="390" text-anchor="end">serde_json (Rust)</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · validate 2.20× the time of the fastest library (fully validating) way: from_utf8 + IgnoredAny twitter.json: 387 µs citm_catalog.json: 992 µs canada.json: 1,558 µs jeopardy.json: 32,686 µs">
|
||||
<rect class="nj-heat-2" x="225" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="247.5" y="390" text-anchor="middle">2.20</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · sum 4.06× the time of the fastest library (fully validating) way: generic (double, strict) twitter.json: 2,341 µs citm_catalog.json: 4,037 µs canada.json: 10,434 µs jeopardy.json: 249,828 µs">
|
||||
<rect class="nj-heat-3" x="317" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="339.5" y="390" text-anchor="middle">4.06</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · validate, checking less 1.85× the time of the fastest fully validating library way: IgnoredAny twitter.json: 258 µs citm_catalog.json: 846 µs canada.json: 1,428 µs jeopardy.json: 30,731 µs trusts U​TF-8 in the strings it skips (from_slice); strings it reads are checked">
|
||||
<rect class="nj-heat-2" x="271" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="292.5" y="384" text-anchor="middle">1.85</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="292.5" y="397" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · sum, checking less 3.93× the time of the fastest fully validating library twitter.json: 2,341 µs · generic (double, strict) (validates fully) citm_catalog.json: 4,037 µs · generic (double, strict) (validates fully) canada.json: 10,434 µs · generic (double, strict) (validates fully) jeopardy.json: 219,119 µs · lazy_json reads lazily: lazy_json reads only what you ask for and steps over the rest">
|
||||
<rect class="nj-heat-3" x="363" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="384.5" y="384" text-anchor="middle">3.93</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="384.5" y="397" text-anchor="middle">P</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · sum 2.90× the time of the fastest library (fully validating) way: visitor twitter.json: 772 µs citm_catalog.json: 1,228 µs canada.json: 4,790 µs jeopardy.json: 70,198 µs">
|
||||
<rect class="nj-heat-3" x="317" y="369" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="362" y="390" text-anchor="middle">2.90</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · select 1.39× the time of the fastest library (fully validating) way: structs (validate_skipped) twitter.json: 523 µs citm_catalog.json: 1,473 µs canada.json: 1,853 µs jeopardy.json: 89,506 µs">
|
||||
<rect class="nj-heat-1" x="409" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="431.5" y="390" text-anchor="middle">1.39</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · select 1.98× the time of the fastest library (fully validating) way: from_utf8 + structs twitter.json: 434 µs citm_catalog.json: 1,055 µs canada.json: 1,560 µs jeopardy.json: 53,880 µs">
|
||||
<rect class="nj-heat-2" x="409" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="431.5" y="390" text-anchor="middle">1.98</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · select, checking less 0.58× the time of the fastest fully validating library way: structs twitter.json: 338 µs citm_catalog.json: 406 µs canada.json: 434 µs jeopardy.json: 66,029 µs reads into structs and steps over fields it doesn't know without checking them (validate_skipped checks them too)">
|
||||
<rect class="nj-heat-0" x="455" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="476.5" y="384" text-anchor="middle">0.58</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="476.5" y="397" text-anchor="middle">P</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · select, checking less 1.80× the time of the fastest fully validating library twitter.json: 367 µs · structs citm_catalog.json: 946 µs · structs canada.json: 1,420 µs · structs jeopardy.json: 53,880 µs · from_utf8 + structs (validates fully) trusts U​TF-8 in the strings it skips (from_slice); strings it reads are checked">
|
||||
<rect class="nj-heat-2" x="455" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="476.5" y="384" text-anchor="middle">1.80</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="476.5" y="397" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · edit 4.71× the time of the fastest library (fully validating) way: generic (strict) twitter.json: 3,474 µs citm_catalog.json: 6,531 µs canada.json: 23,193 µs jeopardy.json: 673,526 µs">
|
||||
<rect class="nj-heat-3" x="501" y="369" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="390" text-anchor="middle">4.71</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · edit 5.00× the time of the fastest library (fully validating) way: Value twitter.json: 2,423 µs citm_catalog.json: 3,549 µs canada.json: 10,095 µs jeopardy.json: 389,645 µs">
|
||||
<rect class="nj-heat-4" x="501" y="369" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="546" y="390" text-anchor="middle">5.00</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · minify 4.96× the time of the fastest library (fully validating) way: generic (strict) twitter.json: 3,359 µs citm_catalog.json: 6,437 µs canada.json: 23,896 µs jeopardy.json: 480,814 µs">
|
||||
<rect class="nj-heat-3" x="593" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="615.5" y="390" text-anchor="middle">4.96</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · minify 5.27× the time of the fastest library (fully validating) way: Value twitter.json: 2,396 µs citm_catalog.json: 3,633 µs canada.json: 10,095 µs jeopardy.json: 271,504 µs">
|
||||
<rect class="nj-heat-4" x="593" y="369" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="638" y="390" text-anchor="middle">5.27</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · minify, checking less 0.70× the time of the fastest fully validating library way: minify_json twitter.json: 417 µs citm_catalog.json: 1,116 µs canada.json: 2,113 µs jeopardy.json: 97,812 µs minify_json only removes whitespace, without parsing the values">
|
||||
<rect class="nj-heat-0" x="639" y="369" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="384" text-anchor="middle">0.70</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="397" text-anchor="middle">P</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="Glaze · write 1.80× the time of the fastest library (fully validating) way: generic twitter.json: 336 µs citm_catalog.json: 682 µs canada.json: 3,750 µs jeopardy.json: 133,730 µs">
|
||||
<rect class="nj-heat-2" x="685" y="369" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="390" text-anchor="middle">1.80</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="serde_json (Rust) · write 2.63× the time of the fastest library (fully validating) way: Value twitter.json: 399 µs citm_catalog.json: 590 µs canada.json: 2,432 µs jeopardy.json: 73,863 µs">
|
||||
<rect class="nj-heat-3" x="685" y="369" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="390" text-anchor="middle">2.63</text>
|
||||
</g>
|
||||
<text class="nj-charts-rowlabel " x="216" y="426" text-anchor="end">RapidJSON</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · validate 3.88× the time of the fastest library (fully validating) twitter.json: 1,201 µs · insitu (copy) citm_catalog.json: 1,931 µs · insitu (copy) canada.json: 4,114 µs · S​AX (string stream, default precision) jeopardy.json: 145,137 µs · insitu (copy) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · validate 4.28× the time of the fastest library (fully validating) twitter.json: 951 µs · insitu (copy) citm_catalog.json: 959 µs · S​AX (default precision) canada.json: 2,406 µs · S​AX (default precision) jeopardy.json: 126,804 µs · S​AX (string stream) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-3" x="225" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="247.5" y="426" text-anchor="middle">3.88</text>
|
||||
<text class="nj-charts-cell" x="247.5" y="426" text-anchor="middle">4.28</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · validate, checking less 3.36× the time of the fastest fully validating library twitter.json: 1,033 µs · insitu (copy) (no encoding check) citm_catalog.json: 1,487 µs · S​AX (default precision) (no encoding check) canada.json: 3,966 µs · S​AX (string stream, default precision) (no encoding check) jeopardy.json: 127,587 µs · S​AX (string stream) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · validate, checking less 3.34× the time of the fastest fully validating library twitter.json: 637 µs · S​AX (raw numbers) (no encoding check) citm_catalog.json: 742 µs · S​AX (default precision) (no encoding check) canada.json: 2,406 µs · S​AX (default precision) (validates fully) jeopardy.json: 90,124 µs · S​AX (string stream) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it)">
|
||||
<rect class="nj-heat-3" x="271" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="292.5" y="420" text-anchor="middle">3.36</text>
|
||||
<text class="nj-charts-cell" x="292.5" y="420" text-anchor="middle">3.34</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="292.5" y="433" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · sum 2.67× the time of the fastest library (fully validating) twitter.json: 1,256 µs · insitu (copy) citm_catalog.json: 2,114 µs · insitu (copy) canada.json: 11,059 µs · S​AX (string stream) jeopardy.json: 155,532 µs · insitu (copy) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · sum 3.85× the time of the fastest library (fully validating) twitter.json: 1,007 µs · insitu (copy) citm_catalog.json: 1,091 µs · S​AX canada.json: 6,884 µs · S​AX (string stream) jeopardy.json: 132,180 µs · S​AX (string stream) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-3" x="317" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="339.5" y="426" text-anchor="middle">2.67</text>
|
||||
<text class="nj-charts-cell" x="339.5" y="426" text-anchor="middle">3.85</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · sum, checking less 2.34× the time of the fastest fully validating library twitter.json: 1,085 µs · insitu (copy) (no encoding check) citm_catalog.json: 1,750 µs · S​AX (no encoding check) canada.json: 11,008 µs · S​AX (string stream) (no encoding check) jeopardy.json: 128,734 µs · S​AX (string stream) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-2" x="363" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="384.5" y="420" text-anchor="middle">2.34</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · sum, checking less 2.82× the time of the fastest fully validating library twitter.json: 621 µs · S​AX (no encoding check) citm_catalog.json: 810 µs · S​AX (no encoding check) canada.json: 6,838 µs · S​AX (string stream) (no encoding check) jeopardy.json: 83,148 µs · S​AX (string stream) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it)">
|
||||
<rect class="nj-heat-3" x="363" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="384.5" y="420" text-anchor="middle">2.82</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="384.5" y="433" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · select 3.39× the time of the fastest library (fully validating) way: insitu (copy) twitter.json: 1,207 µs citm_catalog.json: 1,947 µs canada.json: 11,910 µs jeopardy.json: 164,386 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · select 4.37× the time of the fastest library (fully validating) twitter.json: 972 µs · insitu (copy) citm_catalog.json: 1,210 µs · insitu (copy) canada.json: 5,602 µs · Document (raw numbers) jeopardy.json: 138,557 µs · insitu (copy) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-3" x="409" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="431.5" y="426" text-anchor="middle">3.39</text>
|
||||
<text class="nj-charts-cell" x="431.5" y="426" text-anchor="middle">4.37</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · select, checking less 3.12× the time of the fastest fully validating library twitter.json: 1,037 µs · insitu (copy) (no encoding check) citm_catalog.json: 1,847 µs · insitu (copy) (no encoding check) canada.json: 11,692 µs · Document (no encoding check) jeopardy.json: 147,489 µs · insitu (copy) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · select, checking less 3.56× the time of the fastest fully validating library twitter.json: 731 µs · Document (no encoding check) citm_catalog.json: 988 µs · Document (no encoding check) canada.json: 5,602 µs · Document (raw numbers) (validates fully) jeopardy.json: 98,816 µs · insitu (copy) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-3" x="455" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="476.5" y="420" text-anchor="middle">3.12</text>
|
||||
<text class="nj-charts-cell" x="476.5" y="420" text-anchor="middle">3.56</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="476.5" y="433" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · edit 2.65× the time of the fastest library (fully validating) way: insitu (copy) twitter.json: 1,920 µs citm_catalog.json: 2,977 µs canada.json: 21,152 µs jeopardy.json: 293,851 µs (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · edit 3.45× the time of the fastest library (fully validating) twitter.json: 1,469 µs · insitu (copy) citm_catalog.json: 1,708 µs · insitu (copy) canada.json: 13,755 µs · Document (string stream) jeopardy.json: 223,070 µs · insitu (copy) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-3" x="501" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="523.5" y="426" text-anchor="middle">2.65</text>
|
||||
<text class="nj-charts-cell" x="523.5" y="426" text-anchor="middle">3.45</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · edit, checking less 2.52× the time of the fastest fully validating library twitter.json: 1,747 µs · insitu (copy) (no encoding check) citm_catalog.json: 2,823 µs · insitu (copy) (no encoding check) canada.json: 20,998 µs · Document (no encoding check) jeopardy.json: 280,165 µs · insitu (copy) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · edit, checking less 2.95× the time of the fastest fully validating library twitter.json: 1,094 µs · Document (no encoding check) citm_catalog.json: 1,486 µs · Document (no encoding check) canada.json: 13,755 µs · Document (string stream) (validates fully) jeopardy.json: 183,792 µs · insitu (copy) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) (copy): parses in place, on a copy of the input that is part of the time">
|
||||
<rect class="nj-heat-3" x="547" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="568.5" y="420" text-anchor="middle">2.52</text>
|
||||
<text class="nj-charts-cell" x="568.5" y="420" text-anchor="middle">2.95</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="568.5" y="433" text-anchor="middle">U</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · minify 3.64× the time of the fastest library (fully validating) twitter.json: 2,746 µs · S​AX to Writer (string stream) citm_catalog.json: 3,162 µs · S​AX to Writer (string stream) canada.json: 21,674 µs · S​AX to Writer jeopardy.json: 381,832 µs · S​AX to Writer (string stream)">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · minify 3.66× the time of the fastest library (fully validating) twitter.json: 1,389 µs · S​AX to Writer citm_catalog.json: 1,464 µs · S​AX to Writer canada.json: 13,219 µs · S​AX to Writer (string stream) jeopardy.json: 204,970 µs · S​AX to Writer (string stream)">
|
||||
<rect class="nj-heat-3" x="593" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="615.5" y="426" text-anchor="middle">3.64</text>
|
||||
<text class="nj-charts-cell" x="615.5" y="426" text-anchor="middle">3.66</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · minify, checking less 2.61× the time of the fastest fully validating library twitter.json: 1,824 µs · S​AX to Writer (string stream) (no encoding check) citm_catalog.json: 2,672 µs · S​AX to Writer (string stream) (no encoding check) canada.json: 15,166 µs · S​AX to Writer (raw numbers) (no encoding check) jeopardy.json: 259,100 µs · S​AX to Writer (string stream) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) copies each number's text instead of formatting it (kParseNumbersAsStringsFlag)">
|
||||
<rect class="nj-heat-3" x="639" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="420" text-anchor="middle">2.61</text>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · minify, checking less 2.43× the time of the fastest fully validating library twitter.json: 900 µs · S​AX to Writer (raw numbers) (no encoding check) citm_catalog.json: 1,211 µs · S​AX to Writer (no encoding check) canada.json: 6,518 µs · S​AX to Writer (raw numbers) (validates fully) jeopardy.json: 150,245 µs · S​AX to Writer (string stream) (no encoding check) trusts U​TF-8: RapidJSON's default (kParseValidateEncodingFlag checks it) copies each number's text instead of formatting it (kParseNumbersAsStringsFlag)">
|
||||
<rect class="nj-heat-2" x="639" y="405" width="44" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="660.5" y="420" text-anchor="middle">2.43</text>
|
||||
<text class="nj-charts-cell nj-charts-cell--small" x="660.5" y="433" text-anchor="middle">U N</text>
|
||||
</g>
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · write 2.95× the time of the fastest library (fully validating) way: Writer twitter.json: 661 µs citm_catalog.json: 1,015 µs canada.json: 8,980 µs jeopardy.json: 136,957 µs">
|
||||
<g class="nj-heat-cell" tabindex="0" data-tip="RapidJSON · write 3.21× the time of the fastest library (fully validating) way: Writer twitter.json: 355 µs citm_catalog.json: 500 µs canada.json: 6,686 µs jeopardy.json: 78,122 µs">
|
||||
<rect class="nj-heat-3" x="685" y="405" width="90" height="34" rx="3"/>
|
||||
<text class="nj-charts-cell" x="730" y="426" text-anchor="middle">2.95</text>
|
||||
<text class="nj-charts-cell" x="730" y="426" text-anchor="middle">3.21</text>
|
||||
</g>
|
||||
<text class="nj-charts-tick nj-charts-tick--l" x="8" y="472">time relative to the fastest fully validating library, less is better</text>
|
||||
<g><rect class="nj-heat-0" x="8" y="482" width="76" height="20" rx="3"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 47 KiB |
@@ -269,6 +269,9 @@ target_link_libraries(myproject PRIVATE nlohmann_json_modules)
|
||||
target_compile_definitions(myproject PRIVATE NLOHMANN_JSON_BUILD_MODULES)
|
||||
```
|
||||
|
||||
If `main.cpp` also uses `import std;`, the project needs CMake 4.5 or newer and a Ninja generator; see
|
||||
[Modules](../features/modules.md#requirements) for the supported toolchains.
|
||||
|
||||
## See also
|
||||
|
||||
- [Macros](../api/macros/index.md) - reference of all macros
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
cmake_minimum_required(VERSION 3.15)
|
||||
project(json_example)
|
||||
|
||||
find_package(nlohmann_json CONFIG REQUIRED)
|
||||
|
||||
add_executable(json_example example.cpp)
|
||||
target_link_libraries(json_example PRIVATE nlohmann_json::nlohmann_json)
|
||||
@@ -0,0 +1,10 @@
|
||||
#include <nlohmann/json.hpp>
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
|
||||
using nlohmann::json;
|
||||
|
||||
int main()
|
||||
{
|
||||
std::cout << std::setw(4) << json::meta() << std::endl;
|
||||
}
|
||||
@@ -14,7 +14,8 @@
|
||||
{: style="height:1em"} [**Conda**](#conda) `nlohmann_json`  
|
||||
{: style="height:1em"} [**MacPorts**](#macports) `nlohmann-json`<br>
|
||||
{: style="height:1em"} [**CPM.cmake**](#cpmcmake) `gh:nlohmann/json`  
|
||||
{: style="height:1em"} [**xmake**](#xmake) `nlohmann_json`
|
||||
{: style="height:1em"} [**xmake**](#xmake) `nlohmann_json`  
|
||||
{: style="height:1em"} [**Nix**](#nix) `nlohmann_json`
|
||||
</p>
|
||||
|
||||
## Running example
|
||||
@@ -906,6 +907,56 @@ CPMAddPackage("gh:nlohmann/json@3.12.0")
|
||||
|
||||
* * *
|
||||
|
||||
## Nix
|
||||
|
||||
!!! abstract "Summary"
|
||||
|
||||
package: [**`nlohmann_json`**](https://search.nixos.org/packages?channel=unstable&show=nlohmann_json&query=nlohmann_json)
|
||||
|
||||
- :octicons-tag-24: Available versions: current version of each Nixpkgs channel (may lag behind the latest release)
|
||||
- :octicons-rocket-24: The package is maintained by the Nixpkgs community and updated after releases.
|
||||
- :octicons-file-24: File issues at the [Nixpkgs issue tracker](https://github.com/NixOS/nixpkgs/issues)
|
||||
- :octicons-question-24: [Nix website](https://nixos.org)
|
||||
|
||||
If you are using [Nix](https://nixos.org) or [NixOS](https://nixos.org/manual/nixos/stable/), the library is available
|
||||
as the [nlohmann_json](https://search.nixos.org/packages?channel=unstable&show=nlohmann_json&query=nlohmann_json)
|
||||
package in [Nixpkgs](https://github.com/NixOS/nixpkgs). To try it in a temporary shell, execute
|
||||
|
||||
```shell
|
||||
nix-shell -p nlohmann_json
|
||||
```
|
||||
|
||||
On NixOS, the package can be installed system-wide by adding it to `configuration.nix`:
|
||||
|
||||
```nix
|
||||
environment.systemPackages = [ pkgs.nlohmann_json ];
|
||||
```
|
||||
|
||||
??? example "Example: CMake"
|
||||
|
||||
1. Create the following files:
|
||||
|
||||
```cpp title="example.cpp"
|
||||
--8<-- "integration/nix/example.cpp"
|
||||
```
|
||||
|
||||
```cmake title="CMakeLists.txt"
|
||||
--8<-- "integration/nix/CMakeLists.txt"
|
||||
```
|
||||
|
||||
2. Enter a shell that provides the package, CMake, and a C++ compiler:
|
||||
|
||||
```sh
|
||||
nix-shell -p nlohmann_json cmake
|
||||
```
|
||||
|
||||
3. Compile the code:
|
||||
|
||||
```sh
|
||||
cmake -S . -B build
|
||||
cmake --build build
|
||||
```
|
||||
|
||||
## Other package managers
|
||||
|
||||
The library is also contained in many other package repositories; [Repology](https://repology.org/project/nlohmann-json/versions) tracks the packaged
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
wheel==0.48.0
|
||||
|
||||
mkdocs==1.6.1 # documentation framework
|
||||
mkdocs-git-revision-date-localized-plugin==1.6.3 # plugin "git-revision-date-localized"
|
||||
mkdocs-material==9.8.0 # theme for mkdocs
|
||||
mkdocs-git-revision-date-localized-plugin==1.7.0 # plugin "git-revision-date-localized"
|
||||
mkdocs-material==9.8.1 # theme for mkdocs
|
||||
mkdocs-material-extensions==1.3.1 # extensions
|
||||
mkdocs-minify-plugin==0.8.0 # plugin "minify"
|
||||
mkdocs-redirects==1.2.3 # plugin "redirects"
|
||||
|
||||
@@ -1,183 +1,185 @@
|
||||
benchmark,unit,3.12.0,3.13.0,speedup
|
||||
Accept/canada,ns,1.27789e+07,1.34304e+06,9.515
|
||||
Accept/citm_catalog,ns,6.47666e+06,474064,13.662
|
||||
Accept/floats,ns,1.14227e+08,1.72173e+07,6.634
|
||||
Accept/jeopardy,ns,2.18081e+08,2.79002e+07,7.816
|
||||
Accept/signed_ints,ns,1.15981e+08,2.33778e+07,4.961
|
||||
Accept/small_signed_ints,ns,5.64996e+07,1.31818e+07,4.286
|
||||
Accept/twitter,ns,2.48725e+06,234277,10.617
|
||||
Accept/unsigned_ints,ns,1.14729e+08,2.28147e+07,5.029
|
||||
BinaryToCbor/1024,ns,315.368,108.041,2.919
|
||||
BinaryToCbor/128,ns,266.074,114.105,2.332
|
||||
BinaryToCbor/16,ns,246.212,49.912,4.933
|
||||
BinaryToCbor/16384,ns,950.054,418.045,2.273
|
||||
BinaryToCbor/2048,ns,340.213,126.796,2.683
|
||||
BinaryToCbor/256,ns,279.79,91.7512,3.049
|
||||
BinaryToCbor/32,ns,262.471,50.3433,5.214
|
||||
BinaryToCbor/32768,ns,1578.4,837.8,1.884
|
||||
BinaryToCbor/4096,ns,431.963,174.276,2.479
|
||||
BinaryToCbor/512,ns,296.768,102.073,2.907
|
||||
BinaryToCbor/64,ns,259.159,84.2641,3.076
|
||||
BinaryToCbor/8,ns,250.574,49.9122,5.020
|
||||
BinaryToCbor/8192,ns,527.418,253.616,2.080
|
||||
Copy/canada,ns,3.68841e+06,2.9017e+06,1.271
|
||||
Copy/citm_catalog,ns,1.64706e+06,1.48507e+06,1.109
|
||||
Copy/twitter,ns,810558,728698,1.112
|
||||
CopyAssign/canada,ns,3.73912e+06,2.94393e+06,1.270
|
||||
CopyAssign/citm_catalog,ns,1.6545e+06,1.53713e+06,1.076
|
||||
CopyAssign/twitter,ns,817997,752415,1.087
|
||||
CopyOnly/canada,ns,1.53602e+06,1.52075e+06,1.010
|
||||
CopyOnly/citm_catalog,ns,754817,794741,0.950
|
||||
CopyOnly/twitter,ns,406966,410330,0.992
|
||||
CopyRing/canada,ns,3.74734e+06,2.92592e+06,1.281
|
||||
CopyRing/citm_catalog,ns,1.7477e+06,1.54757e+06,1.129
|
||||
CopyRing/twitter,ns,876191,784261,1.117
|
||||
DestroyOnly/canada,ns,2.16216e+06,1.38217e+06,1.564
|
||||
DestroyOnly/citm_catalog,ns,895535,681877,1.313
|
||||
DestroyOnly/twitter,ns,406450,326620,1.244
|
||||
Diff/canada,ns,3.91782e+07,3.75209e+06,10.442
|
||||
Diff/citm_catalog,ns,6.91552e+06,1.09211e+06,6.332
|
||||
Diff/twitter,ns,4.92965e+06,639734,7.706
|
||||
Dump/canada / -,ns,6.70617e+06,2.31399e+06,2.898
|
||||
Dump/canada / 4,ns,8.81664e+06,3.03083e+06,2.909
|
||||
Dump/citm_catalog / -,ns,1.39132e+06,295525,4.708
|
||||
Dump/citm_catalog / 4,ns,1.94729e+06,421536,4.620
|
||||
Dump/floats / -,ns,6.35321e+07,2.37757e+07,2.672
|
||||
Dump/floats / 4,ns,7.19879e+07,2.4663e+07,2.919
|
||||
Dump/jeopardy / -,ns,2.0176e+08,3.0624e+07,6.588
|
||||
Dump/jeopardy / 4,ns,2.20493e+08,3.43504e+07,6.419
|
||||
Dump/signed_ints / -,ns,2.36853e+07,1.07405e+07,2.205
|
||||
Dump/signed_ints / 4,ns,3.2029e+07,1.13731e+07,2.816
|
||||
Dump/small_signed_ints / -,ns,1.78623e+07,7.93339e+06,2.252
|
||||
Dump/small_signed_ints / 4,ns,2.50508e+07,8.80939e+06,2.844
|
||||
Dump/twitter / -,ns,1.40813e+06,213513,6.595
|
||||
Dump/twitter / 4,ns,1.59095e+06,249353,6.380
|
||||
Dump/unsigned_ints / -,ns,2.35653e+07,8.07378e+06,2.919
|
||||
Dump/unsigned_ints / 4,ns,3.17269e+07,8.50708e+06,3.729
|
||||
Equal/canada,ns,463162,336269,1.377
|
||||
Equal/citm_catalog,ns,264124,260967,1.012
|
||||
Equal/twitter,ns,138843,128906,1.077
|
||||
Flatten/canada,ns,2.86941e+07,1.1214e+07,2.559
|
||||
Flatten/citm_catalog,ns,6.4406e+06,3.00538e+06,2.143
|
||||
Flatten/twitter,ns,3.53051e+06,2.05449e+06,1.718
|
||||
FlattenOrdered/citm_catalog,ns,2.56371e+08,1.40896e+06,181.958
|
||||
FlattenOrdered/twitter,ns,5.00313e+07,863594,57.934
|
||||
FromBinaryBuffer/bjdata / canada,ns,8.15141e+06,4.17154e+06,1.954
|
||||
FromBinaryBuffer/bjdata / twitter,ns,3.18297e+06,893076,3.564
|
||||
FromBinaryBuffer/bjdata_optimized / canada,ns,8.73882e+06,2.42167e+06,3.609
|
||||
FromBinaryBuffer/bjdata_optimized / twitter,ns,3.15905e+06,884856,3.570
|
||||
FromBinaryBuffer/bson / canada,ns,9.33283e+06,4.27358e+06,2.184
|
||||
FromBinaryBuffer/bson / citm_catalog,ns,3.91854e+06,1.61073e+06,2.433
|
||||
FromBinaryBuffer/bson / twitter,ns,3.176e+06,910290,3.489
|
||||
FromBinaryBuffer/cbor / canada,ns,8.39002e+06,2.08256e+06,4.029
|
||||
FromBinaryBuffer/cbor / citm_catalog,ns,3.71495e+06,1.31999e+06,2.814
|
||||
FromBinaryBuffer/cbor / floats,ns,2.91606e+07,5.48446e+06,5.317
|
||||
FromBinaryBuffer/cbor / jeopardy,ns,3.52964e+08,1.00739e+08,3.504
|
||||
FromBinaryBuffer/cbor / signed_ints,ns,3.59874e+07,9.77712e+06,3.681
|
||||
FromBinaryBuffer/cbor / twitter,ns,3.08997e+06,878827,3.516
|
||||
FromBinaryBuffer/msgpack / canada,ns,8.25869e+06,2.09779e+06,3.937
|
||||
FromBinaryBuffer/msgpack / citm_catalog,ns,3.71825e+06,1.28675e+06,2.890
|
||||
FromBinaryBuffer/msgpack / jeopardy,ns,3.56624e+08,9.69017e+07,3.680
|
||||
FromBinaryBuffer/msgpack / twitter,ns,3.06392e+06,850067,3.604
|
||||
FromBinaryBuffer/ubjson / canada,ns,8.12649e+06,4.14411e+06,1.961
|
||||
FromBinaryBuffer/ubjson / citm_catalog,ns,3.82184e+06,1.65659e+06,2.307
|
||||
FromBinaryBuffer/ubjson / jeopardy,ns,3.65507e+08,1.01303e+08,3.608
|
||||
FromBinaryBuffer/ubjson / twitter,ns,3.15221e+06,895746,3.519
|
||||
FromBinaryBuffer/ubjson_optimized / canada,ns,8.5126e+06,2.38858e+06,3.564
|
||||
FromBinaryBuffer/ubjson_optimized / twitter,ns,3.12199e+06,882166,3.539
|
||||
FromBinaryFile/bjdata / twitter,ns,1.04222e+07,1.45214e+06,7.177
|
||||
FromBinaryFile/bson / twitter,ns,1.02874e+07,1.23514e+06,8.329
|
||||
FromBinaryFile/cbor / canada,ns,1.43434e+07,2.4071e+06,5.959
|
||||
FromBinaryFile/cbor / twitter,ns,9.92359e+06,1.075e+06,9.231
|
||||
FromBinaryFile/ubjson / canada,ns,1.35516e+07,6.2336e+06,2.174
|
||||
FromBinaryFile/ubjson / twitter,ns,1.05159e+07,1.46077e+06,7.199
|
||||
FromBinaryShape/containers / bjdata,ns,1.43175e+07,7.24204e+06,1.977
|
||||
FromBinaryShape/containers / bson,ns,1.74215e+07,7.97531e+06,2.184
|
||||
FromBinaryShape/containers / cbor,ns,1.3898e+07,3.93021e+06,3.536
|
||||
FromBinaryShape/containers / msgpack,ns,1.378e+07,3.88449e+06,3.547
|
||||
FromBinaryShape/containers / ubjson,ns,1.44223e+07,7.2737e+06,1.983
|
||||
FromBinaryShape/containers / ubjson_optimized,ns,1.49736e+07,4.48674e+06,3.337
|
||||
FromBinaryShape/nested / bjdata,ns,96363.9,38197.9,2.523
|
||||
FromBinaryShape/nested / bson,ns,102515,42496.1,2.412
|
||||
FromBinaryShape/nested / cbor,ns,93842.1,35385.5,2.652
|
||||
FromBinaryShape/nested / msgpack,ns,92033,34888.5,2.638
|
||||
FromBinaryShape/nested / ubjson,ns,96455.9,37922.6,2.543
|
||||
FromBinaryShape/scalars / bjdata,ns,2.48048e+07,1.1476e+07,2.161
|
||||
FromBinaryShape/scalars / cbor,ns,2.56641e+07,5.68711e+06,4.513
|
||||
FromBinaryShape/scalars / msgpack,ns,2.44254e+07,5.56716e+06,4.387
|
||||
FromBinaryShape/scalars / ubjson,ns,2.49328e+07,1.15997e+07,2.149
|
||||
FromCborChunkedString/10000 chunks,ns,90902.3,61512.6,1.478
|
||||
FromMsgpack/canada,ns,1.43596e+07,2.40425e+06,5.973
|
||||
FromMsgpack/citm_catalog,ns,9.03526e+06,1.66705e+06,5.420
|
||||
FromMsgpack/floats,ns,5.97879e+07,2.82314e+07,2.118
|
||||
FromMsgpack/jeopardy,ns,1.14023e+09,1.1207e+08,10.174
|
||||
FromMsgpack/signed_ints,ns,6.30943e+07,3.27435e+07,1.927
|
||||
FromMsgpack/small_signed_ints,ns,6.34225e+07,3.52538e+07,1.799
|
||||
FromMsgpack/twitter,ns,9.99383e+06,1.01241e+06,9.871
|
||||
FromMsgpack/unsigned_ints,ns,5.61151e+07,2.82024e+07,1.990
|
||||
"GetArray<std::array<int, 1000>>",ns,2242.43,641.094,3.498
|
||||
GetArray<std::deque<int>>,ns,8157.44,1172.81,6.955
|
||||
GetArray<std::set<int>>,ns,58833.4,41553,1.416
|
||||
GetArray<std::vector<int>>,ns,6725.67,670.816,10.026
|
||||
GetMap/citm_catalog,ns,3.44193e+06,2.43771e+06,1.412
|
||||
GetVectorDouble/floats,ns,6.7017e+06,650766,10.298
|
||||
GetVectorInt/signed_ints,ns,8.06579e+06,3.40643e+06,2.368
|
||||
Iterate/canada,ns,873618,445143,1.963
|
||||
Iterate/citm_catalog,ns,301801,157823,1.912
|
||||
Iterate/twitter,ns,87345,58936.4,1.482
|
||||
JsonPointerAt/citm_catalog,ns,1.85369e+06,1.1599e+06,1.598
|
||||
JsonPointerAt/twitter,ns,791487,599585,1.320
|
||||
JsonPointerContains/citm_catalog,ns,2.73824e+06,1.25465e+06,2.182
|
||||
JsonPointerContains/twitter,ns,1.32403e+06,620312,2.134
|
||||
JsonPointerParse/citm_catalog,ns,5.72778e+06,2.21453e+06,2.586
|
||||
JsonPointerParse/twitter,ns,2.4672e+06,1.00864e+06,2.446
|
||||
JsonPointerToString/citm_catalog,ns,6.65484e+06,1.89788e+06,3.506
|
||||
JsonPointerToString/twitter,ns,2.13903e+06,811916,2.635
|
||||
ParseFILE/canada,ns,5.29148e+07,6.01689e+06,8.794
|
||||
ParseFILE/citm_catalog,ns,3.49593e+07,2.34075e+06,14.935
|
||||
ParseFILE/twitter,ns,1.38263e+07,1.34963e+06,10.245
|
||||
ParseFile/canada,ns,1.76922e+07,6.22534e+06,2.842
|
||||
ParseFile/citm_catalog,ns,7.85962e+06,2.47244e+06,3.179
|
||||
ParseFile/floats,ns,1.29413e+08,4.83839e+07,2.675
|
||||
ParseFile/jeopardy,ns,3.30328e+08,1.56161e+08,2.115
|
||||
ParseFile/signed_ints,ns,1.27675e+08,4.65862e+07,2.741
|
||||
ParseFile/small_signed_ints,ns,6.44651e+07,3.33577e+07,1.933
|
||||
ParseFile/twitter,ns,3.39729e+06,1.37932e+06,2.463
|
||||
ParseFile/unsigned_ints,ns,1.23326e+08,4.73146e+07,2.607
|
||||
ParseIndented/canada / 4,ns,3.41603e+07,4.60976e+06,7.410
|
||||
ParseIndented/citm_catalog / 4,ns,7.45491e+06,1.45798e+06,5.113
|
||||
ParseIndented/jeopardy / 4,ns,3.38801e+08,1.14349e+08,2.963
|
||||
ParseIndented/twitter / 4,ns,3.61322e+06,975391,3.704
|
||||
ParseStreamValues/ndjson,ns,7.07974e+06,3.7154e+06,1.906
|
||||
ParseStreamValues/numbers,ns,1.92884e+06,388042,4.971
|
||||
ParseString/canada,ns,1.52389e+07,3.73427e+06,4.081
|
||||
ParseString/citm_catalog,ns,7.40128e+06,1.44821e+06,5.111
|
||||
ParseString/floats,ns,1.19856e+08,2.49654e+07,4.801
|
||||
ParseString/jeopardy,ns,3.03449e+08,1.13053e+08,2.684
|
||||
ParseString/signed_ints,ns,1.21175e+08,2.86805e+07,4.225
|
||||
ParseString/small_signed_ints,ns,6.07636e+07,1.77037e+07,3.432
|
||||
ParseString/twitter,ns,3.21074e+06,920551,3.488
|
||||
ParseString/unsigned_ints,ns,1.20011e+08,2.85056e+07,4.210
|
||||
ParseStringOrdered/canada,ns,1.52544e+07,3.77964e+06,4.036
|
||||
ParseStringOrdered/citm_catalog,ns,1.09927e+07,1.34339e+06,8.183
|
||||
ParseStringOrdered/jeopardy,ns,3.60435e+08,9.81296e+07,3.673
|
||||
ParseStringOrdered/twitter,ns,4.41151e+06,803859,5.488
|
||||
Patch/canada,ns,1.01249e+07,3.41425e+06,2.965
|
||||
Patch/citm_catalog,ns,2.54415e+06,1.65413e+06,1.538
|
||||
Patch/twitter,ns,1.4932e+06,870217,1.716
|
||||
SaxParse/canada,ns,1.28611e+07,2.49889e+06,5.147
|
||||
SaxParse/citm_catalog,ns,6.43798e+06,655372,9.823
|
||||
SaxParse/twitter,ns,2.48859e+06,334038,7.450
|
||||
ToCbor/canada,ns,1.39101e+06,554952,2.507
|
||||
ToCbor/citm_catalog,ns,1.0334e+06,260397,3.969
|
||||
ToCbor/floats,ns,8.93763e+06,1.84589e+06,4.842
|
||||
ToCbor/jeopardy,ns,7.14785e+07,2.10551e+07,3.395
|
||||
ToCbor/signed_ints,ns,1.13863e+07,2.74211e+06,4.152
|
||||
ToCbor/small_signed_ints,ns,1.02822e+07,2.37622e+06,4.327
|
||||
ToCbor/twitter,ns,636979,144369,4.412
|
||||
ToCbor/unsigned_ints,ns,8.04576e+06,2.74066e+06,2.936
|
||||
ToJsonStrings/copy,ns,5.85988e+06,5.60056e+06,1.046
|
||||
ToJsonStrings/move,ns,5.92335e+06,3.04643e+06,1.944
|
||||
Unflatten/canada,ns,4.17811e+07,1.08132e+07,3.864
|
||||
Unflatten/citm_catalog,ns,9.80315e+06,3.53672e+06,2.772
|
||||
Unflatten/twitter,ns,4.56968e+06,2.16566e+06,2.110
|
||||
FromBinaryBuffer/msgpack / jeopardy,ns,3.56376e+08,9.37052e+07,3.803
|
||||
GetVectorInt/signed_ints,ns,8.00368e+06,3.38526e+06,2.364
|
||||
FromBinaryFile/bson / twitter,ns,1.01661e+07,1.22525e+06,8.297
|
||||
Unflatten/citm_catalog,ns,9.79429e+06,3.6099e+06,2.713
|
||||
FromBinaryShape/containers / cbor,ns,1.38062e+07,3.95491e+06,3.491
|
||||
Diff/twitter,ns,4.8593e+06,640238,7.590
|
||||
FromBinaryBuffer/cbor / floats,ns,2.89316e+07,5.38972e+06,5.368
|
||||
Patch/canada,ns,1.00183e+07,3.40486e+06,2.942
|
||||
JsonPointerToString/twitter,ns,2.13885e+06,811648,2.635
|
||||
ParseFILE/canada,ns,5.23339e+07,5.94603e+06,8.801
|
||||
Copy/citm_catalog,ns,1.62473e+06,1.47096e+06,1.105
|
||||
ToCbor/twitter,ns,637711,140404,4.542
|
||||
CopyAssign/twitter,ns,809718,768280,1.054
|
||||
Equal/twitter,ns,137425,128272,1.071
|
||||
FromBinaryShape/singles / msgpack,ns,9.79667e+06,3.84137e+06,2.550
|
||||
Flatten/citm_catalog,ns,6.39977e+06,2.99034e+06,2.140
|
||||
Equal/citm_catalog,ns,257648,254695,1.012
|
||||
Accept/floats,ns,1.13431e+08,1.71844e+07,6.601
|
||||
Unflatten/twitter,ns,4.63581e+06,2.18616e+06,2.121
|
||||
BinaryToCbor/8,ns,246.515,48.6634,5.066
|
||||
Dump/unsigned_ints / 4,ns,3.16753e+07,8.41946e+06,3.762
|
||||
Dump/small_signed_ints / 4,ns,2.48696e+07,8.72941e+06,2.849
|
||||
Accept/canada,ns,1.26794e+07,1.32204e+06,9.591
|
||||
CopyAssign/citm_catalog,ns,1.658e+06,1.50401e+06,1.102
|
||||
Diff/canada,ns,3.81491e+07,3.73659e+06,10.210
|
||||
FromBinaryBuffer/bjdata / canada,ns,8.09969e+06,4.07622e+06,1.987
|
||||
FromBinaryShape/containers / msgpack,ns,1.37529e+07,3.94846e+06,3.483
|
||||
FromBinaryBuffer/ubjson_optimized / twitter,ns,3.105e+06,860260,3.609
|
||||
FromBinaryBuffer/ubjson / canada,ns,8.10092e+06,4.13921e+06,1.957
|
||||
FromBinaryBuffer/bjdata_optimized / canada,ns,8.57969e+06,2.40635e+06,3.565
|
||||
Iterate/citm_catalog,ns,298875,146683,2.038
|
||||
Dump/signed_ints / -,ns,2.35657e+07,1.06527e+07,2.212
|
||||
Iterate/twitter,ns,87819.6,57086.7,1.538
|
||||
ParseFile/unsigned_ints,ns,1.21976e+08,4.74314e+07,2.572
|
||||
ToCbor/unsigned_ints,ns,8.02163e+06,2.73539e+06,2.933
|
||||
FromBinaryBuffer/msgpack / canada,ns,8.2439e+06,2.09919e+06,3.927
|
||||
ToCbor/small_signed_ints,ns,1.02153e+07,2.37758e+06,4.297
|
||||
CopyRing/twitter,ns,859173,798950,1.075
|
||||
FromBinaryFile/cbor / twitter,ns,9.83918e+06,1.05639e+06,9.314
|
||||
ParseIndented/jeopardy / 4,ns,3.36775e+08,1.13321e+08,2.972
|
||||
Iterate/canada,ns,871453,427207,2.040
|
||||
BinaryToCbor/128,ns,255.325,113.969,2.240
|
||||
Dump/unsigned_ints / -,ns,2.347e+07,8.05437e+06,2.914
|
||||
Dump/citm_catalog / -,ns,1.3828e+06,292068,4.735
|
||||
FromMsgpack/small_signed_ints,ns,6.28886e+07,3.37245e+07,1.865
|
||||
ToCbor/signed_ints,ns,1.13369e+07,2.73327e+06,4.148
|
||||
Dump/citm_catalog / 4,ns,1.92706e+06,415294,4.640
|
||||
Accept/signed_ints,ns,1.15108e+08,2.32984e+07,4.941
|
||||
Accept/unsigned_ints,ns,1.13981e+08,2.2856e+07,4.987
|
||||
ToCbor/floats,ns,8.90101e+06,1.8411e+06,4.835
|
||||
Dump/twitter / 4,ns,1.58163e+06,248861,6.355
|
||||
Flatten/twitter,ns,3.47975e+06,2.04214e+06,1.704
|
||||
ParseFILE/citm_catalog,ns,3.47528e+07,2.33647e+06,14.874
|
||||
CopyRing/citm_catalog,ns,1.71026e+06,1.54721e+06,1.105
|
||||
DestroyOnly/canada,ns,2.1373e+06,1.37986e+06,1.549
|
||||
ParseIndented/canada / 4,ns,3.36975e+07,4.55234e+06,7.402
|
||||
FromBinaryShape/nested / msgpack,ns,92164.1,34825.9,2.646
|
||||
Copy/canada,ns,3.66531e+06,2.91548e+06,1.257
|
||||
ParseFile/small_signed_ints,ns,6.36556e+07,3.32302e+07,1.916
|
||||
SaxParse/citm_catalog,ns,6.40417e+06,651648,9.828
|
||||
BinaryToCbor/1024,ns,310.054,103.516,2.995
|
||||
FromBinaryBuffer/cbor / citm_catalog,ns,3.68791e+06,1.33699e+06,2.758
|
||||
ParseString/small_signed_ints,ns,6.06983e+07,1.76778e+07,3.434
|
||||
"GetArray<std::array<int, 1000>>",ns,2232.07,639.577,3.490
|
||||
Dump/jeopardy / 4,ns,2.19387e+08,3.45399e+07,6.352
|
||||
FromBinaryBuffer/ubjson / twitter,ns,3.12176e+06,872419,3.578
|
||||
Dump/signed_ints / 4,ns,3.18414e+07,1.12445e+07,2.832
|
||||
JsonPointerContains/citm_catalog,ns,2.70305e+06,1.24338e+06,2.174
|
||||
Dump/twitter / -,ns,1.39545e+06,212169,6.577
|
||||
ParseStringOrdered/canada,ns,1.50466e+07,3.77243e+06,3.989
|
||||
Accept/jeopardy,ns,2.16678e+08,2.77477e+07,7.809
|
||||
FromBinaryFile/cbor / canada,ns,1.42295e+07,2.4159e+06,5.890
|
||||
Dump/jeopardy / -,ns,2.0084e+08,3.11939e+07,6.438
|
||||
ToJsonStrings/copy,ns,5.86291e+06,5.5919e+06,1.048
|
||||
BinaryToCbor/16,ns,244.867,48.2527,5.075
|
||||
FromBinaryBuffer/cbor / canada,ns,8.25796e+06,2.10045e+06,3.932
|
||||
Accept/small_signed_ints,ns,5.6282e+07,1.32434e+07,4.250
|
||||
Patch/citm_catalog,ns,2.54655e+06,1.6363e+06,1.556
|
||||
Unflatten/canada,ns,4.11873e+07,1.10494e+07,3.728
|
||||
JsonPointerContains/twitter,ns,1.29206e+06,609759,2.119
|
||||
Dump/floats / -,ns,6.31208e+07,2.36329e+07,2.671
|
||||
CopyRing/canada,ns,3.73092e+06,2.94199e+06,1.268
|
||||
ParseString/unsigned_ints,ns,1.18699e+08,2.83952e+07,4.180
|
||||
ParseString/canada,ns,1.50831e+07,3.72801e+06,4.046
|
||||
FromMsgpack/twitter,ns,9.91629e+06,999651,9.920
|
||||
ParseFile/floats,ns,1.28428e+08,4.82106e+07,2.664
|
||||
ParseStreamValues/ndjson,ns,7.12846e+06,3.74839e+06,1.902
|
||||
FromMsgpack/citm_catalog,ns,8.9175e+06,1.6513e+06,5.400
|
||||
FromBinaryBuffer/cbor / jeopardy,ns,3.54251e+08,1.00932e+08,3.510
|
||||
CopyOnly/twitter,ns,398464,411184,0.969
|
||||
BinaryToCbor/16384,ns,981.9,410.592,2.391
|
||||
JsonPointerAt/twitter,ns,791229,593059,1.334
|
||||
ParseFILE/twitter,ns,1.36013e+07,1.31018e+06,10.381
|
||||
FromMsgpack/signed_ints,ns,6.22982e+07,3.26718e+07,1.907
|
||||
FromCborChunkedString/10000 chunks,ns,90088.7,61202,1.472
|
||||
FromBinaryShape/containers / bjdata,ns,1.40505e+07,7.07234e+06,1.987
|
||||
JsonPointerToString/citm_catalog,ns,6.5753e+06,1.90833e+06,3.446
|
||||
FlattenOrdered/twitter,ns,4.96493e+07,862665,57.553
|
||||
DestroyOnly/citm_catalog,ns,879499,679164,1.295
|
||||
FromBinaryFile/bjdata / twitter,ns,1.04027e+07,1.46032e+06,7.124
|
||||
ToCbor/canada,ns,1.37306e+06,559412,2.454
|
||||
GetMap/citm_catalog,ns,3.40323e+06,2.42997e+06,1.401
|
||||
FromBinaryBuffer/bson / citm_catalog,ns,3.87408e+06,1.58607e+06,2.443
|
||||
FromBinaryShape/nested / bson,ns,101814,42220.7,2.411
|
||||
BinaryToCbor/4096,ns,407.896,168.978,2.414
|
||||
CopyOnly/canada,ns,1.52999e+06,1.53061e+06,1.000
|
||||
Dump/canada / 4,ns,8.85726e+06,3.02915e+06,2.924
|
||||
JsonPointerAt/citm_catalog,ns,1.83519e+06,1.14559e+06,1.602
|
||||
BinaryToCbor/32,ns,255.202,49.7487,5.130
|
||||
ParseFile/citm_catalog,ns,7.73392e+06,2.43664e+06,3.174
|
||||
FromBinaryShape/scalars / ubjson,ns,2.4621e+07,1.11449e+07,2.209
|
||||
FromBinaryShape/scalars / cbor,ns,2.55544e+07,5.55805e+06,4.598
|
||||
ParseStringOrdered/jeopardy,ns,3.6028e+08,9.79505e+07,3.678
|
||||
FromBinaryFile/ubjson / canada,ns,1.35226e+07,6.34861e+06,2.130
|
||||
FromBinaryBuffer/ubjson / jeopardy,ns,3.661e+08,9.93732e+07,3.684
|
||||
BinaryToCbor/2048,ns,330.184,122.318,2.699
|
||||
FromBinaryShape/nested / cbor,ns,93712.6,35235.7,2.660
|
||||
ParseIndented/citm_catalog / 4,ns,7.2551e+06,1.46145e+06,4.964
|
||||
BinaryToCbor/64,ns,257.867,83.3886,3.092
|
||||
ParseFile/signed_ints,ns,1.26092e+08,4.60109e+07,2.740
|
||||
CopyAssign/canada,ns,3.72953e+06,2.94923e+06,1.265
|
||||
FromBinaryBuffer/bjdata / twitter,ns,3.1287e+06,873093,3.583
|
||||
Dump/floats / 4,ns,7.1031e+07,2.45563e+07,2.893
|
||||
FromBinaryBuffer/msgpack / twitter,ns,3.03481e+06,831338,3.651
|
||||
FromBinaryShape/nested / bjdata,ns,95576.6,37944.7,2.519
|
||||
ToJsonStrings/move,ns,5.84459e+06,3.0561e+06,1.912
|
||||
FromMsgpack/jeopardy,ns,1.13918e+09,1.12093e+08,10.163
|
||||
ParseString/signed_ints,ns,1.20325e+08,2.89864e+07,4.151
|
||||
FromBinaryBuffer/bson / canada,ns,9.28095e+06,4.34519e+06,2.136
|
||||
FromBinaryShape/containers / bson,ns,1.65723e+07,7.72033e+06,2.147
|
||||
FromBinaryBuffer/cbor / signed_ints,ns,3.55593e+07,9.76349e+06,3.642
|
||||
FromBinaryBuffer/ubjson / citm_catalog,ns,3.83988e+06,1.62757e+06,2.359
|
||||
FromBinaryFile/ubjson / twitter,ns,1.03741e+07,1.44004e+06,7.204
|
||||
Accept/citm_catalog,ns,6.37657e+06,473623,13.463
|
||||
FromBinaryShape/singles / cbor,ns,9.80279e+06,3.85097e+06,2.546
|
||||
Equal/canada,ns,455750,332820,1.369
|
||||
JsonPointerParse/citm_catalog,ns,5.70466e+06,2.22344e+06,2.566
|
||||
Flatten/canada,ns,2.84742e+07,1.1313e+07,2.517
|
||||
ToCbor/jeopardy,ns,7.15663e+07,2.05264e+07,3.487
|
||||
Copy/twitter,ns,800349,726319,1.102
|
||||
FromBinaryShape/scalars / bjdata,ns,2.45145e+07,1.12069e+07,2.187
|
||||
FromBinaryShape/containers / ubjson,ns,1.40347e+07,7.03944e+06,1.994
|
||||
GetVectorDouble/floats,ns,6.68308e+06,658764,10.145
|
||||
ParseFile/twitter,ns,3.35391e+06,1.35767e+06,2.470
|
||||
CopyOnly/citm_catalog,ns,745442,794860,0.938
|
||||
FromBinaryBuffer/cbor / twitter,ns,3.04874e+06,865468,3.523
|
||||
FromBinaryBuffer/ubjson_optimized / canada,ns,8.44636e+06,2.38005e+06,3.549
|
||||
ParseFile/canada,ns,1.7446e+07,6.23937e+06,2.796
|
||||
FromBinaryBuffer/bson / twitter,ns,3.07555e+06,892243,3.447
|
||||
SaxParse/twitter,ns,2.47779e+06,333102,7.439
|
||||
BinaryToCbor/512,ns,292.983,98.3304,2.980
|
||||
ToCbor/citm_catalog,ns,1.02844e+06,253313,4.060
|
||||
FromMsgpack/floats,ns,5.95208e+07,2.78865e+07,2.134
|
||||
FromBinaryBuffer/bjdata_optimized / twitter,ns,3.12712e+06,865993,3.611
|
||||
Patch/twitter,ns,1.47408e+06,870268,1.694
|
||||
ParseStreamValues/numbers,ns,1.92083e+06,385096,4.988
|
||||
ParseIndented/twitter / 4,ns,3.58975e+06,955860,3.756
|
||||
SaxParse/canada,ns,1.27866e+07,2.51963e+06,5.075
|
||||
FromBinaryShape/scalars / msgpack,ns,2.43314e+07,5.38279e+06,4.520
|
||||
BinaryToCbor/8192,ns,513.598,247.942,2.071
|
||||
JsonPointerParse/twitter,ns,2.45095e+06,1.00205e+06,2.446
|
||||
ParseFile/jeopardy,ns,3.30464e+08,1.58395e+08,2.086
|
||||
FromBinaryBuffer/msgpack / citm_catalog,ns,3.70592e+06,1.2882e+06,2.877
|
||||
ParseStringOrdered/citm_catalog,ns,1.08745e+07,1.3409e+06,8.110
|
||||
FromMsgpack/canada,ns,1.44132e+07,2.40718e+06,5.988
|
||||
ParseString/citm_catalog,ns,7.31279e+06,1.44898e+06,5.047
|
||||
Dump/small_signed_ints / -,ns,1.78234e+07,7.93107e+06,2.247
|
||||
Dump/canada / -,ns,6.69249e+06,2.30011e+06,2.910
|
||||
FlattenOrdered/citm_catalog,ns,2.5462e+08,1.40264e+06,181.529
|
||||
FromBinaryShape/containers / ubjson_optimized,ns,1.47327e+07,4.43609e+06,3.321
|
||||
ParseString/jeopardy,ns,3.04442e+08,1.11899e+08,2.721
|
||||
GetArray<std::set<int>>,ns,58151.3,41496.7,1.401
|
||||
GetArray<std::vector<int>>,ns,6666.04,667.858,9.981
|
||||
ParseString/floats,ns,1.18914e+08,2.45271e+07,4.848
|
||||
BinaryToCbor/32768,ns,1576.97,800.59,1.970
|
||||
Diff/citm_catalog,ns,6.81411e+06,1.0862e+06,6.273
|
||||
ParseString/twitter,ns,3.18533e+06,901779,3.532
|
||||
FromBinaryShape/nested / ubjson,ns,96073.3,37939.8,2.532
|
||||
BinaryToCbor/256,ns,275.64,89.4743,3.081
|
||||
FromMsgpack/unsigned_ints,ns,5.56157e+07,2.81137e+07,1.978
|
||||
Accept/twitter,ns,2.46679e+06,233126,10.581
|
||||
GetArray<std::deque<int>>,ns,8115.04,1164.68,6.968
|
||||
ParseStringOrdered/twitter,ns,4.35839e+06,792369,5.500
|
||||
DestroyOnly/twitter,ns,401329,325985,1.231
|
||||
|
@@ -358,4 +358,31 @@ index,commit,date,pr,subject,parse_twitter,parse_citm,parse_canada,parse_citm_co
|
||||
356,e48800f09d,2026-11-04,6001,Binary reader and writer: remove checks that invariants make dead (#6001),1371.292,2434.395,6104.099,2313.769,1711.288,483.297,211.214,288.130,2308.992,416.639,1300.966,138.719,1455.595,1695.539,180.445,370.313,962.574
|
||||
357,951271127b,2026-11-07,6028,Binary readers: append strings straight from contiguous input (#6028),1381.807,2431.713,6099.235,2311.519,1694.104,464.615,207.900,288.438,2322.463,418.952,1227.851,138.811,1468.723,1706.816,177.249,369.912,975.798
|
||||
358,18138227dc,2026-11-07,6030,Scan the buffer of a FILE in bulk with glibc and the Apple C library (#6030),1379.500,2439.343,6147.771,2308.199,1689.427,482.217,213.967,290.466,2309.747,420.209,1239.525,139.367,1443.438,1731.583,180.401,364.380,975.476
|
||||
359,candidate,,,develop + open pull requests,1230.726,2155.896,5188.718,2038.886,1713.280,234.359,212.584,289.591,2313.669,425.788,1234.309,137.017,1444.999,1699.919,179.250,367.586,954.772
|
||||
359,7757de3a58,2026-11-09,6039,Iterator: test for objects before arrays (#6039),1380.384,2436.173,6147.015,2327.618,1738.474,479.559,210.207,289.011,2311.297,416.324,1223.047,137.995,1446.103,1697.968,178.351,369.205,962.294
|
||||
360,33f15727ce,2026-11-10,6031,Parse JSON in one block of memory with a fused pointer-based parser (#6031),1232.688,2159.908,5203.801,1984.113,1697.135,230.527,211.447,288.789,2304.532,416.955,1225.428,137.797,1440.462,1683.331,176.779,366.584,951.058
|
||||
361,5901d861ff,2026-11-10,6049,json_view: keep tokens without an integer digit out of the float batch (#6049),1228.185,2146.667,5181.943,1972.052,1698.107,231.118,209.299,289.238,2307.989,416.087,1231.054,137.859,1447.867,1702.647,176.785,368.826,954.212
|
||||
362,2a4aec3e69,2026-11-10,6033,SWAR and vector scans: test for special bytes in fewer operations (#6033),1233.188,2161.879,5191.370,1978.785,1703.568,230.498,210.532,289.351,2308.372,418.358,1227.920,137.364,1447.278,1702.532,177.017,364.865,945.366
|
||||
363,8d591bf720,2026-11-10,6029,Read iterator pairs of std::string and std::vector as pointer ranges (#6029),1227.886,2159.435,5199.636,1982.978,1715.561,231.767,210.422,289.284,2302.689,420.006,1230.287,137.760,1445.918,1705.056,177.166,368.877,944.291
|
||||
364,be08f42456,2026-11-11,6073,"Fix parse(container, function) for plain functions as callback (#6073)",1220.622,2159.982,5175.604,1981.034,1693.147,231.401,209.595,288.827,2299.556,419.193,1229.394,138.610,1445.513,1710.022,176.390,365.380,940.510
|
||||
365,0d38e99d83,2026-11-11,6077,Resume patch operations from the common prefix in constant time per step (#6077),1233.522,2158.617,5196.765,1980.941,1702.170,229.834,210.821,288.592,2308.507,417.081,1227.764,137.399,1446.635,1704.976,175.744,367.698,943.458
|
||||
366,1dae5a66b1,2026-11-11,6081,Add JSON_RECURSION_DEPTH_LIMIT to set how deep value walks recurse (#6081),1230.690,2151.489,5191.953,1984.906,1700.260,230.793,211.017,288.089,2312.342,419.356,1223.258,138.339,1445.548,1704.768,177.168,366.790,961.568
|
||||
367,94331d1050,2026-11-11,6086,Document that read() must not be given a view of the document itself (#6086),1228.842,2162.550,5193.906,1980.191,1700.069,231.572,211.080,288.779,2304.155,417.238,1216.482,137.702,1438.880,1701.421,175.708,367.558,957.223
|
||||
368,9d35fe6d21,2026-11-11,6084,Reject integer tokens in float nodes of fully checked images (#6084),1236.233,2162.730,5182.683,1979.372,1695.141,230.901,209.906,288.776,2311.244,417.004,1222.106,137.967,1443.311,1700.528,176.628,366.710,949.742
|
||||
369,02d57db31e,2026-11-11,6085,Do not compare an edited NaN equal to itself in json_view (#6085),1233.778,2151.744,5213.938,1982.767,1704.871,230.701,209.543,289.741,2297.221,417.113,1224.923,137.565,1445.522,1701.807,176.716,368.262,952.823
|
||||
370,cdfb130fa6,2026-11-12,6075,Read a std::u8string from a JSON string and store it as one in every configuration (#6075),1236.354,2153.790,5199.718,1978.715,1702.050,230.356,210.653,289.444,2304.222,426.317,1220.273,137.684,1444.870,1690.885,178.127,367.347,949.974
|
||||
371,2755952d36,2026-11-13,6100,"Fix develop CI: GCC 4.8, Clang 3.4 and clang-tidy errors (#6100)",1222.899,2156.212,5181.916,1972.216,1707.991,229.903,210.406,289.413,2310.431,418.713,1219.681,140.001,1436.467,1700.257,175.641,361.899,950.782
|
||||
372,72966ae73d,2026-11-13,6117,Force inlining of the serializer helpers only in optimized builds (#6117),1229.660,2150.695,5157.099,1966.099,1692.936,229.292,210.305,289.231,2301.568,415.831,1220.180,137.774,1432.240,1698.052,174.548,366.678,950.163
|
||||
373,81888ff9f0,2026-11-13,6119,Report a missing 0xFF after a final BON8 string also without strict (#6119),1233.542,2151.332,5183.625,1984.042,1710.823,229.551,211.353,289.866,2311.086,418.131,1227.319,137.569,1444.212,1700.958,176.178,365.856,953.536
|
||||
374,73ec296320,2026-11-15,6078,Bound the total number of valueless UBJSON elements per input (#6078),1225.244,2142.945,5179.239,1975.435,1692.371,229.707,209.821,289.197,2300.630,417.989,1221.188,138.535,1444.541,1693.598,175.269,364.811,955.163
|
||||
375,253e4c3926,2026-11-15,6082,Bound what the DOM parsers reserve for arrays that announce a size (#6082),1228.159,2150.463,5174.974,1987.111,1705.310,230.039,210.280,288.954,2308.954,418.132,1227.745,138.757,1449.575,1700.477,176.470,370.286,958.173
|
||||
376,99adff001d,2026-11-15,6076,Make unflatten() linear in the length of the keys (#6076),1247.784,2178.565,5282.307,1990.546,1707.260,232.710,209.397,289.724,2306.957,417.662,1224.773,137.922,1443.309,1700.334,177.686,369.785,963.850
|
||||
377,abbc29963a,2026-11-15,6121,Keep only the beginning and the end of a long token for error messages (#6121),1243.430,2162.966,5197.807,1981.517,1699.622,231.899,212.120,289.719,2312.327,416.077,1223.013,137.234,1446.961,1713.164,177.601,367.974,943.188
|
||||
378,a1284028b2,2026-11-18,6132,json_view: fix a scalar set() through a view of an erased value (#6132),1236.319,2162.056,5207.239,1983.479,1706.768,229.802,210.298,289.318,2316.301,416.765,1221.983,137.681,1448.338,1705.124,178.169,368.837,945.636
|
||||
379,03ce377876,2026-11-18,6134,Pass the complete text of a UBJSON/BJData high-precision number to SAX number_float (#6134),1233.842,2157.797,5178.062,1980.544,1708.546,229.843,213.918,288.147,2309.180,418.388,1223.172,136.906,1441.884,1704.709,176.812,368.129,945.403
|
||||
380,1f7250f77f,2026-11-18,6135,Write a binary subtype independently of number_unsigned_t in dump() (#6135),1236.309,2157.733,5209.677,1982.646,1701.816,231.043,213.443,289.575,2302.857,416.062,1226.513,137.043,1446.779,1709.938,176.500,367.158,943.228
|
||||
381,6ac411e14c,2026-11-18,6137,Report the same error position for bulk number runs as for byte-wise input (#6137),1238.184,2163.547,5163.505,1972.937,1713.279,230.776,213.511,290.663,2327.517,418.178,1226.622,136.560,1439.095,1697.021,176.058,367.883,938.042
|
||||
382,f91e900875,2026-11-18,6138,Fix stale comments in include/ (#6138),1234.367,2151.995,5201.583,1976.619,1700.410,229.218,214.634,289.998,2311.756,418.839,1219.061,138.104,1441.412,1700.653,176.893,365.899,941.629
|
||||
383,f6eb5e4fb1,2026-11-18,6140,Fix documentation errors and clean up repository leftovers (#6140),1247.164,2168.977,5259.532,1993.329,1717.332,232.236,213.166,289.975,2321.773,418.984,1222.782,137.583,1448.037,1704.815,178.514,369.683,949.272
|
||||
384,555ef48fb6,2026-11-18,6125,Fix reverse iterator subscript exception for objects (#6125),1238.656,2160.482,5201.062,1979.512,1702.148,229.870,214.298,290.640,2319.590,418.756,1223.883,137.797,1445.209,1698.182,177.839,368.290,948.144
|
||||
385,d957a10f55,2026-11-23,6133,Copy instead of move when converting an rvalue non-owning range (#6133),1237.055,2154.473,5199.230,1977.363,1691.616,229.104,214.277,289.952,2302.805,416.649,1219.672,137.072,1448.652,1694.414,178.065,366.387,937.835
|
||||
386,322063822f,2026-11-23,6136,Cut long tokens in parse error messages at UTF-8 character boundaries (#6136),1239.085,2158.953,5203.703,1980.401,1717.697,231.102,210.689,289.365,2309.008,419.673,1227.474,138.525,1455.568,1722.782,177.614,367.281,937.850
|
||||
|
@@ -201,23 +201,23 @@ def digits():
|
||||
# ---------- overview: speedup per workload (Google Benchmark rows, 3.12.0 time / 3.13.0 time) ----------
|
||||
# (group, label, speedup), copied from the table "The short version"
|
||||
OVERVIEW = [
|
||||
("Parsing", "twitter.json", 3.49),
|
||||
("Parsing", "citm_catalog.json", 5.11),
|
||||
("Parsing", "canada.json", 4.08),
|
||||
("Parsing", "canada.json, indented", 7.41),
|
||||
("Parsing", "citm, ordered_json", 8.18),
|
||||
("Parsing", "twitter, std::ifstream", 2.46),
|
||||
("Parsing", "citm, FILE*", 14.94),
|
||||
("Parsing", "citm, accept()", 13.66),
|
||||
("Writing", "dump() twitter", 6.60),
|
||||
("Writing", "dump() canada", 2.90),
|
||||
("Writing", "dump(4) citm", 4.62),
|
||||
("Writing", "to_cbor() twitter", 4.41),
|
||||
("Parsing", "twitter.json", 3.53),
|
||||
("Parsing", "citm_catalog.json", 5.05),
|
||||
("Parsing", "canada.json", 4.05),
|
||||
("Parsing", "canada.json, indented", 7.40),
|
||||
("Parsing", "citm, ordered_json", 8.11),
|
||||
("Parsing", "twitter, std::ifstream", 2.47),
|
||||
("Parsing", "citm, FILE*", 14.87),
|
||||
("Parsing", "citm, accept()", 13.46),
|
||||
("Writing", "dump() twitter", 6.58),
|
||||
("Writing", "dump() canada", 2.91),
|
||||
("Writing", "dump(4) citm", 4.64),
|
||||
("Writing", "to_cbor() twitter", 4.54),
|
||||
("Reading CBOR", "twitter, memory", 3.52),
|
||||
("Reading CBOR", "twitter, FILE*", 9.23),
|
||||
("Values", "diff() canada", 10.44),
|
||||
("Values", "iterate canada", 1.96),
|
||||
("Values", "copy + destroy citm", 1.11),
|
||||
("Reading CBOR", "twitter, FILE*", 9.31),
|
||||
("Values", "diff() canada", 10.21),
|
||||
("Values", "iterate canada", 2.04),
|
||||
("Values", "copy + destroy citm", 1.10),
|
||||
("Values", "== citm", 1.01),
|
||||
]
|
||||
|
||||
@@ -313,9 +313,6 @@ TIMELINE = [
|
||||
("from_cbor_twitter", "from_cbor() twitter", [(5233, "1"), (5501, "4"), (5185, "U"), (5746, "U"), (6028, "4")]),
|
||||
("to_cbor_twitter", "to_cbor() twitter", [(5328, "4"), (5824, "6"), (5885, "6")]),
|
||||
]
|
||||
# pull requests that were not merged yet when the timeline was measured: their step is the last point, the candidate
|
||||
# (develop with the open pull requests merged); drop a number here once its pull request is on develop
|
||||
PENDING = {6031}
|
||||
MONTHS = [("2025-04", "3.12.0"), ("2026-09", "Sep 2026"), ("2026-10", "Oct"), ("2026-11", "Nov")]
|
||||
|
||||
|
||||
@@ -362,8 +359,6 @@ def timeline():
|
||||
groups = []
|
||||
for pr, lab in labels:
|
||||
i = next((k for k, r in enumerate(rows) if r["pr"] == str(pr)), None)
|
||||
if i is None and pr in PENDING and rows[-1]["commit"] == "candidate":
|
||||
i = n - 1
|
||||
assert i is not None, "no commit of #%d in the timeline" % pr
|
||||
if groups and X(i) - X(groups[-1][-1][1]) < 6:
|
||||
groups[-1].append((pr, i, lab))
|
||||
@@ -402,15 +397,15 @@ def timeline():
|
||||
# ---------- cliffs: 3.12.0 and 3.13.0 times on a log axis ----------
|
||||
# (operation, 3.12.0 ms, 3.13.0 ms), copied from the table in "Fix the algorithm first"
|
||||
CLIFFS = [
|
||||
("diff() 64k numbers vs []", 4237, 10.8),
|
||||
("diff() 20k objects vs half", 122, 4.13),
|
||||
("parse() callback, 32k objects", 1398, 12.1),
|
||||
("operator< nested 24 deep", 64.4, 0.002),
|
||||
("operator< citm, 10x", 284, 3.94),
|
||||
("flatten() citm, ordered_json", 271, 1.45),
|
||||
("to_bson() 200 deep, 100x", 20.3, 0.352),
|
||||
("push_back() 100k, diagnostics", 1589, 5.32),
|
||||
("at(i) 10k, diagnostics", 45.9, 0.088),
|
||||
("diff() 64k numbers vs []", 4131, 11.2),
|
||||
("diff() 20k objects vs half", 134, 7.16),
|
||||
("parse() callback, 32k objects", 826, 7.67),
|
||||
("operator< nested 24 deep", 53.8, 0.004),
|
||||
("operator< citm, 10x", 270, 3.78),
|
||||
("flatten() citm, ordered_json", 261, 1.59),
|
||||
("to_bson() 200 deep, 100x", 19.6, 0.392),
|
||||
("push_back() 100k, diagnostics", 1515, 0.936),
|
||||
("at(i) 10k, diagnostics", 30.4, 0.0095),
|
||||
]
|
||||
|
||||
|
||||
@@ -505,10 +500,10 @@ def heldout():
|
||||
# CPU time of the compiler in ms, median of 5 interleaved rounds, C++20, M1 Max (the post's appendix G)
|
||||
# (3.12.0, 3.13.0, 3.13.0 with a precompiled header, 3.13.0 as a module)
|
||||
PRICE = [
|
||||
("Apple clang 21, -O0 (debug)", [("count_numbers", 830.8, 1131.1, 639.0, 790.3), ("server_config", 962.8, 1312.5, 774.2, 1036.5)]),
|
||||
("Apple clang 21, -O2", [("count_numbers", 1328.4, 1898.4, 1311.8, 1491.2), ("server_config", 1584.1, 2251.0, 1778.7, 1925.9)]),
|
||||
("GCC 16, -O0 (debug)", [("count_numbers", 1416.5, 2385.4, 1592.9, 1603.7), ("server_config", 1877.6, 2819.8, 2152.1, 2180.2)]),
|
||||
("GCC 16, -O2", [("count_numbers", 2159.0, 3464.5, 2765.0, 2739.8), ("server_config", 2877.9, 4388.2, 3722.4, 3773.8)]),
|
||||
("Apple clang 21, -O0 (debug)", [("count_numbers", 886.0, 1245.0, 664.0, 871.0), ("server_config", 1037.0, 1472.0, 809.0, 1072.0)]),
|
||||
("Apple clang 21, -O2", [("count_numbers", 1348.0, 1992.0, 1391.0, 1637.0), ("server_config", 1647.0, 2412.0, 1854.0, 2047.0)]),
|
||||
("GCC 16, -O0 (debug)", [("count_numbers", 1514.0, 2490.0, 1667.0, 1652.0), ("server_config", 1948.0, 2926.0, 2192.0, 2208.0)]),
|
||||
("GCC 16, -O2", [("count_numbers", 2254.0, 3653.0, 2863.0, 2854.0), ("server_config", 2984.0, 4589.0, 3913.0, 3897.0)]),
|
||||
]
|
||||
PRICE_SERIES = [("3.13.0", "nj-charts-c2"), ("3.13.0, precompiled header", "nj-charts-c1"), ("3.13.0, module", "nj-charts-c3")]
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"": {
|
||||
"name": "check-mermaid",
|
||||
"dependencies": {
|
||||
"jsdom": "31.0.0",
|
||||
"jsdom": "31.0.1",
|
||||
"mermaid": "12.3.0"
|
||||
}
|
||||
},
|
||||
@@ -1109,9 +1109,9 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/jsdom": {
|
||||
"version": "31.0.0",
|
||||
"resolved": "https://registry.npmjs.org/jsdom/-/jsdom-31.0.0.tgz",
|
||||
"integrity": "sha512-xAkhD9z1eyFC5+QUi9K24CaZJgdCQ2GOGLW1GdVDoQvkp/AxEH9TQ0pAplPOlIiV92hfcgnFOADZypbjgbBT6Q==",
|
||||
"version": "31.0.1",
|
||||
"resolved": "https://registry.npmjs.org/jsdom/-/jsdom-31.0.1.tgz",
|
||||
"integrity": "sha512-CbhJL8ZQg3eKswxSZth4QO9tW0jPIhmR0vtSXQSbKSfWbwIT6hoRc17wdHIVTQ43KI0mdV5iTJr3281IDgVZ5g==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@exodus/bytes": "^1.16.0",
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"description": "Validate the Mermaid diagrams of the documentation (see check_mermaid.mjs)",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"jsdom": "31.0.0",
|
||||
"jsdom": "31.0.1",
|
||||
"mermaid": "12.3.0"
|
||||
}
|
||||
}
|
||||
@@ -48,10 +48,11 @@ namespace detail
|
||||
{
|
||||
|
||||
/*!
|
||||
@brief implements the Grisu2 algorithm for binary to decimal floating-point
|
||||
conversion.
|
||||
@brief implements binary to decimal floating-point conversion: the shortest
|
||||
digits of Zmij (see zmij.hpp) for IEEE 754 binary64 numbers, and the Grisu2
|
||||
algorithm for all other formats.
|
||||
|
||||
This implementation is a slightly modified version of the reference
|
||||
The Grisu2 implementation is a slightly modified version of the reference
|
||||
implementation which may be obtained from
|
||||
http://florian.loitsch.com/publications (bench.tar.gz).
|
||||
|
||||
|
||||
@@ -48,30 +48,47 @@ namespace detail
|
||||
* leave j with the type of the new value, but the pointer to the destroyed old one.
|
||||
*/
|
||||
|
||||
// a move iterator over the elements of an rvalue container, unless they are
|
||||
// const (e.g., std::set): libstdc++ before GCC 5 defines the reference of a
|
||||
// std::move_iterator as value_type&&, which cannot bind to a const element
|
||||
template<typename Iterator>
|
||||
std::move_iterator<Iterator> make_move_iterator_if_mutable_impl(const Iterator& it, std::true_type /*mutable*/)
|
||||
{
|
||||
return std::make_move_iterator(it);
|
||||
}
|
||||
// reference type of the elements of a const T
|
||||
template<typename T>
|
||||
using const_range_reference_t = decltype(*std::declval<iterator_t<const T>&>());
|
||||
|
||||
template<typename Iterator>
|
||||
Iterator make_move_iterator_if_mutable_impl(const Iterator& it, std::false_type /*mutable*/)
|
||||
{
|
||||
return it;
|
||||
}
|
||||
// a container that owns its elements propagates constness to them (deep
|
||||
// constness): the elements of a const std::vector<std::string> are const. A
|
||||
// non-owning range (a span, an iterator range) has shallow constness: a const
|
||||
// span still gives mutable access to the elements it refers to. Moving from an
|
||||
// rvalue of such a range would empty the storage it refers to, so the elements
|
||||
// of an rvalue range are only moved if it has deep constness.
|
||||
template<typename T>
|
||||
using owns_its_elements = std::is_const<typename std::remove_reference<detected_t<const_range_reference_t, T>>::type>;
|
||||
|
||||
template<typename Iterator>
|
||||
using is_mutable_iterator = std::integral_constant < bool,
|
||||
!std::is_const<typename std::remove_reference<decltype(*std::declval<Iterator&>())>::type>::value >;
|
||||
|
||||
// a move iterator over the elements of an rvalue container that owns them,
|
||||
// unless they are const (e.g., std::set): libstdc++ before GCC 5 defines the
|
||||
// reference of a std::move_iterator as value_type&&, which cannot bind to a
|
||||
// const element
|
||||
template<typename Iterator>
|
||||
auto make_move_iterator_if_mutable(const Iterator& it)
|
||||
-> decltype(make_move_iterator_if_mutable_impl(it, is_mutable_iterator<Iterator> {}))
|
||||
std::move_iterator<Iterator> make_move_iterator_if_impl(const Iterator& it, std::true_type /*move*/)
|
||||
{
|
||||
return make_move_iterator_if_mutable_impl(it, is_mutable_iterator<Iterator> {});
|
||||
return std::make_move_iterator(it);
|
||||
}
|
||||
|
||||
template<typename Iterator>
|
||||
Iterator make_move_iterator_if_impl(const Iterator& it, std::false_type /*move*/)
|
||||
{
|
||||
return it;
|
||||
}
|
||||
|
||||
template<typename Container, typename Iterator>
|
||||
using moves_elements = conjunction<owns_its_elements<Container>, is_mutable_iterator<Iterator>>;
|
||||
|
||||
template<typename Container, typename Iterator>
|
||||
auto make_move_iterator_if_owned(const Iterator& it)
|
||||
-> decltype(make_move_iterator_if_impl(it, moves_elements<Container, Iterator> {}))
|
||||
{
|
||||
return make_move_iterator_if_impl(it, moves_elements<Container, Iterator> {});
|
||||
}
|
||||
|
||||
template<value_t> struct external_constructor;
|
||||
@@ -193,14 +210,14 @@ struct external_constructor<value_t::array>
|
||||
j.replace_value(value_t::array, value);
|
||||
}
|
||||
|
||||
/// an rvalue container: move its elements
|
||||
/// an rvalue container: move its elements if it owns them
|
||||
template<typename BasicJsonType, typename CompatibleArrayType>
|
||||
static void construct_moving(BasicJsonType& j, CompatibleArrayType& arr)
|
||||
{
|
||||
using std::begin;
|
||||
using std::end;
|
||||
|
||||
const typename BasicJsonType::json_value value(j.template create<typename BasicJsonType::array_t>(make_move_iterator_if_mutable(begin(arr)), make_move_iterator_if_mutable(end(arr))));
|
||||
const typename BasicJsonType::json_value value(j.template create<typename BasicJsonType::array_t>(make_move_iterator_if_owned<CompatibleArrayType>(begin(arr)), make_move_iterator_if_owned<CompatibleArrayType>(end(arr))));
|
||||
j.replace_value(value_t::array, value);
|
||||
}
|
||||
|
||||
@@ -254,14 +271,14 @@ struct external_constructor<value_t::object>
|
||||
j.replace_value(value_t::object, value);
|
||||
}
|
||||
|
||||
/// an rvalue container: move its values
|
||||
/// an rvalue container: move its values if it owns them
|
||||
template<typename BasicJsonType, typename CompatibleObjectType>
|
||||
static void construct_moving(BasicJsonType& j, CompatibleObjectType& obj)
|
||||
{
|
||||
using std::begin;
|
||||
using std::end;
|
||||
|
||||
const typename BasicJsonType::json_value value(j.template create<typename BasicJsonType::object_t>(make_move_iterator_if_mutable(begin(obj)), make_move_iterator_if_mutable(end(obj))));
|
||||
const typename BasicJsonType::json_value value(j.template create<typename BasicJsonType::object_t>(make_move_iterator_if_owned<CompatibleObjectType>(begin(obj)), make_move_iterator_if_owned<CompatibleObjectType>(end(obj))));
|
||||
j.replace_value(value_t::object, value);
|
||||
}
|
||||
|
||||
@@ -456,7 +473,8 @@ using is_rvalue_array_to_json = conjunction<is_movable_container_rvalue<T>,
|
||||
is_compatible_string_type<BasicJsonType, T>,
|
||||
is_compatible_binary_type<BasicJsonType, T>>>>;
|
||||
|
||||
// rvalue containers: their elements are moved instead of copied
|
||||
// rvalue containers: their elements are moved instead of copied if the
|
||||
// container owns them (see owns_its_elements)
|
||||
template<typename BasicJsonType, typename CompatibleArrayType,
|
||||
enable_if_t<is_rvalue_array_to_json<BasicJsonType, CompatibleArrayType>::value, int> = 0>
|
||||
inline void to_json(BasicJsonType& j, CompatibleArrayType && arr) // NOLINT(cppcoreguidelines-missing-std-forward)
|
||||
|
||||
@@ -88,8 +88,9 @@ JSON_INLINE_VARIABLE constexpr std::size_t max_valueless_container_size = 1 << 2
|
||||
|
||||
The limit @ref max_valueless_container_size applies to each container on its
|
||||
own, so on its own it lets 9 bytes announce 1048576 values, and every further
|
||||
8 bytes (a row of an optimized array of arrays) another 1048576. The elements of all containers of a valueless type
|
||||
in one input are therefore added up, and the sum must stay below this base
|
||||
8 bytes (a row of an optimized array of arrays) another 1048576. The elements
|
||||
of all containers of a valueless type in one input are therefore added up, and
|
||||
the sum must stay below this base
|
||||
plus @ref valueless_elements_per_byte for every byte read so far. The base is
|
||||
the per-container limit, so a container that was accepted on its own before
|
||||
the sum was introduced is still accepted at the start of an input.
|
||||
@@ -299,6 +300,17 @@ class binary_reader
|
||||
JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
|
||||
}
|
||||
|
||||
// BON8: a string ends at the first byte that cannot continue it. If
|
||||
// that byte follows the value, the reader has already taken it from
|
||||
// the input and holds it in bon8_pushback. Without the end-of-input
|
||||
// check below it would be dropped, and the next read would start
|
||||
// behind it, so report the missing 0xFF instead.
|
||||
if (result && !strict && input_format == input_format_t::bon8 && bon8_pushback_size != 0)
|
||||
{
|
||||
get_bon8();
|
||||
return last_byte_error(exception_id::unexpected_end_of_input, "string at the end of the value is not terminated by 0xFF", "value", "");
|
||||
}
|
||||
|
||||
// strict mode: next byte must be EOF
|
||||
if (result && strict)
|
||||
{
|
||||
@@ -1915,6 +1927,21 @@ class binary_reader
|
||||
return result;
|
||||
}
|
||||
|
||||
/*!
|
||||
@brief move past a value of @a size bytes, starting with @a head, that a
|
||||
bulk run reads, as get() and get_number() would
|
||||
|
||||
Called before the value is passed on, so that an error reported while
|
||||
passing it on (see @ref emit_float) has the position and the last byte
|
||||
that reading the value byte by byte gives.
|
||||
*/
|
||||
void bulk_advance(const std::size_t size, const unsigned char head)
|
||||
{
|
||||
ia.bulk_skip(size);
|
||||
chars_read += size;
|
||||
current = head;
|
||||
}
|
||||
|
||||
/*!
|
||||
@brief read the integers, floats, booleans, and nulls that follow in a
|
||||
definite-length array, without the per-element bookkeeping of
|
||||
@@ -1940,71 +1967,70 @@ class binary_reader
|
||||
{
|
||||
const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
|
||||
const unsigned char head = data[0];
|
||||
std::size_t size = 0;
|
||||
bool accepted = false;
|
||||
switch (head)
|
||||
{
|
||||
case 0x18:
|
||||
size = 2;
|
||||
bulk_advance(2, head);
|
||||
accepted = emit_unsigned(data[1]);
|
||||
break;
|
||||
case 0x19:
|
||||
size = 3;
|
||||
bulk_advance(3, head);
|
||||
accepted = emit_unsigned(load_big_endian<std::uint16_t>(data + 1));
|
||||
break;
|
||||
case 0x1A:
|
||||
size = 5;
|
||||
bulk_advance(5, head);
|
||||
accepted = emit_unsigned(load_big_endian<std::uint32_t>(data + 1));
|
||||
break;
|
||||
case 0x1B:
|
||||
size = 9;
|
||||
bulk_advance(9, head);
|
||||
accepted = emit_unsigned(load_big_endian<std::uint64_t>(data + 1));
|
||||
break;
|
||||
case 0x38:
|
||||
size = 2;
|
||||
bulk_advance(2, head);
|
||||
accepted = emit_cbor_negative_integer(data[1]);
|
||||
break;
|
||||
case 0x39:
|
||||
size = 3;
|
||||
bulk_advance(3, head);
|
||||
accepted = emit_cbor_negative_integer(load_big_endian<std::uint16_t>(data + 1));
|
||||
break;
|
||||
case 0x3A:
|
||||
size = 5;
|
||||
bulk_advance(5, head);
|
||||
accepted = emit_cbor_negative_integer(load_big_endian<std::uint32_t>(data + 1));
|
||||
break;
|
||||
case 0x3B:
|
||||
size = 9;
|
||||
bulk_advance(9, head);
|
||||
accepted = emit_cbor_negative_integer(load_big_endian<std::uint64_t>(data + 1));
|
||||
break;
|
||||
case 0xF4:
|
||||
size = 1;
|
||||
bulk_advance(1, head);
|
||||
accepted = sax->boolean(false);
|
||||
break;
|
||||
case 0xF5:
|
||||
size = 1;
|
||||
bulk_advance(1, head);
|
||||
accepted = sax->boolean(true);
|
||||
break;
|
||||
case 0xF6:
|
||||
size = 1;
|
||||
bulk_advance(1, head);
|
||||
accepted = sax->null();
|
||||
break;
|
||||
case 0xFA:
|
||||
size = 5;
|
||||
bulk_advance(5, head);
|
||||
accepted = emit_float(load_big_endian<float>(data + 1));
|
||||
break;
|
||||
case 0xFB:
|
||||
size = 9;
|
||||
bulk_advance(9, head);
|
||||
accepted = emit_float(load_big_endian<double>(data + 1));
|
||||
break;
|
||||
default:
|
||||
if (head <= 0x17)
|
||||
{
|
||||
size = 1;
|
||||
bulk_advance(1, head);
|
||||
accepted = sax->number_unsigned(static_cast<number_unsigned_t>(head));
|
||||
}
|
||||
else if (head >= 0x20 && head <= 0x37)
|
||||
{
|
||||
size = 1;
|
||||
bulk_advance(1, head);
|
||||
accepted = sax->number_integer(static_cast<std::int8_t>(0x20 - 1 - head));
|
||||
}
|
||||
else
|
||||
@@ -2014,10 +2040,6 @@ class binary_reader
|
||||
}
|
||||
break;
|
||||
}
|
||||
// as if read by get() and get_number(): current is the head byte
|
||||
ia.bulk_skip(size);
|
||||
chars_read += size;
|
||||
current = head;
|
||||
--remaining;
|
||||
if (JSON_HEDLEY_UNLIKELY(!accepted))
|
||||
{
|
||||
@@ -2855,73 +2877,72 @@ class binary_reader
|
||||
{
|
||||
const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
|
||||
const unsigned char head = data[0];
|
||||
std::size_t size = 0;
|
||||
bool accepted = false;
|
||||
switch (head)
|
||||
{
|
||||
case 0xC0: // nil
|
||||
size = 1;
|
||||
bulk_advance(1, head);
|
||||
accepted = sax->null();
|
||||
break;
|
||||
case 0xC2: // false
|
||||
size = 1;
|
||||
bulk_advance(1, head);
|
||||
accepted = sax->boolean(false);
|
||||
break;
|
||||
case 0xC3: // true
|
||||
size = 1;
|
||||
bulk_advance(1, head);
|
||||
accepted = sax->boolean(true);
|
||||
break;
|
||||
case 0xCA: // float 32
|
||||
size = 5;
|
||||
bulk_advance(5, head);
|
||||
accepted = emit_float(load_big_endian<float>(data + 1));
|
||||
break;
|
||||
case 0xCB: // float 64
|
||||
size = 9;
|
||||
bulk_advance(9, head);
|
||||
accepted = emit_float(load_big_endian<double>(data + 1));
|
||||
break;
|
||||
case 0xCC: // uint 8
|
||||
size = 2;
|
||||
bulk_advance(2, head);
|
||||
accepted = emit_unsigned(data[1]);
|
||||
break;
|
||||
case 0xCD: // uint 16
|
||||
size = 3;
|
||||
bulk_advance(3, head);
|
||||
accepted = emit_unsigned(load_big_endian<std::uint16_t>(data + 1));
|
||||
break;
|
||||
case 0xCE: // uint 32
|
||||
size = 5;
|
||||
bulk_advance(5, head);
|
||||
accepted = emit_unsigned(load_big_endian<std::uint32_t>(data + 1));
|
||||
break;
|
||||
case 0xCF: // uint 64
|
||||
size = 9;
|
||||
bulk_advance(9, head);
|
||||
accepted = emit_unsigned(load_big_endian<std::uint64_t>(data + 1));
|
||||
break;
|
||||
case 0xD0: // int 8
|
||||
size = 2;
|
||||
bulk_advance(2, head);
|
||||
accepted = emit_signed(static_cast<std::int8_t>(data[1]));
|
||||
break;
|
||||
case 0xD1: // int 16
|
||||
size = 3;
|
||||
bulk_advance(3, head);
|
||||
accepted = emit_signed(load_big_endian<std::int16_t>(data + 1));
|
||||
break;
|
||||
case 0xD2: // int 32
|
||||
size = 5;
|
||||
bulk_advance(5, head);
|
||||
accepted = emit_signed(load_big_endian<std::int32_t>(data + 1));
|
||||
break;
|
||||
case 0xD3: // int 64
|
||||
size = 9;
|
||||
bulk_advance(9, head);
|
||||
accepted = emit_signed(load_big_endian<std::int64_t>(data + 1));
|
||||
break;
|
||||
default:
|
||||
if (head <= 0x7F)
|
||||
{
|
||||
// positive fixint
|
||||
size = 1;
|
||||
bulk_advance(1, head);
|
||||
accepted = sax->number_unsigned(static_cast<number_unsigned_t>(head));
|
||||
}
|
||||
else if (head >= 0xE0)
|
||||
{
|
||||
// negative fixint
|
||||
size = 1;
|
||||
bulk_advance(1, head);
|
||||
accepted = sax->number_integer(static_cast<std::int8_t>(head));
|
||||
}
|
||||
else
|
||||
@@ -2931,10 +2952,6 @@ class binary_reader
|
||||
}
|
||||
break;
|
||||
}
|
||||
// as if read by get() and get_number(): current is the last byte
|
||||
ia.bulk_skip(size);
|
||||
chars_read += size;
|
||||
current = data[size - 1];
|
||||
--remaining;
|
||||
if (JSON_HEDLEY_UNLIKELY(!accepted))
|
||||
{
|
||||
@@ -3838,6 +3855,7 @@ class binary_reader
|
||||
const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
|
||||
// UBJSON stores numbers big-endian, BJData little-endian
|
||||
const bool swap = is_little_endian != (input_format == input_format_t::bjdata);
|
||||
const std::size_t start = chars_read;
|
||||
std::size_t read = 0;
|
||||
bool accepted = true;
|
||||
while (read < count && accepted)
|
||||
@@ -3849,16 +3867,39 @@ class binary_reader
|
||||
byte_swap(number);
|
||||
}
|
||||
++read;
|
||||
// where passing the value on can report an error (see
|
||||
// emit_float), the position is that after the value, as if it
|
||||
// was read by get_number()
|
||||
set_chars_read(start + (read * size), std::integral_constant<bool, may_overflow_number_float<NumberType>()> {});
|
||||
accepted = emit_ubjson_number(number);
|
||||
}
|
||||
// as if read by get_number(): current is the last byte read
|
||||
// get_number() does not change current
|
||||
ia.bulk_skip(read * size);
|
||||
chars_read += read * size;
|
||||
current = data[(read * size) - 1];
|
||||
chars_read = start + (read * size);
|
||||
remaining -= read;
|
||||
return accepted;
|
||||
}
|
||||
|
||||
/*!
|
||||
@brief whether a value of type @a NumberType can be finite and still
|
||||
overflow number_float_t, which @ref emit_float reports as an error
|
||||
|
||||
False for the default number types, so that the loop in @ref
|
||||
parse_ubjson_typed_run need not track the position per value.
|
||||
*/
|
||||
template<typename NumberType>
|
||||
static constexpr bool may_overflow_number_float() noexcept
|
||||
{
|
||||
return static_cast<long double>((std::numeric_limits<number_float_t>::max)()) < static_cast<long double>((std::numeric_limits<NumberType>::max)());
|
||||
}
|
||||
|
||||
void set_chars_read(const std::size_t position, std::true_type /*track*/) noexcept
|
||||
{
|
||||
chars_read = position;
|
||||
}
|
||||
|
||||
void set_chars_read(const std::size_t /*position*/, std::false_type /*track*/) const noexcept {}
|
||||
|
||||
template<typename NumberType, enable_if_t<std::is_floating_point<NumberType>::value, int> = 0>
|
||||
bool emit_ubjson_number(const NumberType number)
|
||||
{
|
||||
@@ -4084,6 +4125,10 @@ class binary_reader
|
||||
auto number_lexer = detail::lexer<BasicJsonType, ia_type>(detail::input_adapter(number_vector), false);
|
||||
const auto result_number = number_lexer.scan();
|
||||
const auto number_string = number_lexer.get_token_string();
|
||||
// the number as the lexer read it, for SAX number_float(): unlike
|
||||
// get_token_string(), which is meant for error messages and shortens
|
||||
// long tokens, it is complete; the next scan() replaces it
|
||||
const string_t number_text = number_lexer.get_string();
|
||||
const auto result_remainder = number_lexer.scan();
|
||||
|
||||
using token_type = typename detail::lexer_base<BasicJsonType>::token_type;
|
||||
@@ -4110,10 +4155,7 @@ class binary_reader
|
||||
number_string,
|
||||
out_of_range::create(exception_id::number_overflow, concat("number overflow parsing '", number_string, '\''), nullptr));
|
||||
}
|
||||
// number_string is a std::string, while the SAX interface takes a
|
||||
// string_t; convert explicitly, as the two are only implicitly
|
||||
// convertible for some string types
|
||||
return sax->number_float(parsed_float, string_t(number_string.data(), number_string.size()));
|
||||
return sax->number_float(parsed_float, number_text);
|
||||
}
|
||||
case token_type::uninitialized:
|
||||
case token_type::literal_true:
|
||||
|
||||
@@ -110,87 +110,164 @@ inline const char* empty_input_message() noexcept
|
||||
return "attempting to parse an empty input; check that your input string or stream contains the expected JSON";
|
||||
}
|
||||
|
||||
////////////////////
|
||||
// input adapters //
|
||||
////////////////////
|
||||
|
||||
#ifndef JSON_NO_IO
|
||||
/*!
|
||||
@brief the characters of the last read token, kept for error messages
|
||||
|
||||
A growable array of characters for the part of a token that an input adapter
|
||||
copied out of its window: unlike std::vector<char>::push_back(), appending a
|
||||
character takes no reference to a local, and is a few instructions when there
|
||||
is room.
|
||||
copied out of its window, or that the lexer copies while it scans input it
|
||||
cannot read again: unlike std::vector::push_back(), appending a character
|
||||
takes no reference to a local, and is a few instructions when there is room.
|
||||
|
||||
The token is only needed for error messages, which show its first head()
|
||||
characters and its last head() characters (see lexer::get_token_string). The
|
||||
buffer therefore keeps the first head() and at least the last tail()
|
||||
characters: when it is full and holds more than limit() characters, it drops
|
||||
the characters in between instead of growing. That happens where it would
|
||||
otherwise reallocate, so appending stays as cheap as before, and a long string
|
||||
or a long run of whitespace read from a stream is not kept a second time.
|
||||
*/
|
||||
class token_carry_buffer
|
||||
template<typename CharType>
|
||||
class token_text_buffer
|
||||
{
|
||||
public:
|
||||
token_carry_buffer() = default;
|
||||
token_carry_buffer(const token_carry_buffer&) = delete;
|
||||
token_carry_buffer& operator=(const token_carry_buffer&) = delete;
|
||||
token_carry_buffer(token_carry_buffer&& rhs) noexcept
|
||||
static constexpr std::size_t head() noexcept
|
||||
{
|
||||
return 4096;
|
||||
}
|
||||
/// a little more than head(), as the last character may be handed back
|
||||
static constexpr std::size_t tail() noexcept
|
||||
{
|
||||
return head() + 16;
|
||||
}
|
||||
static constexpr std::size_t limit() noexcept
|
||||
{
|
||||
return head() + (2 * tail());
|
||||
}
|
||||
|
||||
token_text_buffer() = default;
|
||||
token_text_buffer(const token_text_buffer&) = delete;
|
||||
token_text_buffer& operator=(const token_text_buffer&) = delete;
|
||||
token_text_buffer(token_text_buffer&& rhs) noexcept
|
||||
: m_data(std::move(rhs.m_data)), m_end(rhs.m_end), m_capacity_end(rhs.m_capacity_end)
|
||||
{
|
||||
rhs.m_end = rhs.m_capacity_end = nullptr;
|
||||
}
|
||||
token_carry_buffer& operator=(token_carry_buffer&&) = delete;
|
||||
~token_carry_buffer() = default;
|
||||
token_text_buffer& operator=(token_text_buffer&& rhs) noexcept
|
||||
{
|
||||
m_data = std::move(rhs.m_data);
|
||||
m_end = rhs.m_end;
|
||||
m_capacity_end = rhs.m_capacity_end;
|
||||
rhs.m_end = rhs.m_capacity_end = nullptr;
|
||||
return *this;
|
||||
}
|
||||
~token_text_buffer() = default;
|
||||
|
||||
void clear() noexcept
|
||||
{
|
||||
m_end = m_data.get();
|
||||
}
|
||||
|
||||
void push_back(char c)
|
||||
bool empty() const noexcept
|
||||
{
|
||||
return m_end == m_data.get();
|
||||
}
|
||||
|
||||
void push_back(CharType c)
|
||||
{
|
||||
if (JSON_HEDLEY_UNLIKELY(m_end == m_capacity_end))
|
||||
{
|
||||
grow(1);
|
||||
make_room(1);
|
||||
}
|
||||
*m_end++ = c;
|
||||
}
|
||||
|
||||
void append(const char* first, const char* last)
|
||||
/// drop the last character
|
||||
void pop_back() noexcept
|
||||
{
|
||||
JSON_ASSERT(!empty());
|
||||
--m_end;
|
||||
}
|
||||
|
||||
void append(const CharType* first, const CharType* last)
|
||||
{
|
||||
const auto n = static_cast<std::size_t>(last - first);
|
||||
const auto room = static_cast<std::size_t>(m_capacity_end - m_end);
|
||||
if (n > room)
|
||||
if (JSON_HEDLEY_UNLIKELY(n > room))
|
||||
{
|
||||
grow(n);
|
||||
append_long(first, n);
|
||||
return;
|
||||
}
|
||||
if (n != 0)
|
||||
{
|
||||
std::memcpy(m_end, first, n);
|
||||
std::memcpy(m_end, first, n * sizeof(CharType));
|
||||
}
|
||||
m_end += n;
|
||||
}
|
||||
|
||||
/// replace the contents of @a out
|
||||
void copy_to(std::vector<char>& out) const
|
||||
void copy_to(std::vector<CharType>& out) const
|
||||
{
|
||||
out.assign(m_data.get(), m_end);
|
||||
}
|
||||
|
||||
private:
|
||||
/// make room for @a extra more characters
|
||||
JSON_HEDLEY_NEVER_INLINE void grow(std::size_t extra)
|
||||
/// append @a n characters that do not fit, in pieces of at most tail()
|
||||
/// characters, so that dropping the middle keeps the last tail() of them
|
||||
JSON_HEDLEY_NEVER_INLINE void append_long(const CharType* first, std::size_t n)
|
||||
{
|
||||
const auto size = static_cast<std::size_t>(m_end - m_data.get());
|
||||
const auto capacity = static_cast<std::size_t>(m_capacity_end - m_data.get());
|
||||
const std::size_t new_capacity = (std::max)(capacity < 32 ? static_cast<std::size_t>(32) : 2 * capacity, size + extra);
|
||||
std::unique_ptr<char[]> data(new char[new_capacity]); // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
|
||||
if (size != 0)
|
||||
while (n != 0)
|
||||
{
|
||||
std::memcpy(data.get(), m_data.get(), size);
|
||||
const std::size_t piece = n < tail() ? n : tail();
|
||||
make_room(piece);
|
||||
std::memcpy(m_end, first, piece * sizeof(CharType));
|
||||
m_end += piece;
|
||||
first += piece;
|
||||
n -= piece;
|
||||
}
|
||||
m_data = std::move(data);
|
||||
m_end = m_data.get() + size;
|
||||
m_capacity_end = m_data.get() + new_capacity;
|
||||
}
|
||||
|
||||
std::unique_ptr<char[]> m_data{}; // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays,readability-redundant-member-init)
|
||||
char* m_end = nullptr;
|
||||
char* m_capacity_end = nullptr;
|
||||
/// make room for @a extra (at most tail()) more characters: drop the
|
||||
/// middle of a long token instead of growing beyond limit()
|
||||
JSON_HEDLEY_NEVER_INLINE void make_room(std::size_t extra)
|
||||
{
|
||||
// nothing is allocated before the first character
|
||||
std::size_t size = m_data ? static_cast<std::size_t>(m_end - m_data.get()) : 0;
|
||||
if (size + extra > limit() && size > head() + tail())
|
||||
{
|
||||
std::memmove(m_data.get() + head(), m_end - tail(), tail() * sizeof(CharType));
|
||||
m_end = m_data.get() + head() + tail();
|
||||
size = head() + tail();
|
||||
}
|
||||
const std::size_t capacity = m_data ? static_cast<std::size_t>(m_capacity_end - m_data.get()) : 0;
|
||||
if (size + extra > capacity)
|
||||
{
|
||||
// never more than limit(): from there on, the middle is dropped
|
||||
const std::size_t doubled = capacity < 32 ? static_cast<std::size_t>(32) : 2 * capacity;
|
||||
const std::size_t new_capacity = (std::max)(doubled < limit() ? doubled : limit(), size + extra);
|
||||
std::unique_ptr<CharType[]> data(new CharType[new_capacity]); // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
|
||||
if (size != 0)
|
||||
{
|
||||
std::memcpy(data.get(), m_data.get(), size * sizeof(CharType));
|
||||
}
|
||||
m_data = std::move(data);
|
||||
m_end = m_data.get() + size;
|
||||
m_capacity_end = m_data.get() + new_capacity;
|
||||
}
|
||||
}
|
||||
|
||||
std::unique_ptr<CharType[]> m_data{}; // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays,readability-redundant-member-init)
|
||||
CharType* m_end = nullptr;
|
||||
CharType* m_capacity_end = nullptr;
|
||||
};
|
||||
|
||||
/// the part of a token that an input adapter copied out of its window
|
||||
using token_carry_buffer = token_text_buffer<char>;
|
||||
|
||||
////////////////////
|
||||
// input adapters //
|
||||
////////////////////
|
||||
|
||||
#ifndef JSON_NO_IO
|
||||
/*!
|
||||
Input adapter for stdio file access. The file is locked for the lifetime of the
|
||||
adapter and read with the unlocked stdio functions (see
|
||||
|
||||
@@ -215,6 +215,19 @@ template<typename ArrayType>
|
||||
inline void reserve_array(ArrayType& /*arr*/, std::size_t /*len*/, priority_tag<0> /*unused*/)
|
||||
{}
|
||||
|
||||
/// reserve capacity for @a count elements in array @a arr, where @a count is
|
||||
/// at most reserve_cap() already (see json_sax_dom_error_state::reserve_count)
|
||||
template<typename ArrayType>
|
||||
auto reserve_array_capped(ArrayType& arr, std::size_t count, priority_tag<1> /*unused*/)
|
||||
-> decltype(arr.reserve(count), void())
|
||||
{
|
||||
arr.reserve(count);
|
||||
}
|
||||
|
||||
template<typename ArrayType>
|
||||
inline void reserve_array_capped(ArrayType& /*arr*/, std::size_t /*count*/, priority_tag<0> /*unused*/)
|
||||
{}
|
||||
|
||||
/*!
|
||||
@brief reports an object or array whose announced size exceeds max_size()
|
||||
|
||||
@@ -457,32 +470,35 @@ class json_sax_dom_error_state
|
||||
announces more than what is left of that is given what is left, and
|
||||
grows as its elements arrive. Without the position of the input (the
|
||||
parser is not driven by a binary_reader that is running) nothing is
|
||||
bounded but the cap of reserve_array().
|
||||
bounded but reserve_cap() for each array.
|
||||
|
||||
The common case, an array that announces no more than the credit left,
|
||||
costs a comparison and a subtraction. It is charged what it announces, which
|
||||
for an array of more than reserve_cap() elements is more than reserve_array()
|
||||
reserves for it, which its own elements refill as they are read.
|
||||
The common case, an array whose reservation is no more than the credit
|
||||
left, costs a comparison and a subtraction. An array is charged what is
|
||||
reserved for it, at most reserve_cap() elements, not what it announces, so
|
||||
an array of more elements does not take credit from the arrays nested in
|
||||
it.
|
||||
*/
|
||||
std::size_t reserve_count(const std::size_t len) noexcept
|
||||
{
|
||||
if (JSON_HEDLEY_LIKELY(len <= reserve_credit))
|
||||
const std::size_t count = (std::min)(len, reserve_cap());
|
||||
if (JSON_HEDLEY_LIKELY(count <= reserve_credit))
|
||||
{
|
||||
reserve_credit -= len;
|
||||
return len;
|
||||
reserve_credit -= count;
|
||||
return count;
|
||||
}
|
||||
return reserve_count_slowly(len);
|
||||
return reserve_count_slowly(count);
|
||||
}
|
||||
|
||||
private:
|
||||
/// @a count is at most reserve_cap()
|
||||
JSON_HEDLEY_NEVER_INLINE
|
||||
std::size_t reserve_count_slowly(const std::size_t len) noexcept
|
||||
std::size_t reserve_count_slowly(std::size_t count) noexcept
|
||||
{
|
||||
constexpr std::size_t max_size = (std::numeric_limits<std::size_t>::max)();
|
||||
if (input_position == nullptr)
|
||||
{
|
||||
reserve_credit = max_size;
|
||||
return len;
|
||||
return count;
|
||||
}
|
||||
|
||||
// refill the credit with 'reserved_elements_per_byte' for every
|
||||
@@ -500,7 +516,6 @@ class json_sax_dom_error_state
|
||||
credit_position = position;
|
||||
}
|
||||
|
||||
std::size_t count = (std::min)(len, reserve_cap());
|
||||
count = (std::min)(count, reserve_credit);
|
||||
reserve_credit -= count;
|
||||
return count;
|
||||
@@ -1346,7 +1361,7 @@ class json_sax_dom_parser : public json_sax_dom_error_state
|
||||
|
||||
if (len != detail::unknown_size())
|
||||
{
|
||||
reserve_array(*ref->m_data.m_value.array, reserve_count(len), priority_tag<1> {});
|
||||
reserve_array_capped(*ref->m_data.m_value.array, reserve_count(len), priority_tag<1> {});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1694,7 +1709,7 @@ class json_sax_dom_binary_parser : public json_sax_dom_error_state
|
||||
|
||||
if (len != detail::unknown_size())
|
||||
{
|
||||
reserve_array(*ref_stack.back()->m_data.m_value.array, reserve_count(len), priority_tag<1> {});
|
||||
reserve_array_capped(*ref_stack.back()->m_data.m_value.array, reserve_count(len), priority_tag<1> {});
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -1986,7 +2001,7 @@ class json_sax_dom_callback_parser : public json_sax_dom_error_state
|
||||
|
||||
if (len != detail::unknown_size())
|
||||
{
|
||||
reserve_array(*ref_stack.back()->m_data.m_value.array, reserve_count(len), priority_tag<1> {});
|
||||
reserve_array_capped(*ref_stack.back()->m_data.m_value.array, reserve_count(len), priority_tag<1> {});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -494,7 +494,10 @@ class lexer : public lexer_base<BasicJsonType>
|
||||
/// streaming adapter: capture the characters
|
||||
void bulk_track_token(const char* data, std::size_t n, std::false_type /*lazy*/)
|
||||
{
|
||||
token_string.insert(token_string.end(), data, data + n);
|
||||
for (std::size_t i = 0; i < n; ++i)
|
||||
{
|
||||
token_string.push_back(static_cast<char_type>(data[i]));
|
||||
}
|
||||
}
|
||||
|
||||
/// streaming input: no bulk fast path
|
||||
@@ -2237,15 +2240,28 @@ scan_number_done:
|
||||
const std::size_t stop = ia.get_consumed_count() - (pending_real_unget ? 1u : 0u);
|
||||
if (JSON_HEDLEY_LIKELY(stop >= token_string_start))
|
||||
{
|
||||
ia.copy_consumed_range(token_string_start, stop, out);
|
||||
// only the beginning and the end of a long token are shown (see
|
||||
// get_token_string), so copy only these
|
||||
constexpr std::size_t head = token_text_buffer<char_type>::head();
|
||||
constexpr std::size_t tail = token_text_buffer<char_type>::tail();
|
||||
if (stop - token_string_start > head + tail)
|
||||
{
|
||||
ia.copy_consumed_range(token_string_start, token_string_start + head, out);
|
||||
ia.copy_consumed_range(stop - tail, stop, out);
|
||||
}
|
||||
else
|
||||
{
|
||||
ia.copy_consumed_range(token_string_start, stop, out);
|
||||
}
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
||||
/// streaming adapter: the token was copied eagerly while scanning
|
||||
const std::vector<char_type>& collect_token_chars(std::vector<char_type>& /*out*/, std::false_type /*lazy*/) const
|
||||
const std::vector<char_type>& collect_token_chars(std::vector<char_type>& out, std::false_type /*lazy*/) const
|
||||
{
|
||||
return token_string;
|
||||
token_string.copy_to(out);
|
||||
return out;
|
||||
}
|
||||
|
||||
/// return the last read token (for errors only). Will never contain EOF
|
||||
@@ -2256,10 +2272,86 @@ scan_number_done:
|
||||
std::vector<char_type> reconstructed;
|
||||
const std::vector<char_type>& chars = collect_token_chars(reconstructed, std::integral_constant<bool, lazy_token_string> {});
|
||||
|
||||
// escape control characters
|
||||
// a long token is shown by its first and its last head() characters;
|
||||
// the buffers that keep it while it is read keep no more than these
|
||||
// and a few more (see token_text_buffer)
|
||||
constexpr std::size_t shown = token_text_buffer<char_type>::head();
|
||||
std::string result;
|
||||
for (const auto c : chars)
|
||||
if (chars.size() > 2 * shown)
|
||||
{
|
||||
// the lexer reads bytes (wide characters arrive as UTF-8), so
|
||||
// move both cuts to character boundaries to keep the message
|
||||
// valid UTF-8; this only shortens the two parts
|
||||
const auto head_end = chars.begin() + static_cast<std::ptrdiff_t>(length_without_partial_utf8_at_end(chars.data(), shown));
|
||||
const auto tail_begin = chars.end() - static_cast<std::ptrdiff_t>(shown);
|
||||
append_escaped(result, chars.begin(), head_end);
|
||||
result += "...";
|
||||
append_escaped(result, tail_begin + static_cast<std::ptrdiff_t>(partial_utf8_length_at_start(&*tail_begin)), chars.end());
|
||||
}
|
||||
else
|
||||
{
|
||||
append_escaped(result, chars.begin(), chars.end());
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
private:
|
||||
/// whether @a c is a UTF-8 continuation byte
|
||||
static bool is_utf8_continuation(const char_type c) noexcept
|
||||
{
|
||||
return (static_cast<unsigned char>(c) & 0xC0u) == 0x80u;
|
||||
}
|
||||
|
||||
/*!
|
||||
@brief the length of the first @a n characters at @a data without a UTF-8
|
||||
character that begins there but does not end there
|
||||
|
||||
Looks only at the last 4 of these characters: in valid UTF-8, at most 3
|
||||
bytes of a character can be before the cut.
|
||||
*/
|
||||
static std::size_t length_without_partial_utf8_at_end(const char_type* data, const std::size_t n) noexcept
|
||||
{
|
||||
std::size_t lead = n - 1;
|
||||
while (lead > n - 4 && is_utf8_continuation(data[lead]))
|
||||
{
|
||||
--lead;
|
||||
}
|
||||
const auto c = static_cast<unsigned char>(data[lead]);
|
||||
std::size_t length = 1;
|
||||
if (c >= 0xF0u)
|
||||
{
|
||||
length = 4;
|
||||
}
|
||||
else if (c >= 0xE0u)
|
||||
{
|
||||
length = 3;
|
||||
}
|
||||
else if (c >= 0xC0u)
|
||||
{
|
||||
length = 2;
|
||||
}
|
||||
return lead + length > n ? lead : n;
|
||||
}
|
||||
|
||||
/// the number of UTF-8 continuation bytes (at most 3) at the start of @a data, which
|
||||
/// belong to a character that begins before it
|
||||
static std::size_t partial_utf8_length_at_start(const char_type* data) noexcept
|
||||
{
|
||||
std::size_t skip = 0;
|
||||
while (skip < 3 && is_utf8_continuation(data[skip]))
|
||||
{
|
||||
++skip;
|
||||
}
|
||||
return skip;
|
||||
}
|
||||
|
||||
/// append the characters [first, last) to @a result, escaping control characters
|
||||
template<typename Iterator>
|
||||
static void append_escaped(std::string& result, Iterator first, Iterator last)
|
||||
{
|
||||
for (; first != last; ++first)
|
||||
{
|
||||
const auto c = *first;
|
||||
if (static_cast<unsigned char>(c) <= '\x1F')
|
||||
{
|
||||
// escape control characters
|
||||
@@ -2273,10 +2365,10 @@ scan_number_done:
|
||||
result.push_back(static_cast<std::string::value_type>(c));
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
/// return syntax error message
|
||||
JSON_HEDLEY_RETURNS_NON_NULL
|
||||
constexpr const char* get_error_message() const noexcept
|
||||
@@ -2525,7 +2617,7 @@ scan_number_done:
|
||||
|
||||
/// raw input token string for error messages; only populated for streaming
|
||||
/// adapters (seekable adapters reconstruct it lazily via token_string_start)
|
||||
std::vector<char_type> token_string {};
|
||||
token_text_buffer<char_type> token_string {};
|
||||
|
||||
/// start offset of the current token within the input, used to reconstruct
|
||||
/// the last read token on error for seekable adapters (see collect_token_chars)
|
||||
|
||||
@@ -257,7 +257,7 @@ struct ieee_binary_format<53> // binary64
|
||||
|
||||
These formats (float, double, and long double where it is binary64, e.g.
|
||||
with MSVC or on Apple arm64) are converted by parse_float_native(). The
|
||||
predicate is the one the serializer uses to choose Grisu2.
|
||||
predicate is the one the serializer uses to choose to_chars() over snprintf.
|
||||
*/
|
||||
template<typename FloatType>
|
||||
struct has_native_float_format
|
||||
|
||||
@@ -108,7 +108,9 @@ class json_reverse_iterator : public std::reverse_iterator<Base>
|
||||
/// access to successor
|
||||
reference operator[](difference_type n) const
|
||||
{
|
||||
return *(this->operator+(n));
|
||||
// the element n positions after *this is the one n + 1 positions before base();
|
||||
// Base::operator[] then reports invalid_iterator.208 for object iterators
|
||||
return this->base()[-n - 1];
|
||||
}
|
||||
|
||||
/// return the key of an object iterator
|
||||
|
||||