summaryrefslogtreecommitdiff
path: root/jsonschema/benchmarks
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2019-08-03 20:32:20 -0400
committerJulian Berman <Julian@GrayVines.com>2019-08-03 20:32:20 -0400
commit9b1e8f9e2097fd79c0909ba775001ca2027dc593 (patch)
tree463d8a45fb771f7292f36d5b496f4cfd4a2c318d /jsonschema/benchmarks
parent5d0b751cfc0c292ef29e29d992db705e43d6452d (diff)
downloadjsonschema-9b1e8f9e2097fd79c0909ba775001ca2027dc593.tar.gz
Fix the benchmarks...
Diffstat (limited to 'jsonschema/benchmarks')
-rw-r--r--jsonschema/benchmarks/issue232.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/jsonschema/benchmarks/issue232.py b/jsonschema/benchmarks/issue232.py
index 5d16ee3..1bbb355 100644
--- a/jsonschema/benchmarks/issue232.py
+++ b/jsonschema/benchmarks/issue232.py
@@ -9,17 +9,19 @@ from twisted.python.filepath import FilePath
from pyperf import Runner
from pyrsistent import m
-from jsonschema.tests._suite import Collection
+from jsonschema.tests._suite import Version
import jsonschema
-collection = Collection(
+issue232 = Version(
path=FilePath(__file__).sibling("issue232"),
remotes=m(),
name="issue232",
- validator=jsonschema.Draft7Validator,
)
if __name__ == "__main__":
- collection.benchmark(runner=Runner())
+ issue232.benchmark(
+ runner=Runner(),
+ Validator=jsonschema.Draft4Validator,
+ )