json-model-compiler 2.0.50__tar.gz → 2.0.51__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/BACKLOG.md +41 -2
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/BENCH.md +21 -22
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/PKG-INFO +1 -1
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/SPEC.md +1 -0
- json_model_compiler-2.0.51/VERSION.md +820 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/about.sh +21 -7
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/clang.py +31 -336
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/convert.py +2 -0
- json_model_compiler-2.0.51/json_model/data/VERSION +1 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/data/jmc.pod +5 -1
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/export.py +1 -1
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/irep.py +12 -10
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/java.py +14 -6
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/javascript.py +6 -7
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/language.py +22 -13
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/objops.py +6 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/optim.py +55 -28
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/perl.py +9 -9
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/plpgsql.py +14 -6
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/predefs.py +13 -1
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/python.py +9 -4
- json_model_compiler-2.0.51/json_model/regex.py +320 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/c/json-model.c +4 -1
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/support.py +5 -1
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/script.py +11 -7
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/xstatic.py +21 -15
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model_compiler.egg-info/PKG-INFO +1 -1
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model_compiler.egg-info/SOURCES.txt +1 -0
- json_model_compiler-2.0.50/VERSION.md +0 -796
- json_model_compiler-2.0.50/json_model/data/VERSION +0 -1
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/.github/workflows/sanity.yml +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/.gitignore +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/.gitmodules +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/API.md +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/DESIGN.md +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/DEV.md +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/DOC.md +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/HOWTO.md +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/INTEGRATION.md +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/MANIFEST.in +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/Makefile +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/PUBS.md +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/README.md +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/TUTO.md +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/README.md +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/__init__.py +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/analyze.py +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/data/clang_entry.c +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/data/clang_free.c +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/data/clang_init.c +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/data/clang_pcre2_fun.c +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/data/clang_re2_fun.c +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/data/java_free.java +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/data/java_init.java +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/data/javascript_exe.js +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/data/javascript_foot.js +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/data/javascript_free.js +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/data/javascript_head.js +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/data/javascript_init.js +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/data/javascript_main.js +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/data/perl_entry.pl +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/data/perl_exe.pl +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/data/perl_free.pl +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/data/perl_init.pl +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/data/perl_main.pl +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/data/perl_pkg.pl +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/data/plpgsql_entry.sql +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/data/python_entry.py +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/data/python_exe.py +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/data/python_free.py +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/data/python_init.py +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/data/python_main.py +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/model.py +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/mtypes.py +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/recurse.py +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/resolver.py +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/Makefile +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/__init__.py +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/c/Makefile +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/c/json-model.h +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/c/main.c +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/java/.gitignore +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/java/Makefile +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/java/README.md +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/java/env.sh +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/java/json_model/Checker.java +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/java/json_model/GSON.java +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/java/json_model/JSON.java +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/java/json_model/JSONP.java +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/java/json_model/Jackson.java +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/java/json_model/Main.java +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/java/json_model/ModelChecker.java +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/java/json_model/Path.java +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/java/json_model/Report.java +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/java/json_model/Runtime.java +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/java/pom.xml +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/js/README.md +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/js/index.js +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/js/main.js +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/js/package.json +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/pl/.gitignore +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/pl/Changes +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/pl/LICENSE +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/pl/MANIFEST +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/pl/Makefile.PL +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/pl/README +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/pl/env.sh +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/pl/ignore.txt +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/pl/lib/JSON/JsonModel.pm +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/pl/t/00-load.t +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/pl/t/manifest.t +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/pl/t/pod-coverage.t +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/pl/t/pod.t +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/pl/xt/boilerplate.t +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/sql/META.json +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/sql/Makefile +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/sql/json_model--2.0.sql +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/sql/json_model.control +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/runtime/types.py +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/submodel.py +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/url_cache.py +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model/utils.py +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model_compiler.egg-info/dependency_links.txt +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model_compiler.egg-info/entry_points.txt +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model_compiler.egg-info/not-zip-safe +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model_compiler.egg-info/requires.txt +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/json_model_compiler.egg-info/top_level.txt +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/package.json +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/pyproject.toml +0 -0
- {json_model_compiler-2.0.50 → json_model_compiler-2.0.51}/setup.cfg +0 -0
|
@@ -2,11 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
## Current Tasks
|
|
4
4
|
|
|
5
|
+
- [ ] c-backend: factor out str extraction in or-list in more cases
|
|
6
|
+
- [ ] pl-backend: use short post-if where possible (filtering)
|
|
7
|
+
- [ ] pl-backend: use `unless` where appropriate (filtering?)
|
|
8
|
+
- [ ] js-backend: remove useless braces and semi-colons
|
|
9
|
+
- [ ] java-backend: remove useless braces
|
|
10
|
+
- [ ] export: generate a [katydid](https://katydid.github.io/) expression, for a compatible subset
|
|
11
|
+
- [ ] front: generate valid minimal, maximal and random values from a model
|
|
12
|
+
- [ ] front: generate invalid minimal values from a model
|
|
13
|
+
- [ ] optim: simplify some '!=' cases
|
|
14
|
+
- [ ] perf: run benchmark for formats/predefs enabled
|
|
15
|
+
- [ ] spec: allow to _remove_ definitions, eg `{ "$stuff": {"/": "$foo"}}`
|
|
16
|
+
- [ ] static: check for common object part
|
|
17
|
+
- [ ] perf: add another loop over performance collection?
|
|
18
|
+
- [ ] models: update ir model wrt recent changes
|
|
19
|
+
- [ ] tests: add test with ir model? on the fly?
|
|
20
|
+
- [ ] front: handle yaml values as well as json
|
|
21
|
+
- [ ] perf: drop and/or merge identical results when comparing
|
|
5
22
|
- [ ] backend: check `mv-34/mu` test case which may require some normalization
|
|
6
23
|
- [ ] runtime: count graphemes instead of characters? for Java, see `java.text.BreakIterator`
|
|
7
24
|
- [ ] pr: improve JSTS test results alignment between all backends (wip)
|
|
8
|
-
- [ ] js-runtime: check stability of `.mo` extension (wip: issue reported)
|
|
9
|
-
- [ ] js-backend: remove useless braces and semi-colons
|
|
10
25
|
- [ ] front: add argument groups
|
|
11
26
|
- [ ] front: merge many internal options to trigrams
|
|
12
27
|
- [ ] perf: add stddev performance computation
|
|
@@ -120,6 +135,30 @@
|
|
|
120
135
|
- [ ] predefs: add country codes, eg `$COUNTRY $COUNTRY2 $COUNTRY3 $COUNTRYN`
|
|
121
136
|
- [ ] spec: be precise about predefs standard references, eg `$DATE` and co.
|
|
122
137
|
|
|
138
|
+
## Internship
|
|
139
|
+
|
|
140
|
+
- [ ] pr: read www, papers, spec… setup dev env, report issues
|
|
141
|
+
- [ ] pr: try tutorial, report issues and suggest improvements
|
|
142
|
+
- [ ] tests: add a few tests for jsonrpc model
|
|
143
|
+
- [ ] model: write a model for MCP
|
|
144
|
+
- [ ] tests: add a few tests for MCP model
|
|
145
|
+
- [ ] model: update and test `ri.model.json`
|
|
146
|
+
- [ ] export: generate ts interfaces
|
|
147
|
+
- [ ] export: katydid?
|
|
148
|
+
- [ ] backend: improve generated code with filters for js, java, pl
|
|
149
|
+
- [ ] tests: improve predef validators cross-language consistency
|
|
150
|
+
- [ ] tests: generate invalid minimal, maximal, random values
|
|
151
|
+
- [ ] tests: generate invalid values on each constraint
|
|
152
|
+
- [ ] backend: C and runtime with other json lib
|
|
153
|
+
- [ ] backend: C++
|
|
154
|
+
- [ ] backend: go
|
|
155
|
+
- [ ] backend: php
|
|
156
|
+
- [ ] backend: ruby
|
|
157
|
+
- [ ] backend: rust
|
|
158
|
+
- [ ] export: generate annotated java interfaces/classes?
|
|
159
|
+
- [ ] tool: jmc api in flask
|
|
160
|
+
- [ ] front: allow IR re-entrance?
|
|
161
|
+
|
|
123
162
|
## Re Do
|
|
124
163
|
|
|
125
164
|
- [ ] pr: publish web page
|
|
@@ -9,21 +9,21 @@ schema to model converter in C, JS, Java (GSON, Jackson and JSONP using Johnzon)
|
|
|
9
9
|
|
|
10
10
|
## Recent Artifacts
|
|
11
11
|
|
|
12
|
+
Overall, depending on the chosen metrics, the JSU converter and JMC C backend are 50 to 90%
|
|
13
|
+
faster than Blaze in these artifacts.
|
|
14
|
+
|
|
15
|
+
- [2026062102](benchmarks/2026062102.md) clang, no predefs, jsu 0.9.10/jmc 2.0.50 vs sbc 16.0.0, 11 runs, 1000 iterations.
|
|
16
|
+
- [2026061700](benchmarks/2026061700.md) clang, no predefs, jsu 0.9.9/jmc 2.0.50 vs sbc 16.0.0, 11 runs, 1000 iterations.
|
|
17
|
+
- [2026061300](benchmarks/2026061300.md) clang, no predefs, jsu 0.9.9/jmc 2.0.50 vs sbc 15.11.0, 11 runs, 1000 iterations.
|
|
18
|
+
- [2026061000](benchmarks/2026061000.md) clang, no predefs, jsu 0.9.9/jmc 2.0.50 vs sbc 15.10.1, 11 runs, 1000 iterations.
|
|
19
|
+
- [2026061001](benchmarks/2026061001.md) clang, no predefs, jsu 0.9.9/jmc 2.0.50 vs sbc 15.10.0, 11 runs, 1000 iterations.
|
|
20
|
+
- [2026060900](benchmarks/2026060900.md) clang, no predefs, jsu 0.9.9/jmc 2.0.50 vs sbc 15.9.0, 11 runs, 1000 iterations.
|
|
21
|
+
- [2026060300](benchmarks/2026060300.md) clang, no predefs, jsu 0.9.9/jmc 2.0.50 vs sbc 15.8.0, 11 runs, 1000 iterations.
|
|
22
|
+
- [2026060200](benchmarks/2026060200.md) clang, no predefs, jsu 0.9.9/jmc 2.0.50 vs sbc 15.7.0, 11 runs, 1000 iterations.
|
|
23
|
+
- [2026052105](benchmarks/2026052105.md) clang, no predefs, jsu 0.9.9/jmc 2.0.50 vs sbc 15.6.3, 11 runs, 1000 iterations.
|
|
12
24
|
- [2026051900](benchmarks/2026051900.md) clang, no predefs, jsu 0.9.9/jmc 2.0.49 vs sbc 15.6.3, 11 runs, 1000 iterations.
|
|
13
25
|
- [2026051701](benchmarks/2026051701.md) clang, no predefs, jsu 0.9.9/jmc 2.0.49 vs sbc 15.6.2, 11 runs, 1000 iterations.
|
|
14
26
|
- [2026051200](benchmarks/2026051200.md) clang, no predefs, jsu 0.9.9/jmc 2.0.49 vs sbc 15.6.1, 11 runs, 1000 iterations.
|
|
15
|
-
- [2026050902](benchmarks/2026050902.md) clang, no predefs, jsu 0.9.9/jmc 2.0.49 vs sbc 15.6.0, 11 runs, 1000 iterations.
|
|
16
|
-
- [2026050900](benchmarks/2026050900.md) clang, no predefs, jsu 0.9.8/jmc 2.0b48 vs sbc 15.6.0, 11 runs, 1000 iterations.
|
|
17
|
-
- [2026050800](benchmarks/2026050800.md) clang, no predefs, jsu 0.9.8/jmc 2.0b48 vs sbc 15.5.0, 11 runs, 1000 iterations.
|
|
18
|
-
- [2026050703](benchmarks/2026050703.md) clang, no predefs, jsu 0.9.8/jmc 2.0b48 vs sbc 15.4.0, 11 runs, 1000 iterations.
|
|
19
|
-
- [2026050700](benchmarks/2026050700.md) clang, no predefs, jsu 0.9.6/jmc 2.0b46 vs sbc 15.4.0, 11 runs, 1000 iterations.
|
|
20
|
-
- [2026050304](benchmarks/2026050304.md) clang, no predefs, jsu 0.9.6/jmc 2.0b46 vs sbc 15.2.0, 11 runs, 1000 iterations.
|
|
21
|
-
- [2026042800](benchmarks/2026042800.md) clang, no predefs, jsu 0.9.6/jmc 2.0b45 vs sbc 15.2.0, 11 runs, 1000 iterations.
|
|
22
|
-
- [2026042700](benchmarks/2026042700.md) clang, no predefs, jsu 0.9.6/jmc 2.0b45 vs sbc 15.1.0, 11 runs, 1000 iterations.
|
|
23
|
-
- [2026042503](benchmarks/2026042503.md) clang, no predefs, jsu 0.9.6/jmc 2.0b45 vs sbc 15.0.0, 11 runs, 1000 iterations.
|
|
24
|
-
- [2026042500](benchmarks/2026042500.md) clang, no predefs, jsu 0.9.5/jmc 2.0b44 vs sbc 15.0.0, 11 runs, 1000 iterations.
|
|
25
|
-
- [2026042400](benchmarks/2026042400.md) clang, no predefs, jsu 0.9.4/jmc 2.0b43 vs sbc 15.0.0, 11 runs, 1000 iterations.
|
|
26
|
-
- [2026042001](benchmarks/2026042001.md) clang, no predefs, jsu 0.9.3/jmc 2.0b42 vs sbc 14.20.2, 11 runs, 1000 iterations.
|
|
27
27
|
|
|
28
28
|
## Benchmarking Script
|
|
29
29
|
|
|
@@ -74,11 +74,12 @@ the following caveats, and others:
|
|
|
74
74
|
- test cases may or may not be representative of specific use cases,
|
|
75
75
|
especially wrt schema/model and value sizes.
|
|
76
76
|
- the overall load on the test host can impact measures, as well as power control
|
|
77
|
-
features which adjust the cpu frequency in real time
|
|
77
|
+
features which adjust the cpu frequency in real time, thus the frequency may be set
|
|
78
|
+
explicitely, and effort are made to cap the load to limit its impact on measures.
|
|
78
79
|
- Relying on hyper-threading can reduce performance for simple one thread tasks,
|
|
79
80
|
so it is often disabled.
|
|
80
|
-
- the measure overhead is estimated and deduced from the performance figures,
|
|
81
|
-
which leads to potentially fuzzy results
|
|
81
|
+
- the measure overhead is estimated and deduced from the performance figures by default,
|
|
82
|
+
which leads to potentially fuzzy results when testing very small values.
|
|
82
83
|
- compilers, libraries and other design and updates can have dramatic effects:
|
|
83
84
|
for faster parsing, a library may use linked-list for properties, which means
|
|
84
85
|
that retrieving a given property value will cost more than a library which uses
|
|
@@ -87,7 +88,8 @@ the following caveats, and others:
|
|
|
87
88
|
so these checks may be disactivated (see `JMC_OPTS`) for fairness,
|
|
88
89
|
reducing the results significance.
|
|
89
90
|
- blaze uses its own special-purpose JSON representation which include a precomputed
|
|
90
|
-
custom hash for string comparisons, aleviating the need to compare strings
|
|
91
|
+
custom hash for string comparisons, aleviating the need to actually compare strings
|
|
92
|
+
in most cases.
|
|
91
93
|
- blaze is a C++ library, if interfaced from another language, the cost of translating
|
|
92
94
|
the JSON representation to this library should be taken into account;
|
|
93
95
|
in contrast, jmc uses native JSON representations in the target ecosystem and generate
|
|
@@ -97,7 +99,7 @@ the following caveats, and others:
|
|
|
97
99
|
model definitions compared to lax schemas…
|
|
98
100
|
- it is unclear whether JIT optimizations (eg Java and JS) may work around the
|
|
99
101
|
benchmarking loops and report undue very fast performances, eg on the GeoJSON case.
|
|
100
|
-
- some execution environment (eg Java)
|
|
102
|
+
- some execution environment (eg Java) take advantage of parallelism with threads (possibly
|
|
101
103
|
for the garbage collector and JIT), which may or may not be a blessing: it can reduce
|
|
102
104
|
the apparent latency (eg the gc runs in another thread) but have a detrimental overall
|
|
103
105
|
effect on throughput and costs as more cpu ressources are spent on the same task.
|
|
@@ -114,8 +116,8 @@ C, JS and Python backends, using the `jsu-compile` command.
|
|
|
114
116
|
It should be noted that benchmarking conditions are quite different compared to our own:
|
|
115
117
|
|
|
116
118
|
1. There is no loop to compute an average performance, but an initial _cold_ one-shot measure,
|
|
117
|
-
a warming phase loop and a _hot_ one-shot measure:
|
|
118
|
-
occasional GC runs.
|
|
119
|
+
a warming phase loop (up to 1000 rounds, kept under 10 seconds) and a _hot_ one-shot measure:
|
|
120
|
+
This may tend to mask effects from occasional GC runs.
|
|
119
121
|
2. The benchmark focuses on schema conformance, including (buggy) schemas which
|
|
120
122
|
are mostly dead code: It rejects tools which do not validate all strictly conformant
|
|
121
123
|
values, even if these values would be rejected by the target application.
|
|
@@ -126,6 +128,3 @@ It should be noted that benchmarking conditions are quite different compared to
|
|
|
126
128
|
4. The benchmark _removes_ format assertions before testing schemas.
|
|
127
129
|
5. The model used are strictly converted from schemas, native models are not used
|
|
128
130
|
even if available and schemas are not fixed for typical errors (eg misplaced keywords).
|
|
129
|
-
|
|
130
|
-
As of May 2026, the JSU C implementation is faster than Blaze on about 60% of benchmark cases
|
|
131
|
-
on these artifacts.
|
|
@@ -147,6 +147,7 @@ for all possible values for that type.
|
|
|
147
147
|
- `"$CARD"`: a credit card number with a Luhn checksum, eg _1234567890123452_
|
|
148
148
|
- `"$JSONPT"`: an RFC6901 json pointer, eg _/http:~1~1json-model.org_
|
|
149
149
|
- `"$TIMETZ"`: time with timezone
|
|
150
|
+
- `"$SEMVER"`: semantic versioning 2.0
|
|
150
151
|
|
|
151
152
|
Any other all-capital ASCII character and digit names must be rejected as they
|
|
152
153
|
are reserved for possible future predefs (eg URN, Luhn, ISBN, ISSN, EAN, DOI…).
|