高性能、高可维护的 HTTP 解析器 llhttp

码农软件 · 软件分类 · 其他开发相关 · 2019-10-16 08:13:41

软件介绍

llhttp 是一个高性能、高可维护的 HTTP 解析器。它是一个 http_parser 到 llparse 的接口,llparse 是用于将增量解析器编译为 C 输出和 LLVM bitcode 的 API,它可以编译并与嵌入式程序(如 Node.js)链接。

Node.js 中的 http_parser 实际上可维护性极差,这正是 llhttp 的发力之处, 它希望达到以下几个目标:

  • 可维护

  • 可验证

  • 尽可能提高性能

目前 llhttp 的性能优于 http_parser:


input sizebandwidthreqs/sectime
llhttp (C)8192.00 mb1497.88 mb/s3020458.87 ops/sec5.47 s
llhttp (bitcode)8192.00 mb1131.75 mb/s2282171.24 ops/sec7.24 s
http_parser8192.00 mb694.66 mb/s1406180.33 req/sec11.79 s

llhttp 快了大约 116%。

本文地址:https://codercto.com/soft/d/16861.html

The Web Application Hacker's Handbook

The Web Application Hacker's Handbook

Dafydd Stuttard、Marcus Pinto / Wiley / 2011-9-27 / USD 50.00

The highly successful security book returns with a new edition, completely updated Web applications are the front door to most organizations, exposing them to attacks that may disclose personal infor......一起来看看 《The Web Application Hacker's Handbook》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

SHA 加密
SHA 加密

SHA 加密工具