Coder Social home page Coder Social logo

lemurp / json-schema-validator-perftest Goto Github PK

View Code? Open in Web Editor NEW

This project forked from networknt/json-schema-validator-perftest

0.0 0.0 0.0 45 KB

A performance test project that compares networknt, fge and everit json-schema-validator

License: Apache License 2.0

Java 100.00%

json-schema-validator-perftest's Introduction

json-schema-validator-perftest

A performance test project that compares networknt, fge and everit json-schema-validator

This library provides a skeletal performance test suite for this JSON Schema Validator library:

https://github.com/networknt/json-schema-validator

It contains the same test suite for the other two Java schema validators:

https://github.com/fge/json-schema-validator/wiki/Performance

https://github.com/everit-org/json-schema

Test results comparison

For testing the performance of the fge/json-schema-validator library I've used this main class .

results 2017-07-09

fge: 7130 ms everit-org: 1168 ms networknt: 223 ms

I ran the testsuite of both libraries 10 times (each execution performing 500 validations). Tests results on my local computer: Running the tests on other workstations gave a bit different numbers but similar ratios.

results 2021-02-18

fge: 4741 ms everit-org: 564 ms networknt: 543 ms

results 2022-05-02

The fge validator is removed and the runner is removed as well. Both libraries are upgraded to the latest version.

To run it from the IDE, the result:

everit-org(1.14.1): 260 ms
networknt(1.0.69): 196 ms

To run it from the jar file.

java -cp target/perftest.jar com.networknt.schema.perftest.EveritPerf
java -cp target/perftest.jar com.networknt.schema.perftest.NetworkntPerf

The result:

everit-org(1.14.1): 281 ms
networknt(1.0.69): 448 ms

Single run

Running the tests

Clone this repository:

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

Build the project with Maven:

cd json-schema-perftest/
mvn clean install -Pdist

Run the test:

java -jar target/perftest.jar

Test results

Check test results

json-schema-validator-perftest's People

Contributors

claudiu-stanciu avatar dreis2211 avatar stevehu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.