json-model-compiler 2.0.56__tar.gz → 2.0.58__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.58/.github/workflows/docs.yml +41 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/.github/workflows/sanity.yml +5 -1
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/.gitignore +3 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/BACKLOG.md +6 -12
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/BENCH.md +28 -41
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/DEV.md +9 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/HOWTO.md +2 -3
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/Makefile +13 -3
- {json_model_compiler-2.0.56/json_model_compiler.egg-info → json_model_compiler-2.0.58}/PKG-INFO +6 -6
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/README.md +5 -5
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/VERSION.md +61 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/about.sh +14 -10
- json_model_compiler-2.0.58/bench.sh +36 -0
- json_model_compiler-2.0.58/json_model/data/VERSION +1 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/data/jmc.pod +1 -16
- json_model_compiler-2.0.58/json_model/data/perl_exe.pl +1 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/irep.py +146 -53
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/language.py +2 -1
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/perl.py +14 -5
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/python.py +12 -3
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/pl/Changes +8 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/pl/lib/JSON/JsonModel.pm +18 -9
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/script.py +34 -4
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/xstatic.py +2 -1
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58/json_model_compiler.egg-info}/PKG-INFO +6 -6
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model_compiler.egg-info/SOURCES.txt +2 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/pyproject.toml +14 -0
- json_model_compiler-2.0.56/json_model/data/VERSION +0 -1
- json_model_compiler-2.0.56/json_model/data/perl_exe.pl +0 -1
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/.gitmodules +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/API.md +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/DESIGN.md +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/DOC.md +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/INTEGRATION.md +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/MANIFEST.in +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/PUBS.md +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/SPEC.md +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/TUTO.md +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/README.md +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/__init__.py +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/analyze.py +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/clang.py +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/convert.py +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/data/clang_entry.c +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/data/clang_free.c +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/data/clang_init.c +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/data/clang_pcre2_fun.c +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/data/clang_re2_fun.c +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/data/java_free.java +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/data/java_init.java +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/data/javascript_exe.js +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/data/javascript_foot.js +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/data/javascript_free.js +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/data/javascript_head.js +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/data/javascript_init.js +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/data/javascript_main.js +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/data/perl_entry.pl +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/data/perl_free.pl +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/data/perl_init.pl +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/data/perl_main.pl +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/data/perl_pkg.pl +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/data/plpgsql_entry.sql +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/data/python_entry.py +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/data/python_exe.py +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/data/python_free.py +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/data/python_init.py +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/data/python_main.py +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/export.py +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/java.py +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/javascript.py +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/model.py +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/mtypes.py +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/objops.py +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/optim.py +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/plpgsql.py +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/predefs.py +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/recurse.py +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/regex.py +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/resolver.py +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/Makefile +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/__init__.py +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/c/Makefile +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/c/json-model.c +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/c/json-model.h +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/c/main.c +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/java/.gitignore +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/java/Makefile +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/java/README.md +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/java/env.sh +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/java/json_model/Checker.java +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/java/json_model/GSON.java +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/java/json_model/JSON.java +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/java/json_model/JSONP.java +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/java/json_model/Jackson.java +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/java/json_model/Main.java +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/java/json_model/ModelChecker.java +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/java/json_model/Path.java +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/java/json_model/Report.java +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/java/json_model/Runtime.java +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/java/pom.xml +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/js/README.md +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/js/index.js +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/js/main.js +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/js/package.json +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/pl/.gitignore +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/pl/LICENSE +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/pl/MANIFEST +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/pl/Makefile.PL +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/pl/README +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/pl/env.sh +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/pl/ignore.txt +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/pl/t/00-load.t +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/pl/t/manifest.t +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/pl/t/pod-coverage.t +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/pl/t/pod.t +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/pl/xt/boilerplate.t +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/sql/META.json +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/sql/Makefile +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/sql/json_model--2.0.sql +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/sql/json_model.control +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/support.py +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/runtime/types.py +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/submodel.py +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/ts_export.py +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/url_cache.py +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model/utils.py +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model_compiler.egg-info/dependency_links.txt +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model_compiler.egg-info/entry_points.txt +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model_compiler.egg-info/not-zip-safe +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model_compiler.egg-info/requires.txt +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/json_model_compiler.egg-info/top_level.txt +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/package.json +0 -0
- {json_model_compiler-2.0.56 → json_model_compiler-2.0.58}/setup.cfg +0 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
name: JMC Docs
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
- post
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
build:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v7
|
|
15
|
+
with:
|
|
16
|
+
submodules: true # for JSTS sources
|
|
17
|
+
fetch-depth: 30
|
|
18
|
+
fetch-tags: true
|
|
19
|
+
- name: Install dependencies
|
|
20
|
+
run: sudo apt install cloc make libpod-markdown-perl
|
|
21
|
+
- name: Update docsify base path for github.io
|
|
22
|
+
run: sed -i -e 's,https://json-model.org/,https://clairey-zx81.github.io/json-model/,' site/index.html
|
|
23
|
+
- name: Build site
|
|
24
|
+
run: make _site
|
|
25
|
+
- name: Upload documentation artifact
|
|
26
|
+
id: deployment
|
|
27
|
+
uses: actions/upload-pages-artifact@v5
|
|
28
|
+
# with: path: _site
|
|
29
|
+
deploy:
|
|
30
|
+
permissions:
|
|
31
|
+
id-token: write
|
|
32
|
+
pages: write
|
|
33
|
+
environment:
|
|
34
|
+
name: github-pages
|
|
35
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
36
|
+
runs-on: ubuntu-latest
|
|
37
|
+
needs: build
|
|
38
|
+
steps:
|
|
39
|
+
- name: Deploy to GitHub Pages
|
|
40
|
+
id: deployment
|
|
41
|
+
uses: actions/deploy-pages@v5
|
|
@@ -11,7 +11,11 @@ jobs:
|
|
|
11
11
|
- name: Checkout project
|
|
12
12
|
uses: actions/checkout@v7
|
|
13
13
|
- name: Set up Python
|
|
14
|
-
uses: actions/setup-python@
|
|
14
|
+
uses: actions/setup-python@v7
|
|
15
|
+
with:
|
|
16
|
+
python-version: '3.13'
|
|
17
|
+
# NOTE google-re2 / bazel error on freethreaded true
|
|
18
|
+
# freethreaded: true
|
|
15
19
|
- name: Install Package Stuff
|
|
16
20
|
run: make dev.py
|
|
17
21
|
- name: Sanity Check
|
|
@@ -1,32 +1,28 @@
|
|
|
1
|
-
# Backlog
|
|
1
|
+
# Backlog
|
|
2
2
|
|
|
3
3
|
## Current Tasks
|
|
4
4
|
|
|
5
|
+
- [ ] front: merge many internal options to trigrams
|
|
5
6
|
- [ ] bench: case failures handling needs some fixing
|
|
6
|
-
- [ ] tests: run tests inside docker image
|
|
7
7
|
- [ ] tests: check more bad urls (eg bad %-escape)
|
|
8
8
|
- [ ] tests: check pydantic generated classes
|
|
9
|
+
- [ ] tests: run dyn per model instead of per-dir
|
|
10
|
+
- [ ] tests: run language per model instead of per-dir
|
|
9
11
|
- [ ] static: use combined type test and value extraction when available?
|
|
10
|
-
- [ ] irep: cleanup `propesc2.c` (and others) variable res set but not used
|
|
11
12
|
- [ ] c-backend: factor out str extraction in or-list in more cases
|
|
12
13
|
- [ ] export: generate a [katydid](https://katydid.github.io/) expression, for a compatible subset
|
|
13
14
|
- [ ] static: recursive multi-discriminator hierarchisation? See UI5.
|
|
14
15
|
- [ ] static: factor out common checks on `&` with shared constraints?
|
|
16
|
+
- [ ] static: check for common object part?
|
|
15
17
|
- [ ] front: generate valid minimal, maximal and random values from a model
|
|
16
18
|
- [ ] front: generate invalid minimal values from a model
|
|
17
19
|
- [ ] optim: simplify some '!=' cases
|
|
18
20
|
- [ ] spec: allow to _remove_ definitions, eg `{ "$stuff": {"/": "$foo"}}`
|
|
19
|
-
- [ ] static: check for common object part
|
|
20
21
|
- [ ] perf: add another loop over performance collection?
|
|
21
|
-
- [ ] models: update ir model wrt recent changes
|
|
22
|
-
- [ ] tests: add test with ir model? on the fly?
|
|
23
|
-
- [ ] front: handle yaml values as well as json
|
|
24
22
|
- [ ] perf: drop and/or merge identical results when comparing
|
|
25
23
|
- [ ] backend: check `mv-34/mu` test case which may require some normalization
|
|
26
24
|
- [ ] runtime: count graphemes instead of characters? for Java, see `java.text.BreakIterator`
|
|
27
25
|
- [ ] pr: improve JSTS test results alignment between all backends (wip)
|
|
28
|
-
- [ ] front: add argument groups
|
|
29
|
-
- [ ] front: merge many internal options to trigrams
|
|
30
26
|
- [ ] perf: add stddev performance computation
|
|
31
27
|
- [ ] perf: improve resilience to bad overhead estimation
|
|
32
28
|
- [ ] perf: collect JSON parse times for comparison with validation times
|
|
@@ -52,9 +48,7 @@
|
|
|
52
48
|
- [ ] optim: remove props which match the default, in some cases?
|
|
53
49
|
- [ ] optim: regex list of words to enum?
|
|
54
50
|
- [ ] static: improve startswith pattern recognition `/^xyz.*/`
|
|
55
|
-
- [ ]
|
|
56
|
-
- [ ] test: add test categories (mark?)
|
|
57
|
-
- [ ] test: allow to skip some tests by category
|
|
51
|
+
- [ ] tests: fast mode which does not execute if source has not changed
|
|
58
52
|
- [ ] predefs: extension for _uri reference_, _iri reference_, _uri template_
|
|
59
53
|
- [ ] predefs: _url_ vs _uri_ vs _iri_
|
|
60
54
|
- [ ] predefs: improve `$URI` and `$URL`
|
|
@@ -4,10 +4,10 @@ The purpose of this benchmark is to compare JSON value validation performance fo
|
|
|
4
4
|
the same constraints, independently of the syntax used to express these constraints.
|
|
5
5
|
|
|
6
6
|
These artifacts compare
|
|
7
|
-
[JSON Model Compiler (
|
|
8
|
-
[JSON Schema Utils (
|
|
7
|
+
[JSON Model Compiler (JMC)](https://github.com/clairey-zx81/json-model) generated code using the
|
|
8
|
+
[JSON Schema Utils (JSU)](https://hub.docker.com/repository/docker/zx80/json-schema-utils)
|
|
9
9
|
schema to model converter in C, JS, Java (GSON, Jackson and JSONP using Johnzon) and Python with
|
|
10
|
-
[Sourcemeta Blaze CLI (
|
|
10
|
+
[Sourcemeta Blaze CLI (SBC)](https://github.com/sourcemeta/jsonschema) using test cases and values
|
|
11
11
|
from [JSON Schema Benchmark](https://github.com/sourcemeta-research/jsonschema-benchmark).
|
|
12
12
|
|
|
13
13
|
## Recent Artifacts
|
|
@@ -15,26 +15,10 @@ from [JSON Schema Benchmark](https://github.com/sourcemeta-research/jsonschema-b
|
|
|
15
15
|
Overall, depending on the chosen metrics, JMC with the C backend is 50-100% faster
|
|
16
16
|
than Blaze on average to validate JSON values in these artifacts.
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
- [2026080300](benchmarks/2026080300.md) jsu 0.9.16/jmc 2.0.55 vs sbc 16.4.0, content, fix.
|
|
23
|
-
- [2026080100](benchmarks/2026080100.md) jsu 0.9.16/jmc 2.0.55 vs sbc 16.3.0, content, no fix.
|
|
24
|
-
- [2026073100](benchmarks/2026073100.md) jsu 0.9.16/jmc 2.0.55 vs sbc 16.3.0, content, fix.
|
|
25
|
-
- [2026073003](benchmarks/2026073003.md) jsu 0.9.16/jmc 2.0.54 vs sbc 16.3.0, content, fix.
|
|
26
|
-
- [2026072902](benchmarks/2026072902.md) jsu 0.9.15/jmc 2.0.53 vs sbc 16.3.0, content, fix.
|
|
27
|
-
- [2026072900](benchmarks/2026072900.md) jsu 0.9.15/jmc 2.0.52 vs sbc 16.3.0, content, fix.
|
|
28
|
-
- [2026072600](benchmarks/2026072600.md) jsu 0.9.13/jmc 2.0.52 vs sbc 16.3.0, content, fix.
|
|
29
|
-
- [2026072200](benchmarks/2026072200.md) jsu 0.9.13/jmc 2.0.52 vs sbc 16.2.1, content, fix.
|
|
30
|
-
- [2026071700](benchmarks/2026071700.md) jsu 0.9.13/jmc 2.0.52 vs sbc 16.2.0, content, fix.
|
|
31
|
-
- [2026071302](benchmarks/2026071302.md) jsu 0.9.13/jmc 2.0.52 vs sbc 16.1.0, content, fix.
|
|
32
|
-
- [2026071000](benchmarks/2026071000.md) jsu 0.9.12/jmc 2.0.51 vs sbc 16.1.0, no content, fix.
|
|
33
|
-
- [2026070900](benchmarks/2026070900.md) jsu 0.9.11/jmc 2.0.51 vs sbc 16.1.0, no content, fix.
|
|
34
|
-
- [2026062200](benchmarks/2026062200.md) jsu 0.9.11/jmc 2.0.51 vs sbc 16.0.0, no content, fix.
|
|
35
|
-
- [2026062102](benchmarks/2026062102.md) jsu 0.9.10/jmc 2.0.50 vs sbc 16.0.0, no content, fix.
|
|
36
|
-
|
|
37
|
-
Options: _content_ validate string contents (format/predef), _fix_ improved models (bug fixes) or strictly schema compatible models.
|
|
18
|
+
BENCHES
|
|
19
|
+
|
|
20
|
+
Options: _content_ validate string contents (format/predef), _id_ use native models when available,
|
|
21
|
+
_fix_ use improved models (eg include some bug fixes, or more precise models).
|
|
38
22
|
|
|
39
23
|
## Benchmarking Script
|
|
40
24
|
|
|
@@ -51,7 +35,7 @@ It is typically started on a large host with the
|
|
|
51
35
|
which will spawn the necessary containers:
|
|
52
36
|
|
|
53
37
|
```sh
|
|
54
|
-
JMC=latest JMC_OPTS="--predef --cc=clang"
|
|
38
|
+
JMC=latest JMC_OPTS="--predef --cc=clang" \
|
|
55
39
|
nohup ./start_bench.sh latest -p 12 -l 1000 -r 5 -c &
|
|
56
40
|
# in the generated directory, look for the summary markdown and radar json files.
|
|
57
41
|
```
|
|
@@ -85,42 +69,42 @@ the run stops as soon as possible.
|
|
|
85
69
|
Note that performance figures **must** be taken with a pinch of salt, please consider
|
|
86
70
|
the following caveats, and others:
|
|
87
71
|
|
|
88
|
-
-
|
|
72
|
+
- Do you value latency or throuput or resource consumption? the answer is not so obvious,
|
|
89
73
|
probably you should prefer a high throuput _if_ the latency is good enough, but these
|
|
90
74
|
benchmark actually measure raw latency.
|
|
91
|
-
-
|
|
75
|
+
- Test cases may or may not be representative of specific use cases,
|
|
92
76
|
especially wrt schema/model and value sizes.
|
|
93
|
-
-
|
|
77
|
+
- The overall load on the test host can impact measures, as well as power control
|
|
94
78
|
features which adjust the cpu frequency in real time, thus the frequency may be set
|
|
95
79
|
explicitely, and effort are made to cap the load to limit its impact on measures.
|
|
96
80
|
- Relying on hyper-threading can reduce performance for simple one thread tasks,
|
|
97
81
|
so it is often disabled.
|
|
98
|
-
-
|
|
82
|
+
- The measure overhead is estimated and deduced from the performance figures by default,
|
|
99
83
|
which leads to potentially fuzzy results when testing very small values.
|
|
100
|
-
-
|
|
84
|
+
- Compilers, libraries and other design and updates can have dramatic effects:
|
|
101
85
|
for faster parsing, a library may use linked-list for properties, which means
|
|
102
86
|
that retrieving a given property value will cost more than a library which uses
|
|
103
87
|
a hash table which is more costly to build.
|
|
104
|
-
-
|
|
88
|
+
- Before version _16.0_, blaze does _not_ implement checking string values (eg dates, url…),
|
|
105
89
|
so these checks may be disactivated (see _Contents_ in _Parameters_) for fairness,
|
|
106
90
|
reducing the results significance.
|
|
107
|
-
-
|
|
91
|
+
- Blaze uses its own special-purpose JSON representation which include a precomputed
|
|
108
92
|
custom hash for string comparisons, aleviating the need to actually compare strings
|
|
109
93
|
in most cases.
|
|
110
|
-
-
|
|
94
|
+
- Blaze is a C++ library, if interfaced from another language, the cost of translating
|
|
111
95
|
the JSON representation to this library should be taken into account;
|
|
112
96
|
in contrast, jmc uses native JSON representations in the target ecosystem and generate
|
|
113
97
|
validation code around it.
|
|
114
|
-
-
|
|
98
|
+
- Due to intrinsic limitations of the underlying libraries and the quality of models or schemas,
|
|
115
99
|
some results may differ, mostly for good reasons: regex incompatibilities, stricter
|
|
116
100
|
model definitions compared to lax schemas…
|
|
117
|
-
-
|
|
101
|
+
- It is unclear whether JIT optimizations (eg Java and JS) may work around the
|
|
118
102
|
benchmarking loops and report undue very fast performances, eg on the GeoJSON case.
|
|
119
|
-
-
|
|
103
|
+
- Some execution environment (eg Java) take advantage of parallelism with threads (possibly
|
|
120
104
|
for the garbage collector and JIT), which may or may not be a blessing: it can reduce
|
|
121
105
|
the apparent latency (eg the gc runs in another thread) but have a detrimental overall
|
|
122
106
|
effect on throughput and costs as more cpu ressources are spent on the same task.
|
|
123
|
-
-
|
|
107
|
+
- Test values are mostly valid, which is representative of a typical use case, but
|
|
124
108
|
the tool accuracy should be asserted elsewhere with failing cases.
|
|
125
109
|
|
|
126
110
|
## Other Artifacts
|
|
@@ -137,13 +121,16 @@ It should be noted that benchmarking conditions are quite different compared to
|
|
|
137
121
|
1. There is no loop to compute an average performance, but an initial _cold_ one-shot measure,
|
|
138
122
|
a warming phase loop (up to 1000 rounds, kept under 10 seconds) and a _hot_ one-shot measure:
|
|
139
123
|
This may tend to mask effects from occasional GC runs.
|
|
140
|
-
2.
|
|
124
|
+
2. Performance data are collected on all tests taken together: this is less favorable to cache
|
|
125
|
+
effects, and makes it impossible to investigate individual test figures.
|
|
126
|
+
3. The benchmark focuses on schema conformance, including (buggy) schemas which
|
|
141
127
|
are mostly dead code: It rejects tools which do not validate all strictly conformant
|
|
142
128
|
values, even if these values would be rejected by the target application.
|
|
143
129
|
The model used are strictly converted from schemas, native models are not used
|
|
144
130
|
even if available and schemas are not fixed for typical errors (eg misplaced keywords).
|
|
145
|
-
3. Three schemas (`krakend`, `stale` and `yamllint`) in the test suites have been
|
|
146
|
-
[edited](https://github.com/sourcemeta-research/jsonschema-benchmark/commit/ad109eb210c0939bd8393da28d8212f75c1c2d92),
|
|
147
|
-
especially to deal corner cases issues with `$ref` under version 7 and prior,
|
|
148
|
-
thus do not conform to the initial official schemas.
|
|
149
131
|
4. The benchmark _removes_ format assertions before testing schemas.
|
|
132
|
+
|
|
133
|
+
Notably, three schemas (`krakend`, `stale` and `yamllint`) in the test suites have been
|
|
134
|
+
[edited](https://github.com/sourcemeta-research/jsonschema-benchmark/commit/ad109eb210c0939bd8393da28d8212f75c1c2d92),
|
|
135
|
+
as a work around corner cases issues with `$ref` under version 7 and prior,
|
|
136
|
+
thus do not conform to the initial official schemas.
|
|
@@ -132,6 +132,15 @@ make clean.js js # regenerate js stuff (and other languages)
|
|
|
132
132
|
make foo.CLEAN foo.ALL # clean/regenerate all stuff for case "foo"
|
|
133
133
|
```
|
|
134
134
|
|
|
135
|
+
### Tests in Docker Image
|
|
136
|
+
|
|
137
|
+
C, Java, JS, Perl and Python tests can run inside the docker image.
|
|
138
|
+
Some tests are skip, especially PL/pgSQL and JSON Schema Test Suite tests.
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
jmc exec make -C /app/json-model/tests check
|
|
142
|
+
```
|
|
143
|
+
|
|
135
144
|
## Code Doc
|
|
136
145
|
|
|
137
146
|
Read sources…
|
|
@@ -30,11 +30,10 @@ The `jmc` command can be install in a Python virtual environment from
|
|
|
30
30
|
[convenient wrapper](https://github.com/clairey-zx81/json-model/blob/main/container/jmc):
|
|
31
31
|
|
|
32
32
|
```sh
|
|
33
|
-
# podman
|
|
34
|
-
|
|
33
|
+
export POD="docker" # or "podman"
|
|
34
|
+
$POD pull docker.io/zx80/jmc
|
|
35
35
|
curl -o ./jmc https://raw.githubusercontent.com/clairey-zx81/json-model/refs/heads/main/container/jmc
|
|
36
36
|
chmod a+rx ./jmc
|
|
37
|
-
export POD="docker" # or "podman"
|
|
38
37
|
./jmc --version
|
|
39
38
|
./jmc --man
|
|
40
39
|
```
|
|
@@ -23,6 +23,7 @@ venv/.init:
|
|
|
23
23
|
|
|
24
24
|
venv/.dev: venv/.init
|
|
25
25
|
pip install -e .[dev]
|
|
26
|
+
[ -d ../json-schema-utils ] && pip intall -e ../json-schema-utils
|
|
26
27
|
touch $@
|
|
27
28
|
|
|
28
29
|
venv/.dist: venv/.dev
|
|
@@ -66,7 +67,8 @@ clean.js:
|
|
|
66
67
|
|
|
67
68
|
.PHONY: clean.site
|
|
68
69
|
clean.site:
|
|
69
|
-
$(RM) site/MODELS.md site/JMC.md site/ABOUT.md .about.md
|
|
70
|
+
$(RM) site/MODELS.md site/JMC.md site/ABOUT.md site/BENCH.md .about.md
|
|
71
|
+
$(RM) -r _site
|
|
70
72
|
|
|
71
73
|
.PHONY: clean.py
|
|
72
74
|
clean.py:
|
|
@@ -154,8 +156,11 @@ site/MODELS.md: Makefile models/
|
|
|
154
156
|
site/JMC.md: json_model/data/jmc.pod
|
|
155
157
|
pod2markdown $< > $@
|
|
156
158
|
|
|
159
|
+
site/BENCH.md: ./bench.sh
|
|
160
|
+
./$< > $@
|
|
161
|
+
|
|
157
162
|
# generate twice to include the about page in the counts
|
|
158
|
-
site/ABOUT.md: ./about.sh site/JMC.md site/MODELS.md
|
|
163
|
+
site/ABOUT.md: ./about.sh site/JMC.md site/MODELS.md site/BENCH.md
|
|
159
164
|
./$< > $@
|
|
160
165
|
./$< > .about.md
|
|
161
166
|
mv .about.md $@
|
|
@@ -166,6 +171,11 @@ jmc.1: json_model/data/jmc.pod dev
|
|
|
166
171
|
year=$$(date +%Y)
|
|
167
172
|
pod2man $< | sed "s/^\.TH JMC 1.*/.TH JMC 1 $$year \"v$$version\" \"User Documentation\"/" > $@
|
|
168
173
|
|
|
174
|
+
_site: build.site
|
|
175
|
+
cp -rL site _site
|
|
176
|
+
find _site -type d -print | xargs chmod a+rx
|
|
177
|
+
find _site -type f -print | xargs chmod a+r
|
|
178
|
+
|
|
169
179
|
.PHONY: www
|
|
170
180
|
www: build.site
|
|
171
181
|
# http://localhost:3000
|
|
@@ -178,7 +188,7 @@ www: build.site
|
|
|
178
188
|
-include local.mk
|
|
179
189
|
|
|
180
190
|
.PHONY: build.site
|
|
181
|
-
build.site: site/MODELS.md site/JMC.md site/ABOUT.md
|
|
191
|
+
build.site: site/MODELS.md site/JMC.md site/ABOUT.md site/BENCH.md
|
|
182
192
|
|
|
183
193
|
.PHONY: publish.site
|
|
184
194
|
publish.site: build.site
|
{json_model_compiler-2.0.56/json_model_compiler.egg-info → json_model_compiler-2.0.58}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: json_model_compiler
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.58
|
|
4
4
|
Summary: JSON Model Tools
|
|
5
5
|
Author: Fabien Coelho, Claire Yannou-Medrala
|
|
6
6
|
License-Expression: CC0-1.0
|
|
@@ -39,7 +39,7 @@ This reference implementation allows to generate code in Python, C, JavaScript,
|
|
|
39
39
|
PL/pgSQL, Perl and Java for checking a JSON value against a JSON model,
|
|
40
40
|
and to export models to JSON Schema or Pydantic.
|
|
41
41
|
|
|
42
|
-
It is dedicated to the
|
|
42
|
+
It is dedicated to the [Public Domain](https://creativecommons.org/public-domain/).
|
|
43
43
|
|
|
44
44
|
## JMC Command
|
|
45
45
|
|
|
@@ -160,16 +160,16 @@ See the [benchmark page](BENCH.md) for artifacts which compare various
|
|
|
160
160
|
[JSON Model Compiler](https://github.com/clairey-zx81/json-model) runs (C, JS, Java, Python) with
|
|
161
161
|
[Sourcemeta Blaze CLI](https://github.com/sourcemeta/jsonschema) as a baseline using test cases
|
|
162
162
|
from [JSON Schema Benchmark](https://github.com/sourcemeta-research/jsonschema-benchmark).
|
|
163
|
-
Overall, JMC-C implementation is faster than Blaze C++.
|
|
164
|
-
Moreover, JMC-
|
|
165
|
-
|
|
163
|
+
Overall, JMC-C implementation is about twice faster than Blaze C++.
|
|
164
|
+
Moreover, JMC-Java/GSON native implementations are only about 50% slower than Blaze C++,
|
|
165
|
+
and JMC-JS 200% slower, which given the intrinsic language capabilities is quite honorable.
|
|
166
166
|
|
|
167
167
|
## More Information
|
|
168
168
|
|
|
169
169
|
See the [JSON Model website](https://json-model.org),
|
|
170
170
|
which among many resources,
|
|
171
171
|
includes a [tutorial](TUTO.md) for a hands-on overview of JSON Model,
|
|
172
|
-
and links to [research papers](
|
|
172
|
+
and links to [research papers](PUBS.md) for explanations about the design.
|
|
173
173
|
|
|
174
174
|
## JSON Model Distribution
|
|
175
175
|
|
|
@@ -6,7 +6,7 @@ This reference implementation allows to generate code in Python, C, JavaScript,
|
|
|
6
6
|
PL/pgSQL, Perl and Java for checking a JSON value against a JSON model,
|
|
7
7
|
and to export models to JSON Schema or Pydantic.
|
|
8
8
|
|
|
9
|
-
It is dedicated to the
|
|
9
|
+
It is dedicated to the [Public Domain](https://creativecommons.org/public-domain/).
|
|
10
10
|
|
|
11
11
|
## JMC Command
|
|
12
12
|
|
|
@@ -127,16 +127,16 @@ See the [benchmark page](BENCH.md) for artifacts which compare various
|
|
|
127
127
|
[JSON Model Compiler](https://github.com/clairey-zx81/json-model) runs (C, JS, Java, Python) with
|
|
128
128
|
[Sourcemeta Blaze CLI](https://github.com/sourcemeta/jsonschema) as a baseline using test cases
|
|
129
129
|
from [JSON Schema Benchmark](https://github.com/sourcemeta-research/jsonschema-benchmark).
|
|
130
|
-
Overall, JMC-C implementation is faster than Blaze C++.
|
|
131
|
-
Moreover, JMC-
|
|
132
|
-
|
|
130
|
+
Overall, JMC-C implementation is about twice faster than Blaze C++.
|
|
131
|
+
Moreover, JMC-Java/GSON native implementations are only about 50% slower than Blaze C++,
|
|
132
|
+
and JMC-JS 200% slower, which given the intrinsic language capabilities is quite honorable.
|
|
133
133
|
|
|
134
134
|
## More Information
|
|
135
135
|
|
|
136
136
|
See the [JSON Model website](https://json-model.org),
|
|
137
137
|
which among many resources,
|
|
138
138
|
includes a [tutorial](TUTO.md) for a hands-on overview of JSON Model,
|
|
139
|
-
and links to [research papers](
|
|
139
|
+
and links to [research papers](PUBS.md) for explanations about the design.
|
|
140
140
|
|
|
141
141
|
## JSON Model Distribution
|
|
142
142
|
|
|
@@ -1,5 +1,66 @@
|
|
|
1
1
|
# JSON Model Compiler Versions
|
|
2
2
|
|
|
3
|
+
## 2.0.58 on 2026-08-24
|
|
4
|
+
|
|
5
|
+
- pr: improve bench script
|
|
6
|
+
- pr: test push post on github.io
|
|
7
|
+
- pr: switch cristalina to post after release
|
|
8
|
+
- bench: fix report nl before per-case performance table
|
|
9
|
+
- pr: ensure accuracy of version on about page
|
|
10
|
+
- irep: cleanup bool variable set but not used
|
|
11
|
+
- irep: move mif2if earlier, rework IR optimizations
|
|
12
|
+
- ci: tweak fetch depth to help docs version computation
|
|
13
|
+
- tests: add c/clean.c targets
|
|
14
|
+
- static: and list checks should always be likely
|
|
15
|
+
- tests: add missing java and pl language tests
|
|
16
|
+
- docker: install missing `Algorithm::LUHN` for perl JSB
|
|
17
|
+
- pr: better bench and about generated pages
|
|
18
|
+
- tests: ~allow to skip some tests with make, depending on available runtimes~
|
|
19
|
+
- tests: provide convenient targets for all tasks
|
|
20
|
+
- tests: display number of assertions checked
|
|
21
|
+
- front: add argument groups
|
|
22
|
+
- front: handle yaml values as well as json
|
|
23
|
+
- tests: add test markers for C, Java, JS, TS, Python, Perl, IR, PL/pgSQL, Schemas
|
|
24
|
+
- tests: allow to skip some tests by category (`not some-mark`)
|
|
25
|
+
- front: shorten jmc pod synopsis
|
|
26
|
+
- pr: configure explicit docsify base path
|
|
27
|
+
- pr: switch to docsify@5
|
|
28
|
+
- pr: improve some pages
|
|
29
|
+
- bench: improve standard report to match available data
|
|
30
|
+
- pl-backend: send perf to stderr as others
|
|
31
|
+
- pr: add typescript prettyprint
|
|
32
|
+
- irep: do not generate empty loops
|
|
33
|
+
- python: do not generate empty loops
|
|
34
|
+
- bench: fix number of iterations for python and perl under cap
|
|
35
|
+
- bench: run and report with java GSON only
|
|
36
|
+
- bench: ~run and report with perl?~ not interesting for now (x 200.0)
|
|
37
|
+
- tests: ~split some directories?~ no, use per-model
|
|
38
|
+
- tests: run values per model instead of per-dir
|
|
39
|
+
|
|
40
|
+
## 2.0.57 on 2026-08-18
|
|
41
|
+
|
|
42
|
+
- bench: improve reporting text
|
|
43
|
+
- bench: add tests on HT and Hz when starting bench
|
|
44
|
+
- pr: improve bench and about pages
|
|
45
|
+
- models: improve jmc-related models
|
|
46
|
+
- tests: merge testing files against a model in a directory
|
|
47
|
+
- tests: add jmc-bench model test
|
|
48
|
+
- bench: ensure fix/no-fix consistency
|
|
49
|
+
- dev: improve dev environment init
|
|
50
|
+
- tests: run tests inside docker image
|
|
51
|
+
- perl: fix bad double post condition
|
|
52
|
+
- perl: report error location
|
|
53
|
+
- tests: enable reporting with perl
|
|
54
|
+
- perl: fix uncleaned reports on pass
|
|
55
|
+
- perl: fix encoding of error message to use utf8
|
|
56
|
+
- perl: fix non deterministic output linked to `each`
|
|
57
|
+
- perl: fix model escaping in error messages
|
|
58
|
+
- bench: add cron job performance script
|
|
59
|
+
- bench: report summary speedup in radar labels
|
|
60
|
+
- pr: generate `BENCH.md` page links
|
|
61
|
+
- tests: test token push
|
|
62
|
+
- pr: create deployment script and cron and test
|
|
63
|
+
|
|
3
64
|
## 2.0.56 on 2026-08-07
|
|
4
65
|
|
|
5
66
|
- bench: use local models instead of fetching urls
|
|
@@ -5,20 +5,21 @@
|
|
|
5
5
|
|
|
6
6
|
echo "Generating ABOUT.md page…" >&2
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
git_hash=$(git show --pretty=format:"%h on %cs" --no-patch)
|
|
9
9
|
|
|
10
10
|
if type jmc > /dev/null ; then
|
|
11
11
|
version=$(jmc --version)
|
|
12
|
-
git_version=$
|
|
12
|
+
git_version=$git_hash
|
|
13
13
|
else
|
|
14
14
|
read version < json_model/data/VERSION
|
|
15
|
-
git_version="$(git rev-parse --abbrev-ref HEAD) $
|
|
15
|
+
git_version="$(git rev-parse --abbrev-ref HEAD) $git_hash"
|
|
16
16
|
fi
|
|
17
17
|
|
|
18
18
|
cat <<EOF
|
|
19
19
|
# About JSON Model
|
|
20
20
|
|
|
21
|
-
JSON Model is an on-going [research project](PUBS.md)
|
|
21
|
+
JSON Model is an on-going [research project](PUBS.md)
|
|
22
|
+
dedicated to the [Public Domain](https://creativecommons.org/public-domain/).
|
|
22
23
|
|
|
23
24
|
The following line and file counts about version **$version** (\`$git_version\`) show
|
|
24
25
|
that the compiler, code generator and runtimes are quite small, but still heavily tested
|
|
@@ -151,16 +152,19 @@ Test models cover the various features of JSON Model.
|
|
|
151
152
|
Each model is tested for each target language (Python, C, JavaScript, PL/pgSQL, Perl, Java)
|
|
152
153
|
on a set of test vectors.
|
|
153
154
|
|
|
154
|
-
-
|
|
155
|
-
-
|
|
156
|
-
-
|
|
157
|
-
-
|
|
155
|
+
- Number of test JSON models: _${n_models}_
|
|
156
|
+
- Total test JSON model locs: _${model_locs}_
|
|
157
|
+
- Number of test vector JSON values: _${n_values}_
|
|
158
|
+
- All tested JSON values (including models, generated schemas and IR, and test suite schemas): _${all_values}_
|
|
159
|
+
|
|
160
|
+
Over _150,000_ checks are performed when running non-regression tests:
|
|
161
|
+
generated files, values validated in various languages…
|
|
158
162
|
|
|
159
163
|
[Example models](https://json-model.org/MODELS) cover typical use cases and demonstrate
|
|
160
164
|
JSON Model power and ease of expression.
|
|
161
165
|
|
|
162
|
-
-
|
|
163
|
-
-
|
|
166
|
+
- Number of example models: _${n_eg_models}_
|
|
167
|
+
- Total example model locs: _${eg_models_locs}_
|
|
164
168
|
|
|
165
169
|
## Documentation
|
|
166
170
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
#! /bin/bash
|
|
2
|
+
#
|
|
3
|
+
# generate BENCH.md page with links to available benchmarks
|
|
4
|
+
#
|
|
5
|
+
|
|
6
|
+
PYPI="https://pypi.org/project"
|
|
7
|
+
|
|
8
|
+
get_version()
|
|
9
|
+
{
|
|
10
|
+
local what=$1 file=$2
|
|
11
|
+
local line=$(grep "$what version:" < $file)
|
|
12
|
+
line=${line#*:\*\* }
|
|
13
|
+
line=${line%% *}
|
|
14
|
+
echo $line
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
sed -ne '1,/BENCHES/p' < BENCH.md | grep -v '^BENCHES$'
|
|
18
|
+
|
|
19
|
+
for artifact in $(ls site/benchmarks/*.md | sort -r) ; do
|
|
20
|
+
link=${artifact#site/}
|
|
21
|
+
name=${link#benchmarks/}
|
|
22
|
+
name=${name%.md}
|
|
23
|
+
jsu=$(get_version jsu $artifact)
|
|
24
|
+
jmc=$(get_version jmc $artifact)
|
|
25
|
+
sbc=$(get_version jsonschema-cli $artifact)
|
|
26
|
+
message=""
|
|
27
|
+
[ "$(grep 'content:.*yes' $artifact)" ] && message+="content" || message+="no content"
|
|
28
|
+
[ "$(grep 'JSU_OPT.*--no-id' $artifact)" ] && message+=", no id" || message+=", id"
|
|
29
|
+
[ "$(grep 'fix:.*yes' $artifact)" ] && message+=", fix" || message+=", no fix"
|
|
30
|
+
echo "- Artifact [$name]($link) using [JMC $jmc]($PYPI/json-model-compiler/$jmc/), "
|
|
31
|
+
echo " [JSU $jsu]($PYPI/json-schema-utils/$jsu/) and "
|
|
32
|
+
echo " [SBC $sbc](https://github.com/sourcemeta/jsonschema/releases/tag/v$sbc), "
|
|
33
|
+
echo " $message."
|
|
34
|
+
done
|
|
35
|
+
|
|
36
|
+
sed -ne '/BENCHES/,$p' < BENCH.md | grep -v '^BENCHES$'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.0.58
|
|
@@ -8,22 +8,7 @@ B<jmc> - JSON Model Compiler
|
|
|
8
8
|
|
|
9
9
|
=head1 SYNOPSIS
|
|
10
10
|
|
|
11
|
-
jmc [
|
|
12
|
-
[--maps MAPS] [--auto] [--entry ENTRY] [--regex-engine {re,re2,pcre2}] [--mark COMMENT]
|
|
13
|
-
[--allow-duplicates] [-[-no]-extend] [--loose-int] [--strict-int] [--loose-float]
|
|
14
|
-
[--strict-float] [--loose-number] [--strict-number] [--loose] [--check]
|
|
15
|
-
[-[-no]-single-line-regex] [-[-no]-optimize] [-[-no]-reporting] [-[-no]-inline]
|
|
16
|
-
[--format {json,yaml,py,c,js,plpgsql,pl,java,ts}] [-[-no]-sort] [--indent INDENT]
|
|
17
|
-
[--gen {exec,module,code,none} | --executable | --module | --code | --no-gen]
|
|
18
|
-
[--cc CC] [--cflags CFLAGS] [--cppflags CPPFLAGS] [--ldflags LDFLAGS] [-[-no]-precompiled]
|
|
19
|
-
[--include [INCLUDE ...]] [--library [LIBRARY ...]] [--define [DEFINE ...]]
|
|
20
|
-
[--javac JAVAC] [--jflags JFLAGS] [-[-no]-schema-version] [--short-version]
|
|
21
|
-
[--name NAME] [-[-no]-report] [--none] [--true] [--false] [--test-vector]
|
|
22
|
-
[--map-threshold THRESHOLD] [--map-share] [-[-no]-strcmp-optimize] [--byte-order (le|be)]
|
|
23
|
-
[--max-strcmp-cset SIZE] [-[-no]-unique-optimize] [-[-no]-regex-optimize]
|
|
24
|
-
[--may-must-open-threshold THRESHOLD] [--must-only-threshold THRESHOLD] [-[-no]-call-shortcut]
|
|
25
|
-
[--partition-threshold THRESHOLD] [--or-must-prop THRESHOLD] [--array-unrolling-size=SIZE]
|
|
26
|
-
[-[-no]-sort-must] [-[-no]-sort-may] [-[-no]-predef] [--no-opt OPTIM] [-[-no]-regex-pattern]
|
|
11
|
+
jmc [--help] [--version] [--man] [--debug] [--verbose] [--quiet] [plenty other options]
|
|
27
12
|
[--op {P,U,J,N,E,C} | --preproc | --dump | --jdump | --nope | --export | --compile]
|
|
28
13
|
[--output OUTPUT] (--model MODEL | MODEL) [VALUES ...]
|
|
29
14
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#! /usr/bin/perl -CDSA
|