高性能、高可维护的 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 Definitive Guide to MongoDB

The Definitive Guide to MongoDB

Peter Membrey、Wouter Thielen / Apress / 2010-08-26 / USD 44.99

MongoDB, a cross-platform NoSQL database, is the fastest-growing new database in the world. MongoDB provides a rich document orientated structure with dynamic queries that you’ll recognize from RDMBS ......一起来看看 《The Definitive Guide to MongoDB》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

html转js在线工具
html转js在线工具

html转js在线工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具