summaryrefslogtreecommitdiff
path: root/perftest
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2013-02-24 19:48:44 -0500
committerJulian Berman <Julian@GrayVines.com>2013-02-24 19:48:44 -0500
commit47b8f5ca17e758e97fa93aa82f51da846aa4309c (patch)
treec31f45bd2ee0696037053a0fce34167aaef7cfbd /perftest
parent66075e553aa20864024146b0039f73f3ec354323 (diff)
downloadjsonschema-47b8f5ca17e758e97fa93aa82f51da846aa4309c.tar.gz
Simple
Diffstat (limited to 'perftest')
-rwxr-xr-xperftest8
1 files changed, 8 insertions, 0 deletions
diff --git a/perftest b/perftest
index f5d64e7..13933b4 100755
--- a/perftest
+++ b/perftest
@@ -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