File: json_schema_test_suite.py

package info (click to toggle)
python-jsonschema 4.25.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 4,952 kB
  • sloc: python: 8,469; makefile: 210; sh: 12
file content (12 lines) | stat: -rw-r--r-- 320 bytes parent folder | download | duplicates (27)
1
2
3
4
5
6
7
8
9
10
11
12
"""
A performance benchmark using the official test suite.

This benchmarks jsonschema using every valid example in the
JSON-Schema-Test-Suite. It will take some time to complete.
"""
from pyperf import Runner

from jsonschema.tests._suite import Suite

if __name__ == "__main__":
    Suite().benchmark(runner=Runner())