HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.60.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 5 05:00:59 EST 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //var/opt/nydus/ops/jsonschema/benchmarks/__pycache__/subcomponents.cpython-39.pyc
a

�,�hY�@s�dZddlmZddlmZddlmZmZddlm	Z	ddddd	id
�Z
e�Ze�Ze�Z
e	e
�Zdd�Zd
d�Zedkr�ddlmZe�Ze�de�e�de�e�ddd��e�ddd��e�ddd��dS)zN
A benchmark which tries to compare the possible slow subparts of validation.
�)�Registry)�DRAFT202012)�HashTrieMap�HashTrieSet)�Draft202012Validator�array��type�integer)r	Z	minLengthZ	maxLength�itemscCst�dd�t�d�fS)N�foo�bar)�hmap�insert�hset�rr�T/opt/nydus/tmp/pip-target-wkfpz8uv/lib/python/jsonschema/benchmarks/subcomponents.py�registry_data_structuressrcCst�t�}tjd|d�S)Nzurn:example)�uri�resource)rZcreate_resource�schema�registryZ
with_resource)rrrr�registry_adds
r�__main__)�RunnerzHashMap/HashSet insertionzRegistry insertionZSuccesscCst�dg�S)Nr��vZis_validrrrr�<lambda>(�rZFailurecCst�dg�S)Nrrrrrrr)rzMetaschema validationcCs
t�t�S)N)rZcheck_schemarrrrrr*rN)�__doc__ZreferencingrZreferencing.jsonschemarZrpdsrrZ
jsonschemarrrrrrrr�__name__Zpyperfr�runnerZ
bench_funcrrrr�<module>s.�