Skip to content

fair performance test + robust script#82

Merged
horejsek merged 1 commit intohorejsek:masterfrom
hh-h:perf
Dec 19, 2019
Merged

fair performance test + robust script#82
horejsek merged 1 commit intohorejsek:masterfrom
hh-h:perf

Conversation

@hh-h
Copy link
Contributor

@hh-h hh-h commented Dec 18, 2019

jsonschema can be compiled as well, added test case
Also, some PEP8 improvements in performance script, plus there's no need to create temp folder

test run example

$ make performance
Number: 1000
fast_compiled        valid      ==>  0.0464646
fast_compiled        invalid    ==>  0.0030227
fast_file            valid      ==>  0.0461219
fast_file            invalid    ==>  0.0030608
fast_not_compiled    valid      ==> 11.4627202
fast_not_compiled    invalid    ==>  2.5726230
jsonschema           valid      ==>  7.5844927
jsonschema           invalid    ==>  1.9204665
jsonschema_compiled  valid      ==>  0.6938364
jsonschema_compiled  invalid    ==>  0.0359244
jsonspec             valid      ==>  9.0715843
jsonspec             invalid    ==>  2.1650488
validictory          valid      ==>  0.4874793
validictory          invalid    ==>  0.0232244

feel free to update with your numbers here: https://github.com/horejsek/python-fastjsonschema/blob/master/fastjsonschema/__init__.py#L43

@horejsek
Copy link
Owner

Thanks 👍

@horejsek horejsek merged commit e845f62 into horejsek:master Dec 19, 2019
@hh-h hh-h deleted the perf branch December 19, 2019 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments