+
    f7i  c                   s    R t ^RI5 ^ RIt^ RItRtR tR tR tR
R ltR t	]
R	8X  d   ]P                  ! ^4       ]	! 4        R# R# )z*Benchmark the cu2qu algorithm performance.)Z*Ng?c            	      s    \        ^4       U u. uFA  p \        ;QJ d    . R \        ^4       4       F  NK  	  5M! R \        ^4       4       4      NKC  	  up # u up i )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/cu2qu/benchmark.pyZ	<genexpr>Z!generate_curve.<locals>.<genexpr>   s#     C(eFNN1d+,,(s   -/)rangeZtuple)Zpoints    r   generate_curver   
   sN     1XE 	C%(CC%(CC  s
   A7Ac                  s"    \        4       \        3# N)r   MAX_ERR     r   setup_curve_to_quadraticr      s    W$$r   c                  sr    ^p \        V 4       Uu. uF  p\        4       NK  	  up\        .V ,          3# u upi )i   )r   r   r   )Z
num_curvesZcurves     r   setup_curves_to_quadraticr	      s5    J+0+<=+<%^+<=y:?UVV=s   4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   r   )function
setup_funcs   r   wrappedZ/run_benchmark.<locals>.wrapper.<locals>.wrapped&   s    Z\**r   )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                  s6    \        R R4       \        R R4       R# )cu2quZcurve_to_quadraticZcurves_to_quadraticN)r   r   r   r   mainr   /   s    '/0'01r   Z__main__)r
   i   i  )Z__doc__r   r    r   r   r   r   r	   r   r   Z__name__Zseedr   r   r   <module>r      sO    0   
%W
=*2
 z
KKNF r   