Skip to content

Commit fadd461

Browse files
author
Sascha Goldhofer
committed
docs: update benchmark results
1 parent bdb603c commit fadd461

File tree

8 files changed

+2949
-2948
lines changed

8 files changed

+2949
-2948
lines changed

README.md

Lines changed: 47 additions & 50 deletions
Large diffs are not rendered by default.

draft4/README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Performance benchmark for Node.js JSON-schema validators.
77
> - updated ajv setup and integrated ajv formats plugin
88
> - changed default draft to draft 07
99
> - updated benchmark results
10+
>
11+
> [2022/11/13] updated libraries and rerun benchmark
1012
1113
Also tests against [official JSON-schema test suite](https://github.com/json-schema/JSON-Schema-Test-Suite), version draft4. and checks
1214
for validators that cause side-effects on schema or data. The top 6 validators that fail the least tests are included in the benchmark.
@@ -15,16 +17,16 @@ for validators that cause side-effects on schema or data. The top 6 validators t
1517

1618
# Performance
1719

18-
![performance](https://chart.googleapis.com/chart?chxt=x,y&cht=bhs&chco=76A4FB&chls=2.0&chbh=62,4,1&chs=600x416&chxl=-1:|@exodus/schemasafe|is-my-json-valid|z-schema|@cfworker/json-schema|json-schema-library|jsonschema&chd=t:100,39.9,5.2,3.9,1.9,0.9)
20+
![performance](https://chart.googleapis.com/chart?chxt=x,y&cht=bhs&chco=76A4FB&chls=2.0&chbh=62,4,1&chs=600x416&chxl=-1:|@exodus/schemasafe|is-my-json-valid|z-schema|@cfworker/json-schema|json-schema-library|jsonschema&chd=t:100,41.3,5.4,3.9,1.9,0.9)
1921

2022
|Validator|Relative speed|Number of test runs per second|
2123
|---------|:------------:|:----------------------------:|
22-
|[`@exodus/schemasafe`](https://github.com/ExodusMovement/schemasafe)|100%|11608 (± 4.71%)|
23-
|[`is-my-json-valid`](https://github.com/mafintosh/is-my-json-valid#readme)|39.9%|4630 (± 1.36%)|
24-
|[`z-schema`](https://github.com/zaggino/z-schema)|5.2%|609 (± 1.2%)|
25-
|[`@cfworker/json-schema`](https://github.com/cfworker/cfworker/tree/master/packages/json-schema/README.md)|3.9%|447 (± 2.22%)|
26-
|[`json-schema-library`](https://github.com/sagold/json-schema-library)|1.9%|217 (± 1.27%)|
27-
|[`jsonschema`](https://github.com/tdegrunt/jsonschema#readme)|0.9%|104 (± 1.61%)|
24+
|[`@exodus/schemasafe`](https://github.com/ExodusMovement/schemasafe)|100%|11277 (± 4.99%)|
25+
|[`is-my-json-valid`](https://github.com/mafintosh/is-my-json-valid#readme)|41.3%|4659 (± 1.66%)|
26+
|[`z-schema`](https://github.com/zaggino/z-schema)|5.4%|610 (± 1.26%)|
27+
|[`@cfworker/json-schema`](https://github.com/cfworker/cfworker/tree/master/packages/json-schema/README.md)|3.9%|441 (± 2.78%)|
28+
|[`json-schema-library`](https://github.com/sagold/json-schema-library)|1.9%|219 (± 1.27%)|
29+
|[`jsonschema`](https://github.com/tdegrunt/jsonschema#readme)|0.9%|106 (± 1.48%)|
2830

2931
692 tests are run in each test run.
3032

0 commit comments

Comments
 (0)