0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/benchmark/http
Seth Brenith 862389b0aa
http: simplify checkInvalidHeaderChar
In the spirit of [17399](https://github.com/nodejs/node/pull/17399),
we can also simplify checkInvalidHeaderChar to use regex matching
instead of a loop. This makes it faster on long matches and slower
on short matches or non-matches. This change also includes some
sample data from an AcmeAir benchmark run, as a rough proxy for
real-world data.

PR-URL: https://github.com/nodejs/node/pull/18381
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Benedikt Meurer <benedikt.meurer@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
2018-02-16 19:27:28 +01:00
..
_chunky_http_client.js benchmark: (http) use destructuring 2018-01-23 01:29:28 +01:00
bench-parser.js benchmark: (http(2)) refactor 2018-02-01 10:49:03 +01:00
check_invalid_header_char.js http: simplify checkInvalidHeaderChar 2018-02-16 19:27:28 +01:00
check_is_http_token.js benchmark: (http) use destructuring 2018-01-23 01:29:28 +01:00
chunked.js benchmark: (http) use destructuring 2018-01-23 01:29:28 +01:00
client-request-body.js benchmark: (http) use destructuring 2018-01-23 01:29:28 +01:00
cluster.js benchmark: (http) use destructuring 2018-01-23 01:29:28 +01:00
create-clientrequest.js benchmark: (http) use destructuring 2018-01-23 01:29:28 +01:00
end-vs-write-end.js benchmark: (http) use destructuring 2018-01-23 01:29:28 +01:00
http_server_for_chunky_client.js test: move tmpdir to submodule of common 2018-01-31 22:11:07 -08:00
set_header.js http: switch on string values 2018-01-26 16:24:50 -05:00
set-header.js benchmark: cut down http benchmark run time 2018-02-01 11:43:30 +01:00
simple.js benchmark: cut down http benchmark run time 2018-02-01 11:43:30 +01:00
upgrade.js benchmark: (http(2)) refactor 2018-02-01 10:49:03 +01:00