voxpupuli / json-schema

Ruby JSON Schema Validator
MIT License
1.54k stars 243 forks source link

Used minitest::benchmark to profile validation performance #241

Closed iainbeeston closed 9 years ago

iainbeeston commented 9 years ago

I've had a first pass at benchmarking the gem. This adds a few basic tests, to ensure that #fully_validate has constant performance as the size of the json being parsed increases.

I'm not sure it's very useful at the moment. It will fail if any of the tests do not run in constant time (as the size of the json increases) but this isn't a problem right now. It would be more instructive to see the results of this over time, as the codebase changes.

I'd welcome any suggestions for more useful tests.

iainbeeston commented 9 years ago

I wrote this to help with #218

iainbeeston commented 9 years ago

Actually I'm going to close this. I doth think it adds any value