| Server IP : 118.27.122.120 / Your IP : 216.73.216.164 Web Server : Apache System : Linux web0216.sh.tyo1 4.18.0-553.141.2.lve.el7h.x86_64 #1 SMP Wed Jul 8 17:20:31 UTC 2026 x86_64 User : r4834334 ( 11094) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python37/lib/python3.7/site-packages/jsonschema/benchmarks/ |
Upload File : |
#!/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())