Stranger6667
jsonschema
BlogDocsChangelog

refactor: shard meta-schemas per draft

#763Merged
Comparing
lucab:lucab/meta-shard-draft-schemas
(
db184aa
) with
master
(
44520ad
)
CodSpeed Performance Gauge
0%
Untouched
47

Benchmarks

Passed

apply[Fast/Invalid]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
+5%
23.5 µs22.4 µs
is_valid[Fast/Invalid]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
+4%
798.6 ns769.4 ns
validate[Fast/Valid]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
+3%
7.7 µs7.5 µs
validate[Fast/Invalid]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
+3%
3.9 µs3.8 µs
resolve[small]
crates/jsonschema-referencing/benches/anchor.rs::benches::bench_anchor_lookup::Anchor Lookup
CodSpeed Performance Gauge
+1%
2.8 µs2.8 µs
apply[GeoJSON/Canada]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
+1%
3.1 s3 s
is_valid[Fast/Valid]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
0%
6.3 µs6.3 µs
apply[Fast/Valid]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
0%
14 µs14 µs
build[CITM]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
0%
376.9 µs375.4 µs
is_valid[CITM/Catalog]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
0%
4.7 ms4.7 ms
validate[Swagger/Kubernetes]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
0%
23.3 ms23.2 ms
validate[CITM/Catalog]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
0%
5.8 ms5.7 ms
is_valid[Swagger/Kubernetes]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
0%
21.9 ms21.9 ms
is_valid[Open API/Zuora]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
0%
21.1 ms21 ms
apply[Open API/Zuora]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
0%
572.4 ms571.9 ms
apply[CITM/Catalog]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
0%
62.7 ms62.6 ms
apply[Swagger/Kubernetes]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
0%
1 s1 s
subresources_of[draft 7]
crates/jsonschema-referencing/benches/subresources.rs::benches::bench_subresources::subresources
CodSpeed Performance Gauge
0%
3.2 µs3.2 µs
subresources_of[Swagger]
crates/jsonschema-referencing/benches/subresources.rs::benches::bench_subresources::subresources
CodSpeed Performance Gauge
0%
3.3 µs3.3 µs
subresources_of[Open API]
crates/jsonschema-referencing/benches/subresources.rs::benches::bench_subresources::subresources
CodSpeed Performance Gauge
0%
2.7 µs2.7 µs
subresources_of[draft 4]
crates/jsonschema-referencing/benches/subresources.rs::benches::bench_subresources::subresources
CodSpeed Performance Gauge
0%
2.9 µs2.9 µs
subresources_of[GeoJSON]
crates/jsonschema-referencing/benches/subresources.rs::benches::bench_subresources::subresources
CodSpeed Performance Gauge
0%
1.6 µs1.6 µs
subresources_of[draft 6]
crates/jsonschema-referencing/benches/subresources.rs::benches::bench_subresources::subresources
CodSpeed Performance Gauge
0%
2.8 µs2.8 µs
subresources_of[draft 2020-12]
crates/jsonschema-referencing/benches/subresources.rs::benches::bench_subresources::subresources
CodSpeed Performance Gauge
0%
3.2 µs3.2 µs
subresources_of[Fast]
crates/jsonschema-referencing/benches/subresources.rs::benches::bench_subresources::subresources
CodSpeed Performance Gauge
0%
1.1 µs1.1 µs
subresources_of[CITM]
crates/jsonschema-referencing/benches/subresources.rs::benches::bench_subresources::subresources
CodSpeed Performance Gauge
0%
1.4 µs1.4 µs
subresources_of[draft 2019-09]
crates/jsonschema-referencing/benches/subresources.rs::benches::bench_subresources::subresources
CodSpeed Performance Gauge
0%
3.1 µs3.1 µs
validate[Open API/Zuora]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
0%
21.3 ms21.3 ms
build[Open API]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
0%
7.9 ms7.9 ms
build[GeoJSON]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
0%
830.9 µs832.4 µs
build[Swagger]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
0%
6.6 ms6.6 ms
try_with_resource[GeoJSON]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry
CodSpeed Performance Gauge
0%
63.6 µs63.8 µs
build[Fast]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
0%
168.8 µs169.5 µs
try_new[draft 2019-09]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry
CodSpeed Performance Gauge
-1%
26.1 µs26.3 µs
try_new[draft 2020-12]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry
CodSpeed Performance Gauge
-1%
26.1 µs26.4 µs
try_new[draft 4]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry
CodSpeed Performance Gauge
-1%
24.5 µs24.8 µs
try_new[draft 6]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry
CodSpeed Performance Gauge
-1%
25.5 µs25.8 µs
pointer[long]
crates/jsonschema-referencing/benches/pointer.rs::benches::bench_pointers::JSON Pointer
CodSpeed Performance Gauge
-1%
12.6 µs12.7 µs
try_new[draft 7]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry
CodSpeed Performance Gauge
-1%
27.3 µs27.6 µs
pointer[single]
crates/jsonschema-referencing/benches/pointer.rs::benches::bench_pointers::JSON Pointer
CodSpeed Performance Gauge
-1%
4.6 µs4.7 µs
pointer[double]
crates/jsonschema-referencing/benches/pointer.rs::benches::bench_pointers::JSON Pointer
CodSpeed Performance Gauge
-1%
5.8 µs5.8 µs
try_with_resource[Fast]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry
CodSpeed Performance Gauge
-2%
21.8 µs22.3 µs
validate[GeoJSON/Canada]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
-2%
9.1 ms9.3 ms
is_valid[GeoJSON/Canada]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
-2%
9.1 ms9.3 ms
try_with_resource[CITM]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry
CodSpeed Performance Gauge
-3%
35.2 µs36.2 µs
try_with_resource[Open API]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry
CodSpeed Performance Gauge
-3%
204.4 µs211.6 µs
try_with_resource[Swagger]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry
CodSpeed Performance Gauge
-8%
227 µs246.2 µs

Commits

Click on a commit to change the comparison range
Base
master
44520ad
-0.25%
refactor: shard meta-schemas per draft This introduces some new (internal-only and lazy) static entities in order to shard meta-schemas according to the draft that they belong to. Sharded meta-schemas allow to reduce the amount of registry resources that need to be constructed and statically cached.
db184aa
4 months ago
by lucab
© 2025 CodSpeed Technology
Home Terms Privacy Docs