Skip to content

Commit

Permalink
deps: update llhttp to 2.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny authored and BethGriggs committed Oct 11, 2021
1 parent 95b9240 commit 8c254ca
Show file tree
Hide file tree
Showing 3 changed files with 518 additions and 346 deletions.
4 changes: 2 additions & 2 deletions deps/llhttp/README.md
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 source file, which could be compiled and
to generate the output C and/or bitcode artifacts, 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** | 8192.00 mb | 1777.24 mb/s | 3583799.39 ops/sec | 4.61 s |
| **llhttp** _(C)_ | 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
Expand Up @@ -3,7 +3,7 @@

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

#ifndef LLHTTP_STRICT_MODE
# define LLHTTP_STRICT_MODE 0
Expand Down

0 comments on commit 8c254ca

Please sign in to comment.