Skip to content

Performance

fge edited this page Dec 19, 2012 · 8 revisions

Test program

This document serves as the base. Under JSON Pointer #/schemas, it contains 8 schemas.

The program validates these 8 schemas 500 times in a loop. It prints the time elapsed for initialization and then each 20 iterations.

This is the result with 1.4.0:

Initial validation :134 ms
Iteration 0 (in 35 ms)
Iteration 20 (in 331 ms)
Iteration 40 (in 388 ms)
Iteration 60 (in 420 ms)
Iteration 80 (in 451 ms)
Iteration 100 (in 477 ms)
Iteration 120 (in 499 ms)
Iteration 140 (in 525 ms)
Iteration 160 (in 548 ms)
Iteration 180 (in 575 ms)
Iteration 200 (in 597 ms)
Iteration 220 (in 622 ms)
Iteration 240 (in 653 ms)
Iteration 260 (in 690 ms)
Iteration 280 (in 712 ms)
Iteration 300 (in 733 ms)
Iteration 320 (in 753 ms)
Iteration 340 (in 777 ms)
Iteration 360 (in 804 ms)
Iteration 380 (in 824 ms)
Iteration 400 (in 845 ms)
Iteration 420 (in 866 ms)
Iteration 440 (in 893 ms)
Iteration 460 (in 924 ms)
Iteration 480 (in 953 ms)
END -- time in ms: 981

Yes, that's right: less than 1 second to validate all of the schemas above 500 times.

Clone this wiki locally