
    Pi                     |    d Z ddlZddlZd Zedk    r(ddlmZ  e            Ze                    de           dS dS )z:
A benchmark which measures the import time of jsonschema
    Nc                 j   d}t          |           D ]}t          j        t          j        ddddgt          j        t          j        d          }|j                                        d         }|	                    d	          d
         
                                }t          |          }||z  }|dz  S )Nr   z-X
importtimez-czimport jsonschemaT)stderrstdoutcheck   |g    .A)range
subprocessrunsys
executablePIPEDEVNULLr   
splitlinessplitstripint)loopstotal_us_plinefielduss          z/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/jsonschema/benchmarks/import_benchmark.pyimport_timer   	   s    H5\\  N^T<7JK?%	
 
 
 x""$$R(

4  $**,,ZZB k!!    __main__)RunnerzImport time (cumulative))	__doc__r   r   r   __name__pyperfr!   runnerbench_time_func r   r   <module>r(      s         



" " "$ zVXXF
5{CCCCC	 r   