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__/useless_keywords.cpython-39.pyc
a

�,�hc�@s�dZddlmZddlmZdZedddifgdd	�ee�D��d
�dd	�eee�D��d��Zee�Z	d
Z
dZedkr�e�Z
e
�ddd��e
�ddd��e
�ddd��e
�ddd��dS)z|
A benchmark for validation of schemas containing lots of useless keywords.

Checks we filter them out once, ahead of time.
�)�Runner)�Draft202012Validatori���not�const�*ccs|]}t|�|fVqdS�N��str��.0�i�r
�W/opt/nydus/tmp/pip-target-wkfpz8uv/lib/python/jsonschema/benchmarks/useless_keywords.py�	<genexpr>�r)�type�integerccs|]}t|�|fVqdSrrr
r
r
rrr)Zminimum�%���__main__zbeginning of schemacCs
t�d�S)Nr��	validatorZis_validr
r
r
r�<lambda>rrzmiddle of schemacCs
t�d�S)NZfoorr
r
r
rrrz
end of schemacCs
t�d�S)Nrrr
r
r
rrr�validcCs
t�d�S)Nrrr
r
r
rr rN)�__doc__ZpyperfrZ
jsonschemarZNUM_USELESS�dict�rangeZschemarr�invalid�__name__�runnerZ
bench_funcr
r
r
r�<module>s0
������