L iYtdZddlmZddlmZddlmZmZddlm Z ddddd id Z eZ eZ eZ e e Zd Zd Zed k(rkddlmZeZej+deej+deej+ddej+ddej+ddyy)zN A benchmark which tries to compare the possible slow subparts of validation. )Registry) DRAFT202012) HashTrieMap HashTrieSet)Draft202012Validatorarraytypeinteger)r minLength maxLengthitemscXtjddtjdfS)Nfoobar)hmapinserthseti/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/jsonschema/benchmarks/subcomponents.pyregistry_data_structuresrs! ;;ue $dkk%&8 88rcbtjt}tj d|S)Nz urn:example)uriresource)rcreate_resourceschemaregistry with_resource)rs r registry_addr s(**62H  ! !mh ! GGr__main__)RunnerzHashMap/HashSet insertionzRegistry insertionSuccessc.tjdgS)Nr vis_validrrrr((sQCrFailurec.tjdgS)Nrr%rrrr(r()sUG)<rzMetaschema validationc4tjtS)N)r& check_schemarrrrr(r(*sq~~f7MrN)__doc__ referencingrreferencing.jsonschemarrpdsrr jsonschemarrrrrr&rr __name__pyperfr"runner bench_funcrrrr6s!.)+ i  }} : 9H  z XF 13KL *L9 i!89 i!<= -/MNr