From 926049ec0495e196e03f802fbfde78f0d82bd332 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Mar 2026 05:03:50 +0000 Subject: [PATCH 1/2] Bump github.com/ohler55/ojg from 1.28.0 to 1.28.1 Bumps [github.com/ohler55/ojg](https://github.com/ohler55/ojg) from 1.28.0 to 1.28.1. - [Release notes](https://github.com/ohler55/ojg/releases) - [Changelog](https://github.com/ohler55/ojg/blob/develop/CHANGELOG.md) - [Commits](https://github.com/ohler55/ojg/compare/v1.28.0...v1.28.1) --- updated-dependencies: - dependency-name: github.com/ohler55/ojg dependency-version: 1.28.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 383864b..d633d44 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/AsaiYusuke/jsonpath/v2 v2.2.0 github.com/PaesslerAG/jsonpath v0.1.1 github.com/bhmj/jsonslice v1.1.3 - github.com/ohler55/ojg v1.28.0 + github.com/ohler55/ojg v1.28.1 github.com/oliveagle/jsonpath v0.1.4 github.com/spyzhov/ajson v0.9.6 github.com/theory/jsonpath v0.11.0 diff --git a/go.sum b/go.sum index 5eef8a4..fce7ae5 100644 --- a/go.sum +++ b/go.sum @@ -24,8 +24,8 @@ github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NB github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/ohler55/ojg v1.28.0 h1:8xClBgMIRRJGDUC9xNe7NprP4kD2C3mQMeon3wY4KXA= -github.com/ohler55/ojg v1.28.0/go.mod h1:/Y5dGWkekv9ocnUixuETqiL58f+5pAsUfg5P8e7Pa2o= +github.com/ohler55/ojg v1.28.1 h1:Xy93DelhLSZNeWv8GPKtP6qMqkUlZlAxBP/AQcC5RfY= +github.com/ohler55/ojg v1.28.1/go.mod h1:/Y5dGWkekv9ocnUixuETqiL58f+5pAsUfg5P8e7Pa2o= github.com/oliveagle/jsonpath v0.1.4 h1:Sr/ffH5YSyQKjSNfvDFkQqAqh3kn/QxF/7j2jjpfOAI= github.com/oliveagle/jsonpath v0.1.4/go.mod h1:diWEHhuLqib29heQcHYHyaLcxFC3KpKa/5ihkZBs1Z8= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= From 0a98814f36cd978a3e2cbc072bd44f133410b9a7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Mon, 23 Mar 2026 05:04:42 +0000 Subject: [PATCH 2/2] update README for 45cecfc869f767847349b444b121453e964134d9 --- README.md | 32 ++++++++++++++++---------------- assets/bench_chart_complex.svg | 6 +++--- assets/bench_chart_simple.svg | 6 +++--- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 53e5822..a5110c0 100644 --- a/README.md +++ b/README.md @@ -68,16 +68,16 @@ Performance Detail: | Rank | Library | Time (ns/op) | Memory (B/op) | Allocations (allocs/op) | Relative speed (fastest = 1x) | |:------:|:-------------------------------|---------------:|----------------:|--------------------------:|--------------------------------:| -| 1 | AsaiYusuke/JSONPath (reuse) | 117.80 | 0 | 0 | 1.00x | -| 2 | AsaiYusuke/JSONPath | 167.80 | 64 | 1 | 1.42x | -| 3 | Yalp/JSONPath | 300.40 | 160 | 5 | 2.55x | -| 4 | oliveagle/JsonPath | 365.30 | 160 | 5 | 3.10x | -| 5 | ohler55/OjG (jp) | 541.50 | 1264 | 4 | 4.60x | -| 6 | theory/RFC 9535 JSONPath in Go | 749.90 | 448 | 19 | 6.37x | -| 7 | PaesslerAG/JSONPath | 1346.00 | 816 | 29 | 11.43x | -| 8 | vmware-labs/YAML JSONPath | 2107.00 | 1240 | 67 | 17.89x | -| 9 | Spyzhov/Abstract JSON | 2571.00 | 968 | 30 | 21.83x | -| 10 | bhmj/JSONSlice | 4273.00 | 312 | 13 | 36.27x | +| 1 | AsaiYusuke/JSONPath (reuse) | 113.40 | 0 | 0 | 1.00x | +| 2 | AsaiYusuke/JSONPath | 160.10 | 64 | 1 | 1.41x | +| 3 | Yalp/JSONPath | 263.90 | 160 | 5 | 2.33x | +| 4 | oliveagle/JsonPath | 343.60 | 160 | 5 | 3.03x | +| 5 | ohler55/OjG (jp) | 513.20 | 1264 | 4 | 4.53x | +| 6 | theory/RFC 9535 JSONPath in Go | 691.40 | 448 | 19 | 6.10x | +| 7 | PaesslerAG/JSONPath | 1191.00 | 816 | 29 | 10.50x | +| 8 | vmware-labs/YAML JSONPath | 1941.00 | 1240 | 67 | 17.12x | +| 9 | Spyzhov/Abstract JSON | 2190.00 | 968 | 30 | 19.31x | +| 10 | bhmj/JSONSlice | 3666.00 | 312 | 13 | 32.33x | ![Simple query benchmark (ns/op)](assets/bench_chart_simple.svg) @@ -104,12 +104,12 @@ Performance Detail: | Rank | Library | Time (ns/op) | Memory (B/op) | Allocations (allocs/op) | Relative speed (fastest = 1x) | |:------:|:-------------------------------|---------------:|----------------:|--------------------------:|--------------------------------:| -| 1 | AsaiYusuke/JSONPath (reuse) | 1151.00 | 80 | 2 | 1.00x | -| 2 | AsaiYusuke/JSONPath | 1203.00 | 96 | 3 | 1.05x | -| 3 | theory/RFC 9535 JSONPath in Go | 2392.00 | 528 | 33 | 2.08x | -| 4 | ohler55/OjG (jp) | 3952.00 | 6200 | 37 | 3.43x | -| 5 | Spyzhov/Abstract JSON | 15090.00 | 5464 | 222 | 13.11x | -| 6 | bhmj/JSONSlice | 15800.00 | 1728 | 35 | 13.73x | +| 1 | AsaiYusuke/JSONPath | 1161.00 | 96 | 3 | 1.00x | +| 2 | AsaiYusuke/JSONPath (reuse) | 1263.00 | 80 | 2 | 1.09x | +| 3 | theory/RFC 9535 JSONPath in Go | 2404.00 | 528 | 33 | 2.07x | +| 4 | ohler55/OjG (jp) | 3805.00 | 6200 | 37 | 3.28x | +| 5 | Spyzhov/Abstract JSON | 13765.00 | 5464 | 222 | 11.86x | +| 6 | bhmj/JSONSlice | 14849.00 | 1728 | 35 | 12.79x | ![Complex query benchmark (ns/op)](assets/bench_chart_complex.svg) diff --git a/assets/bench_chart_complex.svg b/assets/bench_chart_complex.svg index 4019e83..3938942 100644 --- a/assets/bench_chart_complex.svg +++ b/assets/bench_chart_complex.svg @@ -1,4 +1,4 @@ -Pygalbhmj/JSONSlice0.08333333333Spyzhov/Abstract JSON0.25ohler55/OjG (jp)0.4166666667theory/RFC 9535 JSONPath in Go0.5833333333AsaiYusuke/JSONPath0.75AsaiYusuke/JSONPath (reuse)0.916666666715800307.31412041997015180.12820512820514bhmj/JSONSlice15090294.07478579739796148.0769230769231Spyzhov/Abstract JSON395286.38505477456857116.02564102564102ohler55/OjG (jp)239257.2958125052550683.97435897435898theory/RFC 9535 JSONPath in Go120335.1245887499898351.923076923076934AsaiYusuke/JSONPath115134.15494734101271519.87179487179486AsaiYusuke/JSONPath (reuse)15800150903952239212031151 \ No newline at end of file +Pygalbhmj/JSONSlice0.08333333333Spyzhov/Abstract JSON0.25ohler55/OjG (jp)0.4166666667theory/RFC 9535 JSONPath in Go0.5833333333AsaiYusuke/JSONPath (reuse)0.75AsaiYusuke/JSONPath0.916666666714849307.31412041997180.12820512820514bhmj/JSONSlice13765285.80627174350786148.0769230769231Spyzhov/Abstract JSON380588.18803113690025116.02564102564102ohler55/OjG (jp)240460.3905256057900983.97435897435898theory/RFC 9535 JSONPath in Go126337.7517291668202851.923076923076934AsaiYusuke/JSONPath (reuse)116135.7279279075959919.87179487179486AsaiYusuke/JSONPath14849137653805240412631161 \ No newline at end of file diff --git a/assets/bench_chart_simple.svg b/assets/bench_chart_simple.svg index a551fb4..4d59f42 100644 --- a/assets/bench_chart_simple.svg +++ b/assets/bench_chart_simple.svg @@ -1,4 +1,4 @@ -Pygalbhmj/JSONSlice0.05Spyzhov/Abstract JSON0.15vmware-labs/YAML JSONPath0.25PaesslerAG/JSONPath0.35theory/RFC 9535 JSONPath in Go0.45ohler55/OjG (jp)0.55oliveagle/JsonPath0.65Yalp/JSONPath0.75AsaiYusuke/JSONPath0.85AsaiYusuke/JSONPath (reuse)0.954273314.50685332422813279.8076923076923bhmj/JSONSlice2571194.28959222768503250.96153846153842Spyzhov/Abstract JSON2107161.5159088265123222.1153846153846vmware-labs/YAML JSONPath1346107.76424273105445193.26923076923075PaesslerAG/JSONPath749.965.65994817191853164.4230769230769theory/RFC 9535 JSONPath in Go541.550.94004381673664135.57692307692307ohler55/OjG (jp)365.338.494520076894766106.73076923076924oliveagle/JsonPath300.433.9104423770324577.8846153846154Yalp/JSONPath167.824.5445147498869749.038461538461526AsaiYusuke/JSONPath117.821.0128678316571520.192307692307715AsaiYusuke/JSONPath (reuse)4273257121071346749.9541.5365.3300.4167.8117.8 \ No newline at end of file +Pygalbhmj/JSONSlice0.05Spyzhov/Abstract JSON0.15vmware-labs/YAML JSONPath0.25PaesslerAG/JSONPath0.35theory/RFC 9535 JSONPath in Go0.45ohler55/OjG (jp)0.55oliveagle/JsonPath0.65Yalp/JSONPath0.75AsaiYusuke/JSONPath0.85AsaiYusuke/JSONPath (reuse)0.953666314.5068533242281279.8076923076923bhmj/JSONSlice2190192.99068601579532250.96153846153842Spyzhov/Abstract JSON1941172.49100738449468222.1153846153846vmware-labs/YAML JSONPath1191110.74498741069755193.26923076923075PaesslerAG/JSONPath691.469.61390530548547164.4230769230769theory/RFC 9535 JSONPath in Go513.254.943050959711286135.57692307692307ohler55/OjG (jp)343.640.980217642969954106.73076923076924oliveagle/JsonPath263.934.41867392042111477.8846153846154Yalp/JSONPath160.125.87302475604758849.038461538461526AsaiYusuke/JSONPath113.422.0283059123458220.192307692307715AsaiYusuke/JSONPath (reuse)3666219019411191691.4513.2343.6263.9160.1113.4 \ No newline at end of file