diff options
author | Julian Berman <Julian@GrayVines.com> | 2017-10-23 08:56:23 -0400 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2017-10-23 09:06:30 -0400 |
commit | a3ab789664eb9fa871884efb140b77947f4a650b (patch) | |
tree | f0c6ffd10a346e6fe5d169e487e7febb6182de4f /jsonschema/benchmarks/issue232.py | |
parent | ecda1b211d29211a5f36b2856e6f6da2f08b3286 (diff) | |
download | jsonschema-a3ab789664eb9fa871884efb140b77947f4a650b.tar.gz |
And now fill in the issue number since we've got internet access again...
Diffstat (limited to 'jsonschema/benchmarks/issue232.py')
-rw-r--r-- | jsonschema/benchmarks/issue232.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/jsonschema/benchmarks/issue232.py b/jsonschema/benchmarks/issue232.py new file mode 100644 index 0000000..587d4e7 --- /dev/null +++ b/jsonschema/benchmarks/issue232.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python +""" +A performance benchmark using the example from issue #232: + +https://github.com/Julian/jsonschema/pull/232 + +""" +from bp.filepath import FilePath +from perf import Runner +from pyrsistent import m + +from jsonschema.tests._suite import Collection +import jsonschema + + +collection = Collection( + path=FilePath(__file__).sibling("issue232"), + remotes=m(), + name="issue232", + validator=jsonschema.Draft4Validator, +) + + +if __name__ == "__main__": + collection.benchmark(runner=Runner()) |