Skip to content

Performance

Francis Galiegue edited this page Sep 1, 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 0.5.2:

Iteration 0 (in 199 ms)
Iteration 20 (in 636 ms)
Iteration 40 (in 722 ms)
Iteration 60 (in 773 ms)
Iteration 80 (in 805 ms)
Iteration 100 (in 830 ms)
Iteration 120 (in 860 ms)
Iteration 140 (in 893 ms)
Iteration 160 (in 935 ms)
Iteration 180 (in 960 ms)
Iteration 200 (in 986 ms)
Iteration 220 (in 1013 ms)
Iteration 240 (in 1039 ms)
Iteration 260 (in 1065 ms)
Iteration 280 (in 1106 ms)
Iteration 300 (in 1148 ms)
Iteration 320 (in 1196 ms)
Iteration 340 (in 1221 ms)
Iteration 360 (in 1246 ms)
Iteration 380 (in 1273 ms)
Iteration 400 (in 1299 ms)
Iteration 420 (in 1325 ms)
Iteration 440 (in 1350 ms)
Iteration 460 (in 1374 ms)
Iteration 480 (in 1399 ms)
END -- time in ms: 1423

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

Clone this wiki locally