-
-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Significant performance regression with 2.5.1 #261
Comments
Thx for the quick reply. So I have tested the branch and it is much faster then original 2.5.1 but still slower than 2.4.1: |
It seems like the switch from ruby URI to addressable has caused this problem. I'm tempted to make it optional - #285 will make this easier |
Thx for looking into this but I have tried release 2.6.0 and it is still ~ four times as slow (I have updated the previous values because it was more validated than just the json): This is with 2.2.5:
This is with 2.6.0:
If you want to test any patch or pull request regarding this let me know. |
I have forgotten to post the example from above: http://pastebin.com/a0nJVvKx |
Thanks for sharing that, I'll try to take a look. |
While 2.8.0 is much better than 2.5.1 it is still quite slow in comparison to 2.2.5. These values are generated against the example posted above. 2.8.0
2.2.5
2.5.1
|
While the performance issue is still not completely fixed voxpupuli/json-schema#261 newer Ruby versions show warnings with the old json-schema versions so we need to support the newer ones.
While the performance issue is still not completely fixed voxpupuli/json-schema#261 newer Ruby versions show warnings with the old json-schema versions so we need to support the newer ones. Newer json-schema versions have a littel different error messages that's why the tests needed to be adapted accordingly.
While the performance issue is still not completely fixed voxpupuli/json-schema#261 newer Ruby versions show warnings with the old json-schema versions so we need to support the newer ones. Newer json-schema versions have a littel different error messages that's why the tests needed to be adapted accordingly.
While the performance issue is still not completely fixed voxpupuli/json-schema#261 newer Ruby versions show warnings with the old json-schema versions so we need to support the newer ones. Newer json-schema versions have a littel different error messages that's why the tests needed to be adapted accordingly.
So we are using json-schema to verify our json system description.
We are using 2.2.5 by default but if 2.5.1 is installed it will be used automatically if it isn't executed with
bundle exec
.These are the results with 2.2.5:
real 0m1.368s
These are the results with 2.5.1:
real 0m12.866s
Even 2.5.0 is slower but not as much:
real 0m5.006s
2.4.1 is as fast as 2.2.5:
real 0m1.551s
These two schemas should be relevant. One for the whole description and the other for the inspector.
I have uploaded a simple json file here, which I used for the above benchmarks.
I don't have time to bisect but if you have an idea what might causing it I can test it. Thx in advance.
The text was updated successfully, but these errors were encountered: