validator_creation.py 285 B

1234567891011121314
  1. from pyperf import Runner
  2. from jsonschema import Draft202012Validator
  3. schema = {
  4. "type": "array",
  5. "minLength": 1,
  6. "maxLength": 1,
  7. "items": {"type": "integer"},
  8. }
  9. if __name__ == "__main__":
  10. Runner().bench_func("validator creation", Draft202012Validator, schema)