diff options
author | Julian Berman <Julian@GrayVines.com> | 2013-02-24 19:48:44 -0500 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2013-02-24 19:48:44 -0500 |
commit | 47b8f5ca17e758e97fa93aa82f51da846aa4309c (patch) | |
tree | c31f45bd2ee0696037053a0fce34167aaef7cfbd /perftest | |
parent | 66075e553aa20864024146b0039f73f3ec354323 (diff) | |
download | jsonschema-47b8f5ca17e758e97fa93aa82f51da846aa4309c.tar.gz |
Simple
Diffstat (limited to 'perftest')
-rwxr-xr-x | perftest | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -23,6 +23,14 @@ print("Validating {0} times.".format(arguments.number)) for name, benchmark in ( ( + "Simple", """ + validator = Draft3Validator( + {"type" : "object", "properties" : {"foo" : {"required" : True}}} + ) + instance = {"foo" : 12, "bar" : 13} + """ + ), + ( "Meta schema", """ validator = Draft3Validator(Draft3Validator.META_SCHEMA) instance = validator.META_SCHEMA |