Comments (4)
I was thinking of machine-generating a bigger schema from the schemas in the official tests, to make sure that the test touches as many parts of the spec as possible. Just to make sure to hit any troublesome parts of a validator.
from json-schema-benchmark.
ok, so the bad news is I don't have as much time as I'd like, but the JSCK benchmarks use five schemas, and you're more than welcome to use them.
here's a categorization of those 5 schemas:
- draft 3, trivial
- draft 3, medium
- draft 4, trivial
- draft 4, medium
- draft 4, complex
so you can use them to benchmark a range of complexities and draft support.
from json-schema-benchmark.
Realistic benchmark idea: Validating the draft 4 schema with the draft 4 schema.
from json-schema-benchmark.
@ebdrup The more I think about it, the more I believe that using test-suite for performance benchmarking is completely wrong.
With the exception of some really old and slow libraries, where slow validation may affect UX in the browser, validation performance only really matters for server-side validation. This is where the performance advantage achieved by compiling validators is becoming important... Server-side validation passes 99+% of the time (excluding the cases of DOS attacks and or broken API consumer - but performance is not going to help too much in these cases).
So I think to be relevant, benchmark should only test passing cases on some data samples of small/average/large size.
Tests can still be used to benchmark compliance, separately from performance.
What do you think?
from json-schema-benchmark.
Related Issues (19)
- pls run jsck with necessary files HOT 1
- Test failures don't seem to include test errors HOT 1
- request-validator usage is wrong HOT 1
- Clarification on benchmark HOT 2
- schema-inspector is missing HOT 4
- Update JSON-schema-test-suite HOT 1
- Clarify mechanism to update benchmark results HOT 1
- Opitonal JSON-schema tests should be criteria for inclusion of a validator into the performance tests HOT 1
- Update README
- Library size as benchmark HOT 3
- Add Joi to benchmark HOT 1
- Latest report for json-schema-library HOT 7
- Make it clear what parts of the spec a JSON-schema validator deliberately chose not to implement HOT 14
- What is the fastest JSON schema validator for draft-3, draft-4, draft-6 or draft-7? HOT 7
- clarify JSCK error report HOT 1
- Misleading results for @exodus/schemasafe HOT 1
- Add zod to the benchmark
- differentiate between required test failures and the optional feature tests
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json-schema-benchmark.