json-model-compiler 2.0.50__tar.gz → 2.0.51__tar.gz

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