
    ȯei                     h    d Z ddlZddlZd Zedk(  r ddlmZ  e       Zej                  de       yy)z:
A benchmark which measures the import time of jsonschema
    Nc                 ^   d}t        |       D ]  }t        j                  t        j                  ddddgt        j
                  t        j                  d      }|j                  j                         d   }|j                  d	      d
   j                         }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          h/var/www/html/glpi_dashboard/venv/lib/python3.12/site-packages/jsonschema/benchmarks/import_benchmark.pyimport_timer   	   s    H5\ NN^^T<7JK??%%	
 xx""$R(

4 $**,ZB k!!    __main__)RunnerzImport time (cumulative))	__doc__r   r   r   __name__pyperfr!   runnerbench_time_func r   r   <module>r(      sA     
"$ zXF
5{C	 r   