-
Notifications
You must be signed in to change notification settings - Fork 398
Performance
fge edited this page Sep 2, 2012
·
8 revisions
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.0:
Initial validation :158 ms Iteration 0 (in 39 ms) Iteration 20 (in 348 ms) Iteration 40 (in 403 ms) Iteration 60 (in 446 ms) Iteration 80 (in 491 ms) Iteration 100 (in 521 ms) Iteration 120 (in 554 ms) Iteration 140 (in 586 ms) Iteration 160 (in 628 ms) Iteration 180 (in 659 ms) Iteration 200 (in 685 ms) Iteration 220 (in 709 ms) Iteration 240 (in 748 ms) Iteration 260 (in 772 ms) Iteration 280 (in 795 ms) Iteration 300 (in 828 ms) Iteration 320 (in 866 ms) Iteration 340 (in 903 ms) Iteration 360 (in 938 ms) Iteration 380 (in 961 ms) Iteration 400 (in 983 ms) Iteration 420 (in 1005 ms) Iteration 440 (in 1027 ms) Iteration 460 (in 1048 ms) Iteration 480 (in 1071 ms) END -- time in ms: 1092
Yes, that's right: only a little more than 1 second to validate all of the schemas above 500 times.