Skip to content

Commit 0734259

Browse files
committed
don't use prerelease versions
1 parent 79b984a commit 0734259

File tree

4 files changed

+432
-432
lines changed

4 files changed

+432
-432
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,30 @@ for validators that cause side-effects on schema or data.
88

99
# Performance
1010

11-
![performance](https://chart.googleapis.com/chart?chxt=x,y&cht=bhs&chco=76A4FB&chls=2.0&chbh=29,4,1&chs=600x416&chxl=-1:|ajv|jsen|json-schema-validator-generator|is-my-json-valid|themis|djv|jsck|z-schema|json-schema-library|jsonschema|skeemas|tv4&chd=t:100,59.1,44.6,42.9,9.6,8.6,3.2,1.7,0.8,0.6,0.6,0.1)
11+
![performance](https://chart.googleapis.com/chart?chxt=x,y&cht=bhs&chco=76A4FB&chls=2.0&chbh=29,4,1&chs=600x416&chxl=-1:|djv|ajv|jsen|json-schema-validator-generator|is-my-json-valid|themis|jsck|z-schema|json-schema-library|skeemas|jsonschema|tv4&chd=t:100,82.1,49.8,40.6,38.3,10.3,3.6,1.7,0.6,0.5,0.5,0.1)
1212

1313
|Validator|Relative speed|Number of test runs per second|
1414
|---------|:------------:|:----------------------------:|
15-
|[`ajv`](https://github.com/epoberezkin/ajv)|100%|556492.26%)|
16-
|[`jsen`](https://github.com/bugventure/jsen)|59.1%|32885 (± 1.72%)|
17-
|[`json-schema-validator-generator`](https://github.com/danwang/json-schema-validator-generator)|44.6%|248442.15%)|
18-
|[`is-my-json-valid`](https://github.com/mafintosh/is-my-json-valid#readme)|42.9%|238611.7%)|
19-
|[`themis`](https://github.com/playlyfe/themis)|9.6%|536212.7%)|
20-
|[`djv`](https://github.com/korzio/djv#readme)|8.6%|48121.87%)|
21-
|[`jsck`](https://github.com/pandastrike/jsck#readme)|3.2%|17932.47%)|
22-
|[`z-schema`](https://github.com/zaggino/z-schema)|1.7%|9373.07%)|
23-
|[`json-schema-library`](https://github.com/sagold/json-schema-library)|0.8%|4451.83%)|
24-
|[`jsonschema`](https://github.com/tdegrunt/jsonschema#readme)|0.6%|340 (± 2.55%)|
25-
|[`skeemas`](https://github.com/Prestaul/skeemas#readme)|0.6%|3193.64%)|
26-
|[`tv4`](https://github.com/geraintluff/tv4)|0.1%|722.29%)|
15+
|[`djv`](https://github.com/korzio/djv#readme)|100%|656270.9%)|
16+
|[`ajv`](https://github.com/epoberezkin/ajv)|82.1%|53848 (± 1.9%)|
17+
|[`jsen`](https://github.com/bugventure/jsen)|49.8%|326711.12%)|
18+
|[`json-schema-validator-generator`](https://github.com/danwang/json-schema-validator-generator)|40.6%|266220.98%)|
19+
|[`is-my-json-valid`](https://github.com/mafintosh/is-my-json-valid#readme)|38.3%|251381.25%)|
20+
|[`themis`](https://github.com/playlyfe/themis)|10.3%|673610.12%)|
21+
|[`jsck`](https://github.com/pandastrike/jsck#readme)|3.6%|23541.28%)|
22+
|[`z-schema`](https://github.com/zaggino/z-schema)|1.7%|11302.12%)|
23+
|[`json-schema-library`](https://github.com/sagold/json-schema-library)|0.6%|4102.08%)|
24+
|[`skeemas`](https://github.com/Prestaul/skeemas#readme)|0.5%|354 (± 2.06%)|
25+
|[`jsonschema`](https://github.com/tdegrunt/jsonschema#readme)|0.5%|3412.78%)|
26+
|[`tv4`](https://github.com/geraintluff/tv4)|0.1%|753.27%)|
2727

2828
235 tests are run in each test run.
2929

3030
Validators tested: [`json-schema-validator-generator (1.1.11)`](https://github.com/danwang/json-schema-validator-generator), [`is-my-json-valid (2.20.0)`](https://github.com/mafintosh/is-my-json-valid#readme), [`jsen (0.6.6)`](https://github.com/bugventure/jsen), [`ajv (6.10.2)`](https://github.com/epoberezkin/ajv), [`themis (1.1.6)`](https://github.com/playlyfe/themis), [`z-schema (4.1.1)`](https://github.com/zaggino/z-schema), [`jjv (1.0.2)`](https://github.com/acornejo/jjv), [`djv (2.1.3-alpha.0)`](https://github.com/korzio/djv#readme), [`skeemas (1.2.5)`](https://github.com/Prestaul/skeemas#readme), [`schemasaurus (0.7.8)`](https://github.com/AlexeyGrishin/schemasaurus), [`jsck (0.3.2)`](https://github.com/pandastrike/jsck#readme), [`jassi (0.1.2)`](https://github.com/iclanzan/jassi), [`JSV (4.0.2)`](http://github.com/garycourt/JSV), [`request-validator (0.3.3)`](https://github.com/bugventure/request-validator), [`json-gate (0.8.23)`](https://github.com/oferei/json-gate#readme), [`json-model (0.2.24)`](https://github.com/geraintluff/json-model), [`tv4 (1.3.0)`](https://github.com/geraintluff/tv4), [`jsonschema (1.2.4)`](https://github.com/tdegrunt/jsonschema#readme), [`revalidator (0.3.1)`](https://github.com/flatiron/revalidator), [`json-schema-library (4.0.0)`](https://github.com/sagold/json-schema-library),
3131

3232
(validators not in the results above where excluded because of failing tests - see below for details)
3333

34-
[`ajv`](https://github.com/epoberezkin/ajv) is currently the fastest JSON-schema validator out there.
34+
[`djv`](https://github.com/korzio/djv#readme) is currently the fastest JSON-schema validator out there.
3535

3636
The fastest validator has 100%, the rest a lower score relative to the fastest.
3737
If a validator has a score of 5% that means that it's speed is 5% of the fastest,

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,35 @@
33
"main": "benchmark.js",
44
"license": "MIT",
55
"dependencies": {
6-
"JSV": "latest",
7-
"ajv": "latest",
6+
"JSV": "*",
7+
"ajv": "*",
88
"async": "^2.6.1",
99
"benchmark": "^2.1.4",
1010
"deep-equal": "^1.0.1",
11-
"djv": "latest",
11+
"djv": "*",
1212
"fs-readdir-recursive": "^1.1.0",
13-
"is-my-json-valid": "latest",
14-
"jassi": "latest",
15-
"jayschema": "latest",
16-
"jjv": "latest",
17-
"jsck": "latest",
18-
"jsen": "latest",
19-
"json-gate": "latest",
20-
"json-model": "latest",
21-
"json-schema-library": "latest",
22-
"json-schema-validator-generator": "latest",
13+
"is-my-json-valid": "*",
14+
"jassi": "*",
15+
"jayschema": "*",
16+
"jjv": "*",
17+
"jsck": "*",
18+
"jsen": "*",
19+
"json-gate": "*",
20+
"json-model": "*",
21+
"json-schema-library": "*",
22+
"json-schema-validator-generator": "*",
2323
"json-stringify-safe": "^5.0.1",
24-
"jsonschema": "latest",
24+
"jsonschema": "*",
2525
"lodash": "^4.17.15",
2626
"mustache": "^3.0.1",
2727
"npm": "^6.11.3",
28-
"request-validator": "latest",
29-
"revalidator": "latest",
30-
"schemasaurus": "latest",
31-
"skeemas": "latest",
32-
"themis": "latest",
33-
"tv4": "latest",
34-
"z-schema": "latest"
28+
"request-validator": "*",
29+
"revalidator": "*",
30+
"schemasaurus": "*",
31+
"skeemas": "*",
32+
"themis": "*",
33+
"tv4": "*",
34+
"z-schema": "*"
3535
},
3636
"description": "Benchmarks for Node.js JSON-schema validators",
3737
"version": "1.0.3",

0 commit comments

Comments
 (0)