json-model-compiler 2.0b37__tar.gz → 2.0b38__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.0b37/site → json_model_compiler-2.0b38}/BACKLOG.md +31 -23
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/BENCH.md +29 -24
- {json_model_compiler-2.0b37/json_model_compiler.egg-info → json_model_compiler-2.0b38}/PKG-INFO +4 -5
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/README.md +2 -3
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/container/Makefile +3 -4
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/convert.py +27 -15
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/optim.py +10 -4
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/c/json-model.h +1 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/c/main.c +36 -17
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/java/json_model/Main.java +2 -2
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/js/main.js +3 -4
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/js/package.json +1 -1
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/pl/Changes +2 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/pl/lib/JSON/JsonModel.pm +3 -3
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/support.py +2 -3
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/xstatic.py +53 -23
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38/json_model_compiler.egg-info}/PKG-INFO +4 -5
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model_compiler.egg-info/SOURCES.txt +7 -1
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model_compiler.egg-info/requires.txt +1 -1
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/cypress.model.json +7 -2
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/geo-easy.model.json +1 -1
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/geo.model.json +3 -4
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/pyproject.toml +2 -2
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38/site}/BACKLOG.md +31 -23
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/BENCH.md +29 -24
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/README.md +2 -3
- json_model_compiler-2.0b38/site/benchmarks/2026030700.csv +169 -0
- json_model_compiler-2.0b38/site/benchmarks/2026030700.json +296 -0
- json_model_compiler-2.0b38/site/benchmarks/2026030700.md +213 -0
- json_model_compiler-2.0b38/site/benchmarks/2026030703.csv +169 -0
- json_model_compiler-2.0b38/site/benchmarks/2026030703.json +296 -0
- json_model_compiler-2.0b38/site/benchmarks/2026030703.md +213 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/.gitignore +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/.gitmodules +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/API.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/DESIGN.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/DEV.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/DOC.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/HOWTO.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/INTEGRATION.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/MANIFEST.in +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/Makefile +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/PUBS.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/SPEC.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/TUTO.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/about.sh +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/container/.dockerignore +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/container/.gitignore +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/container/Containerfile +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/container/README.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/container/jmc +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/README.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/__init__.py +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/analyze.py +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/clang.py +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/data/clang_entry.c +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/data/clang_free.c +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/data/clang_init.c +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/data/clang_pcre2_fun.c +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/data/clang_re2_fun.c +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/data/java_free.java +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/data/java_init.java +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/data/javascript_exe.js +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/data/javascript_foot.js +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/data/javascript_free.js +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/data/javascript_head.js +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/data/javascript_init.js +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/data/javascript_main.js +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/data/jmc.pod +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/data/perl_entry.pl +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/data/perl_exe.pl +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/data/perl_free.pl +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/data/perl_init.pl +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/data/perl_main.pl +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/data/perl_pkg.pl +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/data/plpgsql_entry.sql +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/data/python_entry.py +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/data/python_exe.py +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/data/python_free.py +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/data/python_init.py +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/data/python_main.py +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/export.py +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/irep.py +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/java.py +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/javascript.py +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/language.py +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/model.py +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/mtypes.py +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/objmerge.py +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/perl.py +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/plpgsql.py +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/python.py +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/recurse.py +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/resolver.py +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/Makefile +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/__init__.py +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/c/Makefile +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/c/json-model.c +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/java/.gitignore +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/java/Makefile +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/java/README.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/java/env.bash +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/java/json_model/Checker.java +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/java/json_model/GSON.java +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/java/json_model/JSON.java +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/java/json_model/JSONP.java +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/java/json_model/Jackson.java +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/java/json_model/ModelChecker.java +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/java/json_model/Path.java +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/java/json_model/Report.java +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/java/json_model/Runtime.java +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/java/pom.xml +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/js/README.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/js/index.js +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/pl/.gitignore +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/pl/LICENSE +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/pl/MANIFEST +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/pl/Makefile.PL +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/pl/README +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/pl/env.bash +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/pl/ignore.txt +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/pl/t/00-load.t +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/pl/t/manifest.t +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/pl/t/pod-coverage.t +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/pl/t/pod.t +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/pl/xt/boilerplate.t +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/sql/META.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/sql/Makefile +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/sql/json_model--2.0.sql +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/sql/json_model.control +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/runtime/types.py +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/script.py +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/url_cache.py +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model/utils.py +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model_compiler.egg-info/dependency_links.txt +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model_compiler.egg-info/entry_points.txt +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/json_model_compiler.egg-info/top_level.txt +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/ansiblelint-meta.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/diploma-arrete.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/diploma-export.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/everything.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/fresq.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/jmc-ir.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-model-latest.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-model-moschin.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-model-no-merge.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-model-v1.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-model-v2-en.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-model-v2.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-model.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-schema-draft-01-fuzzy.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-schema-draft-01-nesting.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-schema-draft-01.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-schema-draft-02-fuzzy.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-schema-draft-02-nesting.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-schema-draft-02.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-schema-draft-03-fuzzy.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-schema-draft-03-nesting.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-schema-draft-03.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-schema-draft-04-fuzzy.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-schema-draft-04-mongodb.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-schema-draft-04-nesting.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-schema-draft-04.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-schema-draft-06-fuzzy.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-schema-draft-06.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-schema-draft-07-fuzzy.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-schema-draft-07.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-schema-draft-2019-09-fuzzy.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-schema-draft-2019-09.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-schema-draft-2020-12-fuzzy.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-schema-draft-2020-12-tight.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-schema-draft-2020-12.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-schema-draft-next-fuzzy.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-schema-draft-next.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-schema-draft-tight.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-schema-draft-tighter-loose.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-schema-draft-tighter.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/json-schema-linter.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/jsound.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/l10n.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/lazygit.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/openapi-311-fuzzy.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/openapi-311-models.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/openapi-311.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/person.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/person2.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/pgxn.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/models/test-schema.model.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/package.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/setup.cfg +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/API.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/DEV.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/DOC.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/HOWTO.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/PUBS.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/SPEC.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/TUTO.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026010600.csv +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026010600.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026010600.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026010900.csv +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026010900.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026010900.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026011500.csv +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026011500.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026011500.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026012000.csv +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026012000.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026012000.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026012200.csv +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026012200.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026012200.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026012400.csv +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026012400.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026012400.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026012700.csv +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026012700.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026012700.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026020500.csv +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026020500.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026020500.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026020600.csv +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026020600.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026020600.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026021000.csv +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026021000.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026021000.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026021300.csv +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026021300.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026021300.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026021700.csv +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026021700.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026021700.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026021701.csv +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026021701.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026021701.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026021702.csv +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026021702.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026021702.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026021900.csv +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026021900.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026021900.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026022000.csv +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026022000.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026022000.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026022400.csv +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026022400.json +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/benchmarks/2026022400.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/cover.md +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/favicon.ico +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/index.html +0 -0
- {json_model_compiler-2.0b37 → json_model_compiler-2.0b38}/site/json_logo.svg +0 -0
|
@@ -2,31 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## Current Tasks
|
|
4
4
|
|
|
5
|
-
- [x]
|
|
6
|
-
- [x]
|
|
7
|
-
- [x]
|
|
8
|
-
- [x]
|
|
9
|
-
- [x] perf:
|
|
10
|
-
- [x]
|
|
11
|
-
- [x] python-backend: add support for embedded nul characters in strings
|
|
12
|
-
- [x] optim: fix inappriopriate model deduplication in or-lists
|
|
13
|
-
- [x] dynamic: allow arbitrary options to dynamic interfaces
|
|
14
|
-
- [x] lang: extend list of predefs with IP4, IP6, HOSTNAME, JSONPT, DURATION
|
|
15
|
-
- [x] bug: fix unwise regex optimization
|
|
16
|
-
- [x] python-backend: add support for `.mo`
|
|
17
|
-
- [x] optim: remove bad transform _A & (T ^ B)) != A ^ B_
|
|
18
|
-
- [x] python-backend: escape more strange characters in string constants
|
|
19
|
-
- [x] perf: do not report broken count if nothing is broken
|
|
20
|
-
- [x] python-backend: numerical workarounds for .mo extension implementation
|
|
21
|
-
- [x] backend: add support for `.in` extension without other constraints
|
|
22
|
-
- [x] tests: minimal tests for `.mo` and `.in`
|
|
23
|
-
- [x] \*-backend:: add support for `.mo` and `.in` extensions
|
|
24
|
-
- [x] optim: optimize typed and _"" & "xxx"_ involving references
|
|
25
|
-
- [x] optim: arbitrary guard against infinite loops
|
|
26
|
-
- [x] ir: fix stupid bug in ir opts
|
|
5
|
+
- [x] pr: publish python jmc package
|
|
6
|
+
- [x] static: add support for `.in` with constraints
|
|
7
|
+
- [x] optim: fix constraint simplification mixup
|
|
8
|
+
- [x] tests: add _stats_ target
|
|
9
|
+
- [x] perf: add missing warmup to C runtime for jsonschema benchmark
|
|
10
|
+
- [x] perl-backend: be resilient on missing RE2 module
|
|
27
11
|
- [ ] optim: simplify _(x ^ M) & (x | T)_ where _M in T_
|
|
28
12
|
- [ ] optim: recognize typed not: _"" ^ "xxx"_
|
|
29
|
-
- [ ] tests: rerun with updated JSTS before release
|
|
30
13
|
- [ ] backend: implement new predefs with IP4, IP6, HOSTNAME, JSONPT, DURATION (just with regex?)
|
|
31
14
|
- [ ] \*-backend: add support for embedded nul characters in strings, when possible, or fail gracefully
|
|
32
15
|
- [ ] doc: add _known limitations_ stuff
|
|
@@ -110,12 +93,14 @@
|
|
|
110
93
|
|
|
111
94
|
- [ ] pr: publish web page
|
|
112
95
|
- [ ] pr: publish python jmc package
|
|
96
|
+
- [ ] pr: publish python jsu package
|
|
113
97
|
- [ ] pr: publish js runtime package
|
|
114
98
|
- [ ] pr: publish pgxn package
|
|
115
99
|
- [ ] pr: publish docker image
|
|
116
100
|
- [ ] pr: publish perl package
|
|
117
101
|
- [ ] pr: publish java package
|
|
118
102
|
- [ ] pr: check jsonschema-benchmark integration
|
|
103
|
+
- [ ] pr: check jsu jsts coverage
|
|
119
104
|
- [ ] pr: renew domain
|
|
120
105
|
|
|
121
106
|
## To Do
|
|
@@ -779,3 +764,26 @@
|
|
|
779
764
|
- [x] pr: add explicit winner column to per case perf
|
|
780
765
|
- [x] model: simplify `{"": "$NONE"}`
|
|
781
766
|
- [x] ~model: avoid dead code in `mv-0f/dedup-002`~ (simple pair ok, multiple seldom useful)
|
|
767
|
+
- [x] test: improve output determinism
|
|
768
|
+
- [x] container: allow to use `podman` instead of `docker`
|
|
769
|
+
- [x] perf: estimate measure overhead over 100 iterations
|
|
770
|
+
- [x] perf: share overhead estimation between tests
|
|
771
|
+
- [x] perf: try to prevent performance loops from being optimized out with some computation
|
|
772
|
+
- [x] container: add podman-in-podman or docker-in-docker
|
|
773
|
+
- [x] python-backend: add support for embedded nul characters in strings
|
|
774
|
+
- [x] optim: fix inappriopriate model deduplication in or-lists
|
|
775
|
+
- [x] dynamic: allow arbitrary options to dynamic interfaces
|
|
776
|
+
- [x] lang: extend list of predefs with IP4, IP6, HOSTNAME, JSONPT, DURATION
|
|
777
|
+
- [x] bug: fix unwise regex optimization
|
|
778
|
+
- [x] python-backend: add support for `.mo`
|
|
779
|
+
- [x] optim: remove bad transform _A & (T ^ B)) != A ^ B_
|
|
780
|
+
- [x] python-backend: escape more strange characters in string constants
|
|
781
|
+
- [x] perf: do not report broken count if nothing is broken
|
|
782
|
+
- [x] python-backend: numerical workarounds for .mo extension implementation
|
|
783
|
+
- [x] backend: add support for `.in` extension without other constraints
|
|
784
|
+
- [x] tests: minimal tests for `.mo` and `.in`
|
|
785
|
+
- [x] \*-backend:: add support for `.mo` and `.in` extensions
|
|
786
|
+
- [x] optim: optimize typed and _"" & "xxx"_ involving references
|
|
787
|
+
- [x] optim: arbitrary guard against infinite loops
|
|
788
|
+
- [x] ir: fix stupid bug in ir opts
|
|
789
|
+
- [x] tests: rerun with updated JSTS before release
|
|
@@ -1,30 +1,33 @@
|
|
|
1
1
|
# JSON Model Compiler Benchmark Artifacts
|
|
2
2
|
|
|
3
3
|
These artifacts compare
|
|
4
|
-
[JSON Model Compiler](https://github.com/clairey-zx81/json-model) generated code
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
[JSON Model Compiler (jmc)](https://github.com/clairey-zx81/json-model) generated code using the
|
|
5
|
+
[JSON Schema Utils (jsu)](https://hub.docker.com/repository/docker/zx80/json-schema-utils)
|
|
6
|
+
schema to model converter in C, JS, Java (GSON, Jackson and JSONP using Johnzon) and Python with
|
|
7
|
+
[Sourcemeta Blaze CLI (sbc)](https://github.com/sourcemeta/jsonschema) using test cases from
|
|
7
8
|
[JSON Schema Benchmark](https://github.com/sourcemeta-research/jsonschema-benchmark).
|
|
8
9
|
|
|
9
10
|
## Recent Artifacts
|
|
10
11
|
|
|
11
|
-
- [
|
|
12
|
-
- [
|
|
13
|
-
- [
|
|
14
|
-
- [
|
|
15
|
-
- [
|
|
16
|
-
- [
|
|
17
|
-
- [
|
|
18
|
-
- [
|
|
19
|
-
- [
|
|
20
|
-
- [
|
|
21
|
-
- [
|
|
22
|
-
- [
|
|
23
|
-
- [
|
|
24
|
-
- [
|
|
25
|
-
- [
|
|
26
|
-
- [
|
|
27
|
-
- [
|
|
12
|
+
- [2026030703](benchmarks/2026030703.md) clang, no predefs, jmc 2.0b37 vs sbc 14.14.2, 11 runs, 1000 iterations.
|
|
13
|
+
- [2026030700](benchmarks/2026030700.md) clang, no predefs, jmc 2.0b37 vs sbc 14.13.4, 5 runs, 1000 iterations.
|
|
14
|
+
- [2026022400](benchmarks/2026022400.md) clang, no predefs, jmc 2.0b36 vs sbc 14.13.4, 11 runs, 1000 iterations.
|
|
15
|
+
- [2026022000](benchmarks/2026022000.md) clang, no predefs, jmc 2.0b36 vs sbc 14.13.3, 11 runs, 1000 iterations.
|
|
16
|
+
- [2026021900](benchmarks/2026021900.md) clang, no predefs, jmc 2.0b36 vs sbc 14.13.1, 11 runs, 1000 iterations.
|
|
17
|
+
- [2026021702](benchmarks/2026021702.md) clang, no predefs, jmc 2.0b36 vs sbc 14.13.0, 11 runs, 1000 iterations.
|
|
18
|
+
- [2026021701](benchmarks/2026021701.md) clang, no predefs, jmc 2.0b36 vs sbc 14.12.0, 11 runs, 1000 iterations.
|
|
19
|
+
- [2026021700](benchmarks/2026021700.md) clang, no predefs, jmc 2.0b36 vs sbc 14.11.0, 11 runs, 1000 iterations.
|
|
20
|
+
- [2026021300](benchmarks/2026021300.md) clang, no predefs, jmc 2.0b36 vs sbc 14.10.0, 11 runs, 1000 iterations.
|
|
21
|
+
- [2026021000](benchmarks/2026021000.md) clang, no predefs, jmc 2.0b36 vs sbc 14.7.2, 11 runs, 1000 iterations.
|
|
22
|
+
- [2026020600](benchmarks/2026020600.md) clang, no predefs, jmc 2.0b36 vs sbc 14.7.1, 11 runs, 1000 iterations.
|
|
23
|
+
- [2026020500](benchmarks/2026020500.md) clang, no predefs, jmc 2.0b36 vs sbc 14.6.1, 11 runs, 1000 iterations.
|
|
24
|
+
- [2026012700](benchmarks/2026012700.md) clang, no predefs, jmc 2.0b36 vs sbc 14.5.0, 11 runs, 1000 iterations.
|
|
25
|
+
- [2026012400](benchmarks/2026012400.md) clang, no predefs, jmc 2.0b36 vs sbc 14.4.0, 11 runs, 1000 iterations.
|
|
26
|
+
- [2026012200](benchmarks/2026012200.md) clang, no predefs, jmc 2.0b36 vs sbc 14.2.0, 11 runs, 1000 iterations.
|
|
27
|
+
- [2026012000](benchmarks/2026012000.md) clang, no predefs, jmc 2.0b36 vs sbc 14.1.0, 11 runs, 1000 iterations.
|
|
28
|
+
- [2026011500](benchmarks/2026011500.md) clang, no predefs, jmc 2.0b36 vs sbc 14.0.4, 11 runs, 1000 iterations.
|
|
29
|
+
- [2026010900](benchmarks/2026010900.md) clang, no predefs, jmc 2.0b36 vs sbc 14.0.3, 11 runs, 1000 iterations.
|
|
30
|
+
- [2026010600](benchmarks/2026010600.md) clang, no predefs, jmc 2.0b36 vs sbc 14.0.2, 11 runs, 1000 iterations.
|
|
28
31
|
|
|
29
32
|
## Benchmarking Script
|
|
30
33
|
|
|
@@ -56,16 +59,18 @@ The main script options are:
|
|
|
56
59
|
|
|
57
60
|
JSON schemas for the benchmark are translated to models based on
|
|
58
61
|
[JSON Schema Utils](https://github.com/zx80/json-schema-utils).
|
|
62
|
+
This is mostly an automatic conversion of the test schema to a model, but
|
|
63
|
+
for a few cases which have a _native_ model which is used instead.
|
|
59
64
|
|
|
60
65
|
Runs are performed in _fast_ mode: the rejection reasons are not collected, and
|
|
61
66
|
the run stops as soon as possible.
|
|
62
67
|
|
|
63
68
|
- To smooth out the wide range of collected performances (from 10 ns to
|
|
64
69
|
over 300 µs for validating one value), a relative comparison ratio is shown.
|
|
65
|
-
- Compilation times are the _minimum_ encountered
|
|
70
|
+
- Compilation times are the _minimum_ encountered over the runs.
|
|
66
71
|
whereas performance times are the _median_ over the runs.
|
|
67
72
|
- The C backend also includes the _runtime_ compilation from sources.
|
|
68
|
-
- JSON Schema to JSON Model conversion times are recorded separately.
|
|
73
|
+
- JSON Schema to JSON Model conversion times are also recorded separately for information.
|
|
69
74
|
|
|
70
75
|
Note that performance figures **must** be taken with a pinch of salt, please consider
|
|
71
76
|
the following caveats, and others:
|
|
@@ -118,8 +123,8 @@ It should be noted that benchmarking conditions are quite different:
|
|
|
118
123
|
a warming phase loop and a _hot_ one-shot measure: This may tend to mask effects from
|
|
119
124
|
occasional GC runs.
|
|
120
125
|
2. The benchmark focuses on schema conformance, including (buggy) schemas which
|
|
121
|
-
are mostly dead code: It rejects tools which do not validate all strictly conformant
|
|
122
|
-
even if these values would be rejected by the target application.
|
|
126
|
+
are mostly dead code: It rejects tools which do not validate all strictly conformant
|
|
127
|
+
values, even if these values would be rejected by the target application.
|
|
123
128
|
|
|
124
129
|
This latest point explains the under 100% validation results displayed JMC for
|
|
125
130
|
_ansible-meta_, _cypress_ and _yamllint_ tests: the model translation or native models
|
{json_model_compiler-2.0b37/json_model_compiler.egg-info → json_model_compiler-2.0b38}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: json_model_compiler
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.0b38
|
|
4
4
|
Summary: JSON Model Tools
|
|
5
5
|
Author: Fabien Coelho, Claire Yannou-Medrala
|
|
6
6
|
License-Expression: CC0-1.0
|
|
@@ -15,7 +15,7 @@ Requires-Dist: requests
|
|
|
15
15
|
Requires-Dist: google-re2
|
|
16
16
|
Requires-Dist: pyyaml
|
|
17
17
|
Requires-Dist: validators
|
|
18
|
-
Requires-Dist: json-schema-utils>=0.
|
|
18
|
+
Requires-Dist: json-schema-utils>=0.9.0
|
|
19
19
|
Provides-Extra: dev
|
|
20
20
|
Requires-Dist: flake8; extra == "dev"
|
|
21
21
|
Requires-Dist: ruff; extra == "dev"
|
|
@@ -158,9 +158,8 @@ See the [benchmark page](BENCH.md) for artifacts which compare various
|
|
|
158
158
|
[JSON Model Compiler](https://github.com/clairey-zx81/json-model) runs (C, JS, Java, Python) with
|
|
159
159
|
[Sourcemeta Blaze CLI](https://github.com/sourcemeta/jsonschema) as a baseline using test cases
|
|
160
160
|
from [JSON Schema Benchmark](https://github.com/sourcemeta-research/jsonschema-benchmark).
|
|
161
|
-
Overall, JMC-C implementation
|
|
162
|
-
|
|
163
|
-
Moreover, JMC-JS and JMC-Java/GSON native implementations are only 15-20% slower
|
|
161
|
+
Overall, JMC-C implementation is faster than Blaze C++.
|
|
162
|
+
Moreover, JMC-JS and JMC-Java/GSON native implementations are only about 50% slower
|
|
164
163
|
than Blaze C++, which given the intrinsic language capabilities is quite honorable.
|
|
165
164
|
|
|
166
165
|
## More Information
|
|
@@ -127,9 +127,8 @@ 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
|
|
131
|
-
|
|
132
|
-
Moreover, JMC-JS and JMC-Java/GSON native implementations are only 15-20% slower
|
|
130
|
+
Overall, JMC-C implementation is faster than Blaze C++.
|
|
131
|
+
Moreover, JMC-JS and JMC-Java/GSON native implementations are only about 50% slower
|
|
133
132
|
than Blaze C++, which given the intrinsic language capabilities is quite honorable.
|
|
134
133
|
|
|
135
134
|
## More Information
|
|
@@ -44,7 +44,7 @@ pod.cleaner:
|
|
|
44
44
|
#
|
|
45
45
|
# POD (docker ou podman)
|
|
46
46
|
#
|
|
47
|
-
|
|
47
|
+
POD.opts = --no-cache
|
|
48
48
|
JMC = $(BRANCH)
|
|
49
49
|
JSU = main
|
|
50
50
|
|
|
@@ -52,7 +52,7 @@ JSU = main
|
|
|
52
52
|
pod.build: .build
|
|
53
53
|
|
|
54
54
|
.build: Containerfile jmc
|
|
55
|
-
$(POD) build $(
|
|
55
|
+
$(POD) build $(POD.opts) --build-arg JMC=$(JMC) --build-arg JSU=$(JSU) \
|
|
56
56
|
-t jmc -f Containerfile . && date -Iseconds > $@
|
|
57
57
|
|
|
58
58
|
.PHONY: pod.run
|
|
@@ -79,8 +79,7 @@ pod.tag: .build
|
|
|
79
79
|
export POD=$(POD)
|
|
80
80
|
$(POD) tag jmc $(ZX80)/jmc:$(TAG)
|
|
81
81
|
$(POD) tag jmc $(ZX80)/jmc:$(BRANCH)
|
|
82
|
-
|
|
83
|
-
$(POD) tag jmc $(ZX80)/jmc:$$(JMC=$(BRANCH) ./jmc --version)
|
|
82
|
+
[ "$(TAG)" != "latest" ] && $(POD) tag jmc $(ZX80)/jmc:$$(JMC=$(BRANCH) ./jmc --version)
|
|
84
83
|
|
|
85
84
|
.PHONY: pod.push
|
|
86
85
|
pod.push: pod.tag
|
|
@@ -288,21 +288,33 @@ def _m2s(model: ModelType, path: ModelPath, defs: Symbols) -> JsonSchema:
|
|
|
288
288
|
if ">" in model:
|
|
289
289
|
assert isinstance(model[">"], int)
|
|
290
290
|
schema["minContains"] = model[">"] + 1
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
291
|
+
if "=" in model:
|
|
292
|
+
assert isinstance(model["="], int)
|
|
293
|
+
schema["minContains"] = model["="]
|
|
294
|
+
schema["maxContains"] = model["="]
|
|
295
|
+
if "!=" in model:
|
|
296
|
+
schema["$comment"] = "ignoring != constraint"
|
|
297
|
+
else:
|
|
298
|
+
# FIXME check comparison value types!
|
|
299
|
+
if "<=" in model:
|
|
300
|
+
assert isinstance(model["<="], int)
|
|
301
|
+
schema["maxItems"] = model["<="]
|
|
302
|
+
if "<" in model:
|
|
303
|
+
assert isinstance(model["<"], int)
|
|
304
|
+
schema["maxItems"] = model["<"] - 1
|
|
305
|
+
if ">=" in model:
|
|
306
|
+
assert isinstance(model[">="], int)
|
|
307
|
+
schema["minItems"] = model[">="]
|
|
308
|
+
if ">" in model:
|
|
309
|
+
assert isinstance(model[">"], int)
|
|
310
|
+
schema["minItems"] = model[">"] + 1
|
|
311
|
+
if "=" in model:
|
|
312
|
+
assert isinstance(model["="], int)
|
|
313
|
+
schema["minItems"] = model["="]
|
|
314
|
+
schema["maxItems"] = model["="]
|
|
315
|
+
if "!=" in model:
|
|
316
|
+
schema["$comment"] = "ignoring != constraint"
|
|
317
|
+
# common
|
|
306
318
|
if "!" in model:
|
|
307
319
|
v = model["!"]
|
|
308
320
|
assert isinstance(v, bool)
|
|
@@ -705,7 +705,7 @@ def simplify(jm: JsonModel):
|
|
|
705
705
|
if le < ge:
|
|
706
706
|
changes += 1
|
|
707
707
|
return "$NONE"
|
|
708
|
-
|
|
708
|
+
elif le == ge:
|
|
709
709
|
changes += 1
|
|
710
710
|
eq, le, ge = le, None, None
|
|
711
711
|
# eq consistency and redundancy
|
|
@@ -715,21 +715,27 @@ def simplify(jm: JsonModel):
|
|
|
715
715
|
changes += 1
|
|
716
716
|
return "$NONE"
|
|
717
717
|
le = None
|
|
718
|
-
del model["<="]
|
|
719
718
|
changes += 1
|
|
719
|
+
if "<=" in model:
|
|
720
|
+
del model["<="]
|
|
720
721
|
if ge is not None:
|
|
721
722
|
if eq < ge:
|
|
722
723
|
changes += 1
|
|
723
724
|
return "$NONE"
|
|
724
725
|
ge = None
|
|
725
|
-
del model[">="]
|
|
726
726
|
changes += 1
|
|
727
|
+
if ">=" in model:
|
|
728
|
+
del model[">="]
|
|
727
729
|
if ne is not None:
|
|
728
730
|
if eq == ne:
|
|
729
731
|
changes += 1
|
|
730
732
|
return "$NONE"
|
|
731
733
|
ne = None
|
|
734
|
+
changes += 1
|
|
735
|
+
if "!=" in model:
|
|
732
736
|
del model["!="]
|
|
737
|
+
if "=" not in model:
|
|
738
|
+
model["="] = eq
|
|
733
739
|
changes += 1
|
|
734
740
|
# ne redundancy
|
|
735
741
|
if ne is not None:
|
|
@@ -793,8 +799,8 @@ def optimize(jm: JsonModel, *, debug: bool = False):
|
|
|
793
799
|
loops = 100
|
|
794
800
|
changed = True
|
|
795
801
|
|
|
802
|
+
|
|
796
803
|
while changed and loops > 0:
|
|
797
|
-
# print(f"model: {jm._model}")
|
|
798
804
|
loops -= 1
|
|
799
805
|
changed = False
|
|
800
806
|
changed |= const_prop(jm)
|
|
@@ -28,6 +28,7 @@ static INLINE double now(void)
|
|
|
28
28
|
return 1000000.0 * ts.tv_sec + 0.001 * ts.tv_nsec;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
// small computation to avoid compiler optimizations that could remove empty loops
|
|
31
32
|
#define NEXT_STUFF(v, pi) v = frexp(3.141592653589793 * v + 2.718281828459045, pi)
|
|
32
33
|
|
|
33
34
|
// overhead estimation µs on a nearly empty loop
|
|
@@ -49,8 +50,10 @@ static double overhead_estimation(int loop, double *value)
|
|
|
49
50
|
|
|
50
51
|
// check value and report if there was some error wrt expectations
|
|
51
52
|
static bool
|
|
52
|
-
process_value(
|
|
53
|
-
const char *
|
|
53
|
+
process_value(
|
|
54
|
+
const char *name, const json_t * value,
|
|
55
|
+
const char *fname, size_t index, process_mode_t mode,
|
|
56
|
+
bool report, bool show_time, int loop, double empty)
|
|
54
57
|
{
|
|
55
58
|
// get checker function
|
|
56
59
|
const jm_check_fun_t checker = CHECK_fun(name);
|
|
@@ -66,7 +69,7 @@ process_value(const char *name, const json_t * value,
|
|
|
66
69
|
double v = frexp(loop / 13.0, &exponent);
|
|
67
70
|
|
|
68
71
|
// performance loop in µs
|
|
69
|
-
if (
|
|
72
|
+
if (show_time)
|
|
70
73
|
{
|
|
71
74
|
// validation estimation
|
|
72
75
|
double sum = 0.0, sum2 = 0.0;
|
|
@@ -104,7 +107,7 @@ process_value(const char *name, const json_t * value,
|
|
|
104
107
|
fprintf(stdout, "%s[%zu]: %s", fname, index, valid ? "PASS" : "FAIL");
|
|
105
108
|
|
|
106
109
|
// maybe second pass with report collection
|
|
107
|
-
if ((
|
|
110
|
+
if ((show_time || !valid) && report)
|
|
108
111
|
{
|
|
109
112
|
jm_path_t path;
|
|
110
113
|
jm_report_t report;
|
|
@@ -112,7 +115,7 @@ process_value(const char *name, const json_t * value,
|
|
|
112
115
|
bool valid2 = true;
|
|
113
116
|
|
|
114
117
|
// loop just for measuring performance, including cleanup
|
|
115
|
-
if (
|
|
118
|
+
if (show_time)
|
|
116
119
|
{
|
|
117
120
|
double sum = 0.0, sum2 = 0.0;
|
|
118
121
|
|
|
@@ -211,7 +214,7 @@ static void jsonschema_benchmark_run(int argc, char *argv[], const char *name, i
|
|
|
211
214
|
}
|
|
212
215
|
}
|
|
213
216
|
|
|
214
|
-
// evaluate
|
|
217
|
+
// evaluate measure overheads, only for information
|
|
215
218
|
int count = 0;
|
|
216
219
|
double empty_start = now();
|
|
217
220
|
for (int i = 0; i < nvalues; i++)
|
|
@@ -219,7 +222,7 @@ static void jsonschema_benchmark_run(int argc, char *argv[], const char *name, i
|
|
|
219
222
|
count++;
|
|
220
223
|
double empty_delay = now() - empty_start;
|
|
221
224
|
|
|
222
|
-
// run once
|
|
225
|
+
// run once, count pass/fail
|
|
223
226
|
int npass = 0, nfail = 0;
|
|
224
227
|
double cold_start = now();
|
|
225
228
|
for (int i = 0; i < nvalues; i++)
|
|
@@ -229,7 +232,14 @@ static void jsonschema_benchmark_run(int argc, char *argv[], const char *name, i
|
|
|
229
232
|
nfail++;
|
|
230
233
|
double cold_delay = now() - cold_start;
|
|
231
234
|
|
|
232
|
-
//
|
|
235
|
+
// max 1000 warmup runs up to 10 seconds, probably useless
|
|
236
|
+
int ten_secs_loop = 1 + (int) (10000000.0 / cold_delay);
|
|
237
|
+
int warmup = ten_secs_loop < 1000 ? ten_secs_loop : 1000;
|
|
238
|
+
for (int n = warmup; n; n--)
|
|
239
|
+
for (int i = 0; i < nvalues; i++)
|
|
240
|
+
checker(values[i], NULL, NULL);
|
|
241
|
+
|
|
242
|
+
// collect performance data, possibly over a loop… of 1
|
|
233
243
|
double sum = 0.0, sum2 = 0.0;
|
|
234
244
|
for (int n = loop; n; n--)
|
|
235
245
|
{
|
|
@@ -264,6 +274,7 @@ int main(int argc, char* argv[])
|
|
|
264
274
|
bool jsonl = false;
|
|
265
275
|
bool list = false;
|
|
266
276
|
bool version = false;
|
|
277
|
+
bool show_time = false;
|
|
267
278
|
bool jsonschema_benchmark = false;
|
|
268
279
|
int loop = 1;
|
|
269
280
|
|
|
@@ -311,6 +322,8 @@ int main(int argc, char* argv[])
|
|
|
311
322
|
break;
|
|
312
323
|
case 'T':
|
|
313
324
|
loop = atoi(optarg);
|
|
325
|
+
show_time = loop > 0;
|
|
326
|
+
loop = loop ? loop : 1;
|
|
314
327
|
break;
|
|
315
328
|
case 'L':
|
|
316
329
|
jsonl = true;
|
|
@@ -367,18 +380,21 @@ int main(int argc, char* argv[])
|
|
|
367
380
|
return 0;
|
|
368
381
|
}
|
|
369
382
|
|
|
370
|
-
// minimal overhead estimation
|
|
383
|
+
// minimal non-zero measure overhead estimation
|
|
371
384
|
double empty = 0.0;
|
|
372
|
-
if (loop > 1)
|
|
385
|
+
if (show_time && loop > 1)
|
|
373
386
|
{
|
|
374
387
|
int exponent;
|
|
375
388
|
double v = frexp(loop / 13.0, &exponent);
|
|
376
|
-
|
|
377
|
-
|
|
389
|
+
int count = 100;
|
|
390
|
+
while (count)
|
|
378
391
|
{
|
|
379
392
|
double e = overhead_estimation(loop, &v);
|
|
380
|
-
if (e
|
|
381
|
-
|
|
393
|
+
if (e) {
|
|
394
|
+
count--;
|
|
395
|
+
if (empty == 0.0 || e < empty)
|
|
396
|
+
empty = e;
|
|
397
|
+
}
|
|
382
398
|
}
|
|
383
399
|
}
|
|
384
400
|
|
|
@@ -416,7 +432,8 @@ int main(int argc, char* argv[])
|
|
|
416
432
|
JSON_DISABLE_EOF_CHECK|JSON_DECODE_ANY|JSON_ALLOW_NUL,
|
|
417
433
|
&error)))
|
|
418
434
|
{
|
|
419
|
-
if (!process_value(name, value, argv[i], count, expect_anything,
|
|
435
|
+
if (!process_value(name, value, argv[i], count, expect_anything,
|
|
436
|
+
report, show_time, loop, empty))
|
|
420
437
|
errors++;
|
|
421
438
|
count++;
|
|
422
439
|
json_decref(value);
|
|
@@ -491,14 +508,16 @@ int main(int argc, char* argv[])
|
|
|
491
508
|
const json_t *value = size == 3 ? json_array_get(val, 2) : second;
|
|
492
509
|
process_mode_t mode = json_is_true(first) ? expect_pass : expect_fail;
|
|
493
510
|
|
|
494
|
-
if (!process_value(tname, value, argv[i], index, mode,
|
|
511
|
+
if (!process_value(tname, value, argv[i], index, mode,
|
|
512
|
+
report, show_time, loop, empty))
|
|
495
513
|
errors++;
|
|
496
514
|
|
|
497
515
|
index++;
|
|
498
516
|
}
|
|
499
517
|
}
|
|
500
518
|
else
|
|
501
|
-
if (!process_value(name, value, argv[i], 0, expect_nothing,
|
|
519
|
+
if (!process_value(name, value, argv[i], 0, expect_nothing,
|
|
520
|
+
report, show_time, loop, empty))
|
|
502
521
|
errors++;
|
|
503
522
|
|
|
504
523
|
// free json value
|
|
@@ -52,8 +52,8 @@ public class Main
|
|
|
52
52
|
double cold_run = 0.001 * (System.nanoTime() - cold_start);
|
|
53
53
|
|
|
54
54
|
// warmup
|
|
55
|
-
int niters = (int) (10 * 1E6 / cold_run);
|
|
56
|
-
if (niters >
|
|
55
|
+
int niters = 1 + (int) (10 * 1E6 / cold_run);
|
|
56
|
+
if (niters > 1000) niters = 1000;
|
|
57
57
|
while (niters-- > 0)
|
|
58
58
|
for (Object value: values)
|
|
59
59
|
check.call(value);
|
|
@@ -73,11 +73,10 @@ function jsonschema_benchmark(values, checker, times)
|
|
|
73
73
|
errors++
|
|
74
74
|
const cold_delay = performance.now() - cold_start // ms
|
|
75
75
|
|
|
76
|
-
const WARMUP_MAX_TIME = 10.0 // seconds
|
|
77
|
-
const WARMUP_ITERATIONS = 100 // unless too long
|
|
78
|
-
const max_iterations = Math.ceil(1000.0 * WARMUP_MAX_TIME / cold_delay)
|
|
79
|
-
|
|
80
76
|
// warm-up so as to trigger JIT
|
|
77
|
+
const WARMUP_MAX_TIME = 10.0 // seconds
|
|
78
|
+
const WARMUP_ITERATIONS = 1000 // unless too long
|
|
79
|
+
const max_iterations = Math.ceil(WARMUP_MAX_TIME * 1000.0 / cold_delay)
|
|
81
80
|
const warmup_iterations = Math.min(WARMUP_ITERATIONS, max_iterations)
|
|
82
81
|
console.error(`warmup iterations: ${warmup_iterations}`)
|
|
83
82
|
for (let i = 0; i < warmup_iterations; i++)
|
|
@@ -12,7 +12,7 @@ use warnings;
|
|
|
12
12
|
|
|
13
13
|
our $VERSION = 1.999012; # aka 2.0b12
|
|
14
14
|
|
|
15
|
-
use re::engine::RE2; # replace regex engine
|
|
15
|
+
eval "use re::engine::RE2"; # try to replace regex engine
|
|
16
16
|
use List::Util qw( min );
|
|
17
17
|
use JSON::MaybeXS qw( decode_json from_json is_bool );
|
|
18
18
|
use Getopt::Long qw(:config no_ignore_case);
|
|
@@ -430,8 +430,8 @@ sub jsonschema_benchmark($$$$)
|
|
|
430
430
|
my $cold_delay = $cold_stop - $cold_start; # seconds
|
|
431
431
|
|
|
432
432
|
# warmup, at most 10 seconds
|
|
433
|
-
my $max = int(10.0 / $cold_delay);
|
|
434
|
-
my $n = min(
|
|
433
|
+
my $max = 1 + int(10.0 / $cold_delay);
|
|
434
|
+
my $n = min(1000, $max);
|
|
435
435
|
|
|
436
436
|
while ($n--)
|
|
437
437
|
{
|
|
@@ -424,9 +424,8 @@ def main(jm_fun, jm_map, jmc_version):
|
|
|
424
424
|
errors += 1
|
|
425
425
|
cold_delay = 1_000_000.0 * (time.clock_gettime(time.CLOCK_REALTIME) - cold_start)
|
|
426
426
|
|
|
427
|
-
#
|
|
428
|
-
|
|
429
|
-
for _ in range(min(20, int(10_000_000.0 / cold_delay))):
|
|
427
|
+
# warmup runs to trigger a potential JIT?
|
|
428
|
+
for _ in range(min(1000, 1 + int(10_000_000.0 / cold_delay))):
|
|
430
429
|
for v in values:
|
|
431
430
|
checker(v, None, None)
|
|
432
431
|
|