Skip to content

enhance(server): avoid unnecessary promises for optimizations#438

Merged
ardatan merged 2 commits into
masterfrom
optimizations
Aug 6, 2023
Merged

enhance(server): avoid unnecessary promises for optimizations#438
ardatan merged 2 commits into
masterfrom
optimizations

Conversation

@ardatan

@ardatan ardatan commented Aug 6, 2023

Copy link
Copy Markdown
Owner

No description provided.

@github-actions

github-actions Bot commented Aug 6, 2023

Copy link
Copy Markdown
Contributor

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
fets 0.4.10-alpha-20230806171700-a996bbd npm ↗︎ unpkg ↗︎

@github-actions

github-actions Bot commented Aug 6, 2023

Copy link
Copy Markdown
Contributor

💻 Website Preview

The latest changes are available as preview in: https://32d7f364.fets.pages.dev

@github-actions

github-actions Bot commented Aug 6, 2023

Copy link
Copy Markdown
Contributor

✅ Benchmark Results

     ✓ no_errors{server:node-http,mode:no-schema}
     ✓ expected_result{server:node-http,mode:no-schema}
     ✓ no_errors{server:node-http,mode:json-schema}
     ✓ expected_result{server:node-http,mode:json-schema}
     ✓ no_errors{server:node-http,mode:zod}
     ✓ expected_result{server:node-http,mode:zod}
     ✓ no_errors{server:uWebSockets,mode:no-schema}
     ✓ expected_result{server:uWebSockets,mode:no-schema}
     ✓ no_errors{server:uWebSockets,mode:json-schema}
     ✓ expected_result{server:uWebSockets,mode:json-schema}
     ✓ no_errors{server:uWebSockets,mode:zod}
     ✓ expected_result{server:uWebSockets,mode:zod}

     checks......................................: 100.00% ✓ 1283754     ✗ 0     
     data_received...............................: 116 MB  646 kB/s
     data_sent...................................: 80 MB   445 kB/s
     http_req_blocked............................: avg=1.32µs   min=800ns   med=1.1µs   max=1.93ms   p(90)=1.7µs   p(95)=2µs     
     http_req_connecting.........................: avg=2ns      min=0s      med=0s      max=670.71µs p(90)=0s      p(95)=0s      
     http_req_duration...........................: avg=192.95µs min=103.5µs med=171.1µs max=22.11ms  p(90)=219.4µs p(95)=241.1µs 
       { expected_response:true }................: avg=192.95µs min=103.5µs med=171.1µs max=22.11ms  p(90)=219.4µs p(95)=241.1µs 
     ✓ { server:node-http,mode:json-schema }.....: avg=214.3µs  min=132.2µs med=188.5µs max=17.02ms  p(90)=239.4µs p(95)=263.6µs 
     ✓ { server:node-http,mode:no-schema }.......: avg=201.65µs min=121.2µs med=172.7µs max=20.16ms  p(90)=226.4µs p(95)=255.5µs 
     ✓ { server:node-http,mode:zod }.............: avg=208.68µs min=133.9µs med=187.9µs max=11.13ms  p(90)=233.3µs p(95)=257.08µs
     ✓ { server:uWebSockets,mode:json-schema }...: avg=182.42µs min=114.8µs med=159.5µs max=16.93ms  p(90)=197.2µs p(95)=221.1µs 
     ✓ { server:uWebSockets,mode:no-schema }.....: avg=172.32µs min=103.5µs med=148µs   max=22.11ms  p(90)=189.1µs p(95)=213µs   
     ✓ { server:uWebSockets,mode:zod }...........: avg=183.95µs min=117.4µs med=160.5µs max=19.34ms  p(90)=200.5µs p(95)=224.2µs 
     http_req_failed.............................: 0.00%   ✓ 0           ✗ 641877
     http_req_receiving..........................: avg=20.13µs  min=9.7µs   med=17.2µs  max=19.16ms  p(90)=28.4µs  p(95)=32.6µs  
     http_req_sending............................: avg=8.36µs   min=4.8µs   med=6.5µs   max=7.96ms   p(90)=11.6µs  p(95)=13.4µs  
     http_req_tls_handshaking....................: avg=0s       min=0s      med=0s      max=0s       p(90)=0s      p(95)=0s      
     http_req_waiting............................: avg=164.45µs min=82.9µs  med=143.2µs max=22.05ms  p(90)=187.2µs p(95)=205.4µs 
     http_reqs...................................: 641877  3565.942924/s
     iteration_duration..........................: avg=274.34µs min=167.7µs med=247.7µs max=22.35ms  p(90)=314.9µs p(95)=339.5µs 
     iterations..................................: 641877  3565.942924/s
     vus.........................................: 1       min=1         max=2   
     vus_max.....................................: 2       min=2         max=2   

@ardatan ardatan merged commit c08cc22 into master Aug 6, 2023
@ardatan ardatan deleted the optimizations branch August 6, 2023 17:20
@github-actions github-actions Bot mentioned this pull request Aug 6, 2023
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.

1 participant