| Server IP : 88.99.149.37 / Your IP : 216.73.216.141 Web Server : nginx/1.31.2 System : Linux server-88-99-149-37 6.12.0-124.56.5.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 06:12:08 EDT 2026 x86_64 User : muralimurth ( 1015) PHP Version : 8.4.23 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3.12/site-packages/jsonschema/benchmarks/__pycache__/ |
Upload File : |
�
�% gX � �t � d Z ddlmZ ddlmZ ddlmZmZ ddlm Z ddddd id
�Z
e� Z e� Z e� Z
e e
� Zd� Zd� Zed
k( rkddlmZ e� Zej+ de� ej+ de� ej+ dd� � ej+ dd� � ej+ dd� � yy)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 �X � t j dd� t j d� fS )N�foo�bar)�hmap�insert�hset� � �H/usr/lib/python3.12/site-packages/jsonschema/benchmarks/subcomponents.py�registry_data_structuresr s! � ��;�;�u�e�$�d�k�k�%�&8�8�8r c �b � t j t � } t j d| �� S )Nzurn:example)�uri�resource)r �create_resource�schema�registry�
with_resource)r s r �registry_addr s( � ��*�*�6�2�H��!�!�m�h�!�G�Gr �__main__)�RunnerzHashMap/HashSet insertionzRegistry insertion�Successc �. � t j dg� S )Nr ��v�is_validr r r �<lambda>r( ( s � ����Q�C�r �Failurec �. � t j dg� S )Nr r% r r r r( r( ) s � ����U�G�)<r zMetaschema validationc �4 � t j t � S )N)r&