+
    f7ix  c                   s    R t ^RI5 ^ RIHt ^ RIt^ RItRt^tR tR t	R
R lt
R t]R	8X  d   ]P                  ! ^4       ]! 4        R# R# )z*Benchmark the qu2cu algorithm performance.)Z*)curve_to_quadraticNg      ?c           	      sb   \        ^^V ,          ,           4       Uu. uFA  p\        ;QJ d    . R \        ^4       4       F  NK  	  5M! R \        ^4       4       4      NKC  	  pp. p\        V 4       F4  pVP                  \        W$^,          V^,          ^,            4      4       K6  	  V# u upi )   c              3   sb   "   T F%  p\        \        P                  ! ^ R4      4      x  K'  	  R# 5i)i    i   N)ZfloatrandomZrandint)Z.0Zcoords   & @/usr/lib64/python3.14/site-packages/fontTools/qu2cu/benchmark.pyZ	<genexpr>Z"generate_curves.<locals>.<genexpr>   s#     C(eFNN1d+,,(s   -/)ZrangeZtupleZappend)ZnZpointZpointscurvesZis   &    r   generate_curvesr      s     1q1u9%%E 	C%(CC%(CC%   F1XeFq51q519567 Ms
   B,7B,c                  sx    \        \        4      p V  Uu. uF  p\        V\        4      NK  	  ppV\        3# u upi N)r   
NUM_CURVESr    MAX_ERR)r   ZcurveZ
quadraticss      r   setup_quadratic_to_curvesr	      s9    Z(FBHI&$UG4&JIw Js   7c                 s0   R V,           pV'       d'   \        V: RV: R2RR7       VRV,           ,          pM\        RV,          RR7       R p\        P                  ! V! W4      W4R7      p\        R	\        V4      R
,          V,          ,          4       R# )Zsetup_z with Z: )ZendZ_z%s:c                 s\   a a \        4       S ,          o \        4       S,          oV V3R  lpV# )c                  s   < S ! S! 4       !  # r    )function
setup_funcs   r   wrappedZ/run_benchmark.<locals>.wrapper.<locals>.wrapped)   s    Z\**    )Zglobals)r   r   r   s   ff r   wrapperZrun_benchmark.<locals>.wrapper%   s'    9X&Yz*
	+ r   )repeatnumberz	%5.1fusg    .AN)Zprinttimeitr   Zmin)Zmoduler   Zsetup_suffixr   r   r   r   Zresultss   &&&&&   r   run_benchmarkr      ss    H$Jx6B?cL((
ehB' mmGH9&XG	+W	1F:
;<r   c                  s    \        R R4       R# )qu2cuZquadratic_to_curvesN)r   r   r   r   mainr   2   s    '01r   Z__main__)r
   i   r   )Z__doc__r   ZfontTools.cu2qur    r   r   r   r   r   r	   r   r   Z__name__Zseedr   r   r   <module>r      sQ    0  .  

=*2 z
KKNF r   