Qf4 ddlZddlZddlZddlZgdZdZdZdZejZ e Z dZ dZ Gdd Zd d e edfd Zd d e eedfd Zddd dZedk(rej&eyy)N)Timertimeitrepeat default_timerz i@Bz def inner(_it, _timer{init}): {setup} _t0 = _timer() for _i in _it: {stmt} pass _t1 = _timer() return _t1 - _t0 c4 |jddd|zzS)N  )replace)srcindents -/opt/alt/python312/lib64/python3.12/timeit.pyreindentrQs4 ;;tTC&L0 11cDeZdZ ddedfdZddZefdZeefdZ ddZ y) rpassNc ||_i}| tn|}d}t|tr#t |t d|dz}t |d}n%t|r||d<|dz }d}d}n tdt|tr!t ||zt dt |d }n#t|r ||d <|d z }d }n td tj|||} | |_ t | t d} t| |||d|_ y)Nexecr _setupz, _setup=_setupz_setup()z&setup is neither a string nor callable_stmtz , _stmt=_stmtz_stmt()z%stmt is neither a string nor callable)stmtsetupinitinner)timer_globals isinstancestrcompiledummy_src_namercallable ValueErrortemplateformatr rr) selfrrrglobalslocal_ns global_nsr stmtprefixr codes r__init__zTimer.__init__hs1 ")/HJw  eS ! E>6 2JUA&E e_!&HX  % %DJEEF F dC J%~v >D!$D d^ $HW  O #DDDE Eoo4u4o@sNF3 T9h'g& rc ddl}ddl}|jGt|jd|jj dt f|j t <|j|y)Nrr file) linecache tracebackr lensplitr#cache print_exc)r(r1r2r3s rr7zTimer.print_excsZ $ 88 /2488}/3/3xx~~d/C/=/?IOON + &rc" tjd|}tj}tj |j ||j }|rtj|S#|rtjwwxYwN) itertoolsrgc isenableddisablerrenable)r(numberitgcoldtimings rrz Timer.timeitsn   dF +   ZZDJJ/F   s A55Bcp g}t|D]$}|j|}|j|&|Sr9)rangerappend)r(rr?rits rrz Timer.repeats< & vA F#A HHQKrc| d} dD].}||z}|j|}|r ||||dk\s*||fcS|dz}9)N)rJrg? )r)r(callbackrGjr? time_takens r autorangezTimer.autorangesb  Q![[0 VZ0$"J//  GArr9) __name__ __module__ __qualname__rr.r7default_numberrdefault_repeatrrPrrrrVs9"#& !'F'6+(+>4rrrc> t||||j|Sr9)rr)rrrr?r)s rrrs!M ueW - 4 4V <gư>gMbP?g?)nsecusecmsecsec)z-nz--number)z-sz--setup)z-uz--unitz:Unrecognized unit. Please select nsec, usec, msec, or sec.r0)z-rz--repeat)z-pz --process)z-vz --verbose)z-hz--helpr )endcXd}|dk7}t|j||rdnd|y)Nz%{num} loop{s} -> {secs:.{prec}g} secsrJsr)numresecsprec)printr')r?rOmsgplural precisions rrMzmain..callbackDs8= A+cjjVfs"&0y!BCrc}||}nGjDcgc] \}}||f }}}|jd|D] \}}||k\s nd|z fzScc}}w)NT)reversez%.*g %s)itemssort)dtunitscalescalesrl time_unitunitss r format_timezmain..format_timeXs}  $KE7<{{}E} eudm}FE KKK %% t; &IrEz4888 FsAz raw times: %sz, z"%d loop%s, best of %d: %s per looprerrz8The test results are likely unreliable. The worst time (z6) was more than four times slower than the best time (z).)sysargvgetopterrorrirjoinrUintrEstderrtime process_time__doc__ospathinsertcurdirrrPr7rmapminmaxwarnings warn_explicit UserWarning)argsrYrzoptserrrrr?rrr\oarrHrM_ raw_timingsrwrqtimingsbestworstrrlrurvs @@@rmainrs  |xx|]]4$KL d E 99T? $fD F E FGI4c BEI1 " "VF ! ! LLO  Ez R::' " "VF{ # #%%E # #Q qLG  's #12 IIe  &E HHOOAryy!E" dE5!A {  C   H-IFA  Ghhvv. 9 o #k;*G HHI %01[rrF{[G1 wrs/b  8!!  2 QQhfM $= fM E C4CL z CHHTVr