File: json_schema_test_suite.py

package info (click to toggle)
python-jsonschema 4.19.2-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,584 kB
  • sloc: python: 7,830; 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())