-
Notifications
You must be signed in to change notification settings - Fork 280
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
Performance Question #469
Comments
Hello @owengalenjones , I can't advise on that based on this information. You can
|
@erosb thanks for the reply!
|
Is that correct in showing that most of the actual time is spent constructing exceptions? |
Yes, there can be many |
Surprisingly with the case of the exceptions, I see no validation error messages when validation is complete. I am running tests of the schema against a sample JSON object that is valid / conforming to the schema. We are using:
|
Ah I see that's slightly out of date. With 1.14.1 the same run is down to ~700ms. |
Good. You may profile again, maybe there is a little chance to improve it.
I will get back to this issue tomorrow.
…On Wed, Aug 31, 2022, 23:21 Owen Galen Jones ***@***.***> wrote:
Ah I see that's slightly out of date. With 1.14.1 the same run is down to
~700ms.
—
Reply to this email directly, view it on GitHub
<#469 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACCWBSMPDELJYOTL7HMSJDV37EGNANCNFSM6AAAAAAQBQ35HY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thanks for your assistance @erosb, despite the increase I'm still wondering if there is anything that my profile shows as a potential site of further improvment? I'm not sure what would be expected or if there is anything that leaps out to you. In testing the same collection of schemas and the JSON object with the node library Ajv, it only takes 40 ms. |
Hello, my last guess: was the JVM warmed up? How many iterations of validation did you run? |
Hello, I have a large number of schemas linked by
$ref
's with a combined disk size 1380KB and an object is 675B. In benchmarks it consistently takes around 1.4 seconds to validate the object. Is this an expected time? We were hoping to validate objects at runtime during client requests but this would make that impossible.Are there any steps I can take to attempt to increase performance here?
Thanks!
The text was updated successfully, but these errors were encountered: