Skip to content

Commit

Permalink
deps: update llhttp to 2.1.3
Browse files Browse the repository at this point in the history
PR-URL: #35435
Refs: nodejs/llhttp#65
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
  • Loading branch information
indutny authored and danielleadams committed Oct 6, 2020
1 parent e40876a commit 85062b3
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 111 deletions.
4 changes: 2 additions & 2 deletions deps/llhttp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ were tried. However, all of them failed due to resulting significant performance
degradation.

This project is a port of [http_parser][0] to TypeScript. [llparse][1] is used
to generate the output C and/or bitcode artifacts, which could be compiled and
to generate the output C source file, which could be compiled and
linked with the embedder's program (like [Node.js][7]).

## Performance
Expand All @@ -31,7 +31,7 @@ So far llhttp outperforms http_parser:

| | input size | bandwidth | reqs/sec | time |
|:----------------|-----------:|-------------:|-----------:|--------:|
| **llhttp** _(C)_ | 8192.00 mb | 1777.24 mb/s | 3583799.39 ops/sec | 4.61 s |
| **llhttp** | 8192.00 mb | 1777.24 mb/s | 3583799.39 ops/sec | 4.61 s |
| **http_parser** | 8192.00 mb | 694.66 mb/s | 1406180.33 req/sec | 11.79 s |

llhttp is faster by approximately **156%**.
Expand Down
2 changes: 1 addition & 1 deletion deps/llhttp/include/llhttp.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#define LLHTTP_VERSION_MAJOR 2
#define LLHTTP_VERSION_MINOR 1
#define LLHTTP_VERSION_PATCH 2
#define LLHTTP_VERSION_PATCH 3

#ifndef LLHTTP_STRICT_MODE
# define LLHTTP_STRICT_MODE 0
Expand Down
Loading

0 comments on commit 85062b3

Please sign in to comment.