Compare HTTP/1.1 vs HTTP/2 performance against:
https://edc7748f6b7044bdbf69058375d16154-nova-landing.builderio.xyz
npm installnpm run compareYou can tweak the workload:
npm run compare -- --trials 50 --warmup 5 --concurrency 10- The script uses Undici
fetch()and passes a per-protocolClientas thedispatcher. - HTTP/2 is enabled via
allowH2: trueand the script prints the negotiated TLS ALPN protocol (h2orhttp/1.1) so you can confirm what was actually used.