
    MhY                        d Z ddlmZ ddlmZ ddlmZmZ ddlm	Z	 ddddd	id
Z
 e            Z e            Z e            Z e	e
          Zd Zd Zedk    rddlmZ  e            Ze                    de           e                    de           e                    dd            e                    dd            e                    dd            dS dS )zN
A benchmark which tries to compare the possible slow subparts of validation.
    )Registry)DRAFT202012)HashTrieMapHashTrieSet)Draft202012Validatorarray   typeinteger)r
   	minLength	maxLengthitemsc                  l    t                               dd          t                              d          fS )Nfoobar)hmapinserthset     c/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/jsonschema/benchmarks/subcomponents.pyregistry_data_structuresr      s'    ;;ue$$dkk%&8&888r   c                  l    t          j        t                    } t                              d|           S )Nzurn:example)uriresource)r   create_resourceschemaregistrywith_resource)r   s    r   registry_addr       s+    *622H!!mh!GGGr   __main__)RunnerzHashMap/HashSet insertionzRegistry insertionSuccessc                  8    t                               dg          S )Nr	   vis_validr   r   r   <lambda>r(   (   s    QC r   Failurec                  8    t                               dg          S )Nr   r%   r   r   r   r(   r(   )   s    UG)<)< r   zMetaschema validationc                  @    t                               t                    S )N)r&   check_schemar   r   r   r   r(   r(   *   s    q~~f7M7M r   N)__doc__referencingr   referencing.jsonschemar   rpdsr   r   
jsonschemar   r   r   r   r   r&   r   r    __name__pyperfr"   runner
bench_funcr   r   r   <module>r6      s    !           . . . . . . ) ) ) ) ) ) ) ) + + + + + + i 	
 
 {}}{}}8::  9 9 9H H H
 zVXXF
13KLLL
*L999
i!8!8999
i!<!<===
-/M/MNNNNN r   