Skip to content

pabloelisseo/undici-http2-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

undici-http2-test

Compare HTTP/1.1 vs HTTP/2 performance against:

  • https://edc7748f6b7044bdbf69058375d16154-nova-landing.builderio.xyz

Setup

npm install

Run

npm run compare

You can tweak the workload:

npm run compare -- --trials 50 --warmup 5 --concurrency 10

Notes

  • The script uses Undici fetch() and passes a per-protocol Client as the dispatcher.
  • HTTP/2 is enabled via allowH2: true and the script prints the negotiated TLS ALPN protocol (h2 or http/1.1) so you can confirm what was actually used.

About

Repository for testing some changes on undici's http Agent API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published