Avatar for the vadimpiven user
vadimpiven
node_reqwest
BlogDocsChangelog

fix(node): bind Dispatcher methods so Agent survives undici.compose()

#155Merged
Comparing
fix/agent-compose-private-field
(
35ed433
) with
main
(
026326c
)
CodSpeed Performance Gauge
-1%
Untouched
15

Benchmarks

15 total
node-reqwest.Agent
packages/node/benchmarks/http2-post.bench.ts::HTTP/2 POST stream
CodSpeed Performance Gauge
+3%
51.4 ms49.7 ms
node-reqwest.Agent
packages/node/benchmarks/http2.bench.ts::HTTP/2 GET dispatch
CodSpeed Performance Gauge
+3%
57.8 ms56 ms
new Agent() default options
packages/node/benchmarks/glue.bench.ts::Agent construction
CodSpeed Performance Gauge
+1%
12.5 ms12.4 ms
node-reqwest.Agent
packages/node/benchmarks/http1.bench.ts::HTTP/1 GET dispatch
CodSpeed Performance Gauge
+1%
62.2 ms61.7 ms
Array<string> input
packages/node/benchmarks/glue.bench.ts::header serialization shapes
CodSpeed Performance Gauge
0%
16.7 µs16.6 µs
Record<string, string> input
packages/node/benchmarks/glue.bench.ts::header serialization shapes
CodSpeed Performance Gauge
0%
25.9 µs25.9 µs
undici.Agent
packages/node/benchmarks/http1-post.bench.ts::HTTP/1 POST stream
CodSpeed Performance Gauge
0%
38.8 ms38.8 ms
new Agent({ allowH2, timeouts, proxy })
packages/node/benchmarks/glue.bench.ts::Agent construction
CodSpeed Performance Gauge
0%
12.1 ms12.2 ms
undici.Agent
packages/node/benchmarks/http2-post.bench.ts::HTTP/2 POST stream
CodSpeed Performance Gauge
0%
93.5 ms93.6 ms
createUndiciError — UND_ERR_SOCKET
packages/node/benchmarks/glue.bench.ts::error class factory
CodSpeed Performance Gauge
0%
91.2 µs91.3 µs
undici.Agent
packages/node/benchmarks/http2.bench.ts::HTTP/2 GET dispatch
CodSpeed Performance Gauge
0%
50.7 ms50.8 ms
record + abort in onRequestStart
packages/node/benchmarks/glue.bench.ts::dispatch() pre-flight (sync path)
CodSpeed Performance Gauge
0%
110.4 µs110.6 µs
createUndiciError — UND_ERR_RESPONSE with body
packages/node/benchmarks/glue.bench.ts::error class factory
CodSpeed Performance Gauge
-2%
134.9 µs137.3 µs
undici.Agent
packages/node/benchmarks/http1.bench.ts::HTTP/1 GET dispatch
CodSpeed Performance Gauge
-6%
28.8 ms30.5 ms
node-reqwest.Agent
packages/node/benchmarks/http1-post.bench.ts::HTTP/1 POST stream
CodSpeed Performance Gauge
-9%
66.5 ms73.4 ms

Commits

Click on a commit to change the comparison range
Base
main
026326c
-12.11%
fix(node): bind Dispatcher methods so Agent survives undici.compose()
c281031
2 days ago
by vadimpiven
+11.5%
fix(node): address PR feedback — dispatch-through-proxy test, drop README requirements
35ed433
2 days ago
by vadimpiven
© 2026 CodSpeed Technology
Home Terms Privacy Docs