mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-26 23:00:36 +00:00
26 lines
526 B
Python
26 lines
526 B
Python
|
#!/usr/bin/env python
|
||
|
"""
|
||
|
A performance benchmark using the example from issue #232:
|
||
|
|
||
|
https://github.com/Julian/jsonschema/pull/232
|
||
|
|
||
|
"""
|
||
|
from twisted.python.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.Draft7Validator,
|
||
|
)
|
||
|
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
collection.benchmark(runner=Runner())
|