benchmark: add http header validator benchmark · nodejs/node@12e5405 · GitHub
Skip to content

Commit 12e5405

Browse files
jasnelladuh95
authored andcommitted
benchmark: add http header validator benchmark
Compare http.isValidHeaderName() and http.isValidHeaderValue() with http.validateHeaderName() and http.validateHeaderValue() wrapped in try/catch, for valid and invalid input, and for both 'strict' and 'relaxed' header value validation. Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: #66334 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Tim Perry <pimterry@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
1 parent e998d26 commit 12e5405

1 file changed

Lines changed: 120 additions & 0 deletions

File tree

‎benchmark/http/is_valid_header.js‎

Lines changed: 120 additions & 0 deletions

0 commit comments

Comments
 (0)