json-schema-validator-perftest

December 18, 2025 ยท View on GitHub

This project is the performance test suite for the NetworkNT JSON Schema Validator.

Benchmark results

The benchmark results can be found here.

These benchmarks are run on Standard GitHub-hosted runners for public repositories which are not dedicated machines. Some variance between runs are to be expected.

Data set

NameDescription
draft4_basicThis is the same test used by the fge json-schema validator.
draft7_krakendFrom krakend-schema.
draft2020_12_cql2From cql2. Note that this uses oneOf which requires verification of every sub-schema.
draft2020_12_cql2_fixModified from cql2 to convert oneOf to allOf as recommended to compare performance.
draft2020_12_openapiValidation of OpenAPI document.
draft2020_12_unevaluatedPropertiesFor the unevaluatedProperties keyword.

Implementations

NameRepositoryDialectsRemarks
NetworkNT JSON Schema Validatorhttps://github.com/networknt/json-schema-validatorDraft 4, Draft 6, Draft 7, Draft 2019-09, Draft 2020-12
dev.harrel:json-schemahttps://github.com/harrel56/json-schemaDraft 4, Draft 6, Draft 7, Draft 2019-09, Draft 2020-12
jsonschemafriendhttps://github.com/jimblackler/jsonschemafriendDraft 3, Draft 4, Draft 6, Draft 7, Draft 2019-09, Draft 2020-12
OptimumCode json-schema-validatorhttps://github.com/OptimumCode/json-schema-validatorDraft 4, Draft 6, Draft 7, Draft 2019-09, Draft 2020-12
json-sKemahttps://github.com/erosb/json-sKemaDraft 2020-12
Everit JSON Schema Validatorhttps://github.com/everit-org/json-schemaDraft 4, Draft 6, Draft 7Replaced by json-sKema.

Running the benchmarks

Clone this repository

git clone https://github.com/networknt/json-schema-validator-perftest.git

Build the project with Maven

cd json-schema-validator-perftest/
mvn clean package

Run all the benchmarks

java -jar target/benchmarks.jar

Run a specific benchmark

java -jar target/benchmarks.jar Networknt