+
    ŽvjÞ  ã                   ót   € ^ RI HtHt ^ RIt^ RIt^ RIHt ]P                  R R l4       tR R lt	R R	 lt
R# )
é    )ÚAnyÚ	GeneratorN©ÚClientc                óT   € V ^8„  d   QhR\         \        P                  RR3,          /# )é   ÚreturnN)r   Ú	responsesÚRequestsMock)Úformats   "ÚS/var/www/html/daimler-pipeline/venv/lib/python3.14/site-packages/tests/test_perf.pyÚ__annotate__r      s%   € ÷ 	ñ 	œ	¤)×"8Ñ"8¸$ÀÐ"DÕEñ 	ó    c               #  óâ   "  € \         P                  ! RR7      ;_uu_ 4       p V P                  \         P                  RR^RR^{/./^ÉR7       V x € RRR4       R#   + '       g   i     R# ; i5i)	zHIntercepts Mailjet API calls at the urllib3 layer for stable benchmarks.F)Úassert_all_requests_are_firedz'https://api.mailjet.com/v3/REST/contactÚCountÚDataÚID)ÚjsonÚstatusN)r
   r   ÚaddÚPOST)Úrspss    r   Úmocked_mailjetr      s`   é € ô 
×	Ò	¸e×	DÕ	DÈØ�‰Ü�N‰NØ5Ø˜1˜f¨¨c { mÐ4Øð	 	ô 	
ð Š
÷ 
E×	D×	DÒ	Düs   ‚ A/¢/AÁ
A/ÁA,	Á&	A/c                ó(   € V ^8„  d   QhR\         RR/# )r   Ú	benchmarkr	   N©r   )r   s   "r   r   r      s   € ÷ ñ ¬ð °ñ r   c                óB   a€ \        RR7      oR V3R llpV ! V4       R# )zIMeasure CPU overhead of the dynamic __getattr__ router and caching logic.©Úauthc                ó$   € V ^8„  d   QhR\         /# ©r   r	   r   )r   s   "r   r   Ú/test_client_routing_speed.<locals>.__annotate__    s   € ÷ ñ œ3ñ r   c                  ó   <€ S P                   # )N)Úcontact)Úclients   €r   Úroute_contactÚ0test_client_routing_speed.<locals>.route_contact    s   ø€ à�~‰~Ðr   N©ÚapiÚkeyr   )r   r'   r&   s   & @r   Útest_client_routing_speedr,      s!   ø€ ä˜Ô(€F÷ð ñ ˆmÖr   c                óH   € V ^8„  d   QhR\         R\        P                  RR/# )r   r   r   r	   N)r   r
   r   )r   s   "r   r   r   *   s(   € ÷ 	?ñ 	?¬cð 	?Ä9×CYÑCYð 	?Ð^bñ 	?r   c                ój   aa€ \        R
R7      oRRRR/oR VV3R llpV P                  V^2^
R7       R	# )zHMeasure the time from method call to response (with zero network delay).r   ÚEmailzperf@example.comÚNamezBenchmark Userc                ó$   € V ^8„  d   QhR\         /# r"   r   )r   s   "r   r   Ú4test_request_cycle_performance.<locals>.__annotate__/   s   € ÷ 3ñ 3œ#ñ 3r   c                  ó<   <€ S P                   P                  SR 7      # ))Údata)r%   Úcreate)r&   Úpayloads   €€r   Úsend_requestÚ4test_request_cycle_performance.<locals>.send_request/   s   ø€ Ø�~‰~×$Ñ$¨'Ð$Ó2Ð2r   )ÚroundsÚ
iterationsNr)   )r   Úpedantic)r   r   r7   r&   r6   s   && @@r   Útest_request_cycle_performancer<   *   s>   ù€ ä˜Ô(€FØÐ*¨FÐ4DÐE€G÷3ñ 3ð ×Ñ�|¨B¸2ÐÖ>r   )Útypingr   r   Úpytestr
   Úmailjet_rest.clientr   Úfixturer   r,   r<   © r   r   Ú<module>rB      s3   ðß !Û Û Ý &ð ‡�ô	ó ð	õ ÷	?r   