Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOCS: Explicit Resource Management, cancellation and more #1922

Merged
merged 5 commits into from
Dec 25, 2024

Conversation

ardatan
Copy link
Owner

@ardatan ardatan commented Dec 23, 2024

Closes #1907

Copy link
Contributor

github-actions bot commented Dec 23, 2024

@benchmarks/node-fetch results (noConsumeBody)

   ✓ active_handles.................: avg=139.881733 min=18      med=140     max=183     p(90)=162     p(95)=167    
     data_received..................: 23 MB  767 kB/s
     data_sent......................: 15 MB  497 kB/s
     http_req_blocked...............: avg=3.42µs     min=611ns   med=1.39µs  max=7.11ms  p(90)=2.03µs  p(95)=2.31µs 
     http_req_connecting............: avg=1.48µs     min=0s      med=0s      max=6.85ms  p(90)=0s      p(95)=0s     
     http_req_duration..............: avg=19.87ms    min=3.41ms  med=19.25ms max=1.15s   p(90)=24.97ms p(95)=26.75ms
       { expected_response:true }...: avg=19.87ms    min=3.41ms  med=19.25ms max=1.15s   p(90)=24.97ms p(95)=26.75ms
     http_req_failed................: 0.00%  ✓ 0           ✗ 150384
     http_req_receiving.............: avg=32.51µs    min=9.19µs  med=22.33µs max=20.28ms p(90)=36.58µs p(95)=44.04µs
     http_req_sending...............: avg=11.4µs     min=3.31µs  med=6.37µs  max=10.2ms  p(90)=9.44µs  p(95)=13.49µs
     http_req_tls_handshaking.......: avg=0s         min=0s      med=0s      max=0s      p(90)=0s      p(95)=0s     
     http_req_waiting...............: avg=19.83ms    min=3.37ms  med=19.21ms max=1.15s   p(90)=24.93ms p(95)=26.68ms
     http_reqs......................: 150384 5012.138034/s
     iteration_duration.............: avg=39.86ms    min=12.97ms med=38.25ms max=1.18s   p(90)=43.72ms p(95)=49.96ms
     iterations.....................: 75169  2505.302452/s
     vus............................: 100    min=100       max=100 
     vus_max........................: 100    min=100       max=100 

Copy link
Contributor

github-actions bot commented Dec 23, 2024

@benchmarks/node-fetch results (consumeBody)

   ✓ active_handles.................: avg=140.346345 min=12      med=141     max=185     p(90)=159     p(95)=164    
     data_received..................: 22 MB  724 kB/s
     data_sent......................: 14 MB  464 kB/s
     http_req_blocked...............: avg=3.67µs     min=651ns   med=1.2µs   max=8.95ms  p(90)=2.02µs  p(95)=2.29µs 
     http_req_connecting............: avg=1.88µs     min=0s      med=0s      max=8.92ms  p(90)=0s      p(95)=0s     
     http_req_duration..............: avg=21.05ms    min=3.48ms  med=20.35ms max=1.14s   p(90)=26.27ms p(95)=28.24ms
       { expected_response:true }...: avg=21.05ms    min=3.48ms  med=20.35ms max=1.14s   p(90)=26.27ms p(95)=28.23ms
     http_req_failed................: 0.00%  ✓ 5           ✗ 142013
     http_req_receiving.............: avg=33.4µs     min=9.31µs  med=22.92µs max=16.81ms p(90)=37.19µs p(95)=43.96µs
     http_req_sending...............: avg=12.24µs    min=3.41µs  med=5.84µs  max=8.67ms  p(90)=9.5µs   p(95)=13.23µs
     http_req_tls_handshaking.......: avg=0s         min=0s      med=0s      max=0s      p(90)=0s      p(95)=0s     
     http_req_waiting...............: avg=21.01ms    min=3.44ms  med=20.32ms max=1.14s   p(90)=26.23ms p(95)=28.16ms
     http_reqs......................: 142018 4733.268934/s
     iteration_duration.............: avg=42.21ms    min=10.15ms med=40.62ms max=1.16s   p(90)=46.98ms p(95)=51.55ms
     iterations.....................: 70987  2365.901237/s
     vus............................: 0      min=0         max=100 
     vus_max........................: 100    min=100       max=100 

Copy link
Contributor

github-actions bot commented Dec 23, 2024

@benchmarks/server results (ponyfill)

     ✓ no-errors
     ✓ expected-result

   ✓ checks.........................: 100.00% ✓ 297032      ✗ 0     
     data_received..................: 29 MB   975 kB/s
     data_sent......................: 12 MB   396 kB/s
     http_req_blocked...............: avg=1.41µs   min=841ns    med=1.19µs   max=2.57ms  p(90)=1.87µs   p(95)=2.05µs  
     http_req_connecting............: avg=0ns      min=0s       med=0s       max=122.6µs p(90)=0s       p(95)=0s      
     http_req_duration..............: avg=140.1µs  min=97.33µs  med=135.74µs max=5.81ms  p(90)=158.12µs p(95)=165.23µs
       { expected_response:true }...: avg=140.1µs  min=97.33µs  med=135.74µs max=5.81ms  p(90)=158.12µs p(95)=165.23µs
     http_req_failed................: 0.00%   ✓ 0           ✗ 148516
     http_req_receiving.............: avg=24.38µs  min=12.23µs  med=22.86µs  max=2.89ms  p(90)=30.14µs  p(95)=32.84µs 
     http_req_sending...............: avg=6.22µs   min=3.99µs   med=5.4µs    max=275.9µs p(90)=8µs      p(95)=8.67µs  
     http_req_tls_handshaking.......: avg=0s       min=0s       med=0s       max=0s      p(90)=0s       p(95)=0s      
     http_req_waiting...............: avg=109.49µs min=68.19µs  med=104.82µs max=5.54ms  p(90)=124.18µs p(95)=129.98µs
     http_reqs......................: 148516  4950.314201/s
     iteration_duration.............: avg=197.63µs min=140.54µs med=192.47µs max=7.7ms   p(90)=218.04µs p(95)=227.38µs
     iterations.....................: 148516  4950.314201/s
     vus............................: 1       min=1         max=1   
     vus_max........................: 1       min=1         max=1   

Copy link
Contributor

github-actions bot commented Dec 23, 2024

@benchmarks/server results (native)

     ✓ no-errors
     ✓ expected-result

   ✓ checks.........................: 100.00% ✓ 210294      ✗ 0     
     data_received..................: 21 MB   705 kB/s
     data_sent......................: 8.4 MB  280 kB/s
     http_req_blocked...............: avg=1.38µs   min=852ns    med=1.19µs   max=189.26µs p(90)=1.87µs   p(95)=2.02µs  
     http_req_connecting............: avg=1ns      min=0s       med=0s       max=134.37µs p(90)=0s       p(95)=0s      
     http_req_duration..............: avg=224.01µs min=166.5µs  med=214.24µs max=7.31ms   p(90)=240.19µs p(95)=249.58µs
       { expected_response:true }...: avg=224.01µs min=166.5µs  med=214.24µs max=7.31ms   p(90)=240.19µs p(95)=249.58µs
     http_req_failed................: 0.00%   ✓ 0           ✗ 105147
     http_req_receiving.............: avg=25.34µs  min=13.79µs  med=23.75µs  max=2.87ms   p(90)=30.36µs  p(95)=32.88µs 
     http_req_sending...............: avg=6.31µs   min=4.16µs   med=5.48µs   max=336.2µs  p(90)=8.08µs   p(95)=8.65µs  
     http_req_tls_handshaking.......: avg=0s       min=0s       med=0s       max=0s       p(90)=0s       p(95)=0s      
     http_req_waiting...............: avg=192.35µs min=144.83µs med=182.56µs max=7.27ms   p(90)=205.84µs p(95)=214.65µs
     http_reqs......................: 105147  3504.762471/s
     iteration_duration.............: avg=280.87µs min=209.24µs med=270.35µs max=7.38ms   p(90)=299.43µs p(95)=311.02µs
     iterations.....................: 105147  3504.762471/s
     vus............................: 1       min=1         max=1   
     vus_max........................: 1       min=1         max=1   

Copy link
Contributor

github-actions bot commented Dec 23, 2024

@benchmarks/server results (undici)

     ✓ no-errors
     ✓ expected-result

   ✓ checks.........................: 100.00% ✓ 215062     ✗ 0     
     data_received..................: 22 MB   720 kB/s
     data_sent......................: 8.6 MB  287 kB/s
     http_req_blocked...............: avg=1.46µs   min=902ns    med=1.23µs   max=184.56µs p(90)=1.92µs   p(95)=2.08µs  
     http_req_connecting............: avg=1ns      min=0s       med=0s       max=121.03µs p(90)=0s       p(95)=0s      
     http_req_duration..............: avg=215.34µs min=157.27µs med=204.22µs max=57.6ms   p(90)=229.23µs p(95)=238.46µs
       { expected_response:true }...: avg=215.34µs min=157.27µs med=204.22µs max=57.6ms   p(90)=229.23µs p(95)=238.46µs
     http_req_failed................: 0.00%   ✓ 0          ✗ 107531
     http_req_receiving.............: avg=26.13µs  min=13.65µs  med=24.66µs  max=3.29ms   p(90)=31.47µs  p(95)=34.14µs 
     http_req_sending...............: avg=6.48µs   min=4.06µs   med=5.72µs   max=387.98µs p(90)=8.18µs   p(95)=9.04µs  
     http_req_tls_handshaking.......: avg=0s       min=0s       med=0s       max=0s       p(90)=0s       p(95)=0s      
     http_req_waiting...............: avg=182.72µs min=133.3µs  med=171.98µs max=57.53ms  p(90)=193.99µs p(95)=202.35µs
     http_reqs......................: 107531  3584.22298/s
     iteration_duration.............: avg=274.36µs min=200.1µs  med=262.2µs  max=57.73ms  p(90)=291.06µs p(95)=302.92µs
     iterations.....................: 107531  3584.22298/s
     vus............................: 1       min=1        max=1   
     vus_max........................: 1       min=1        max=1   

@ardatan ardatan changed the title Explicit Resource Management docs Explicit Resource Management, cancellation and more docs Dec 23, 2024
Co-authored-by: Dimitri POSTOLOV <dmytropostolov@gmail.com>
@ardatan ardatan changed the title Explicit Resource Management, cancellation and more docs DOCS: Explicit Resource Management, cancellation and more Dec 25, 2024
@ardatan ardatan merged commit 3419cba into master Dec 25, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Documentation] Request.signal, Plugin System and Explicit Resource Management
2 participants