百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
F

fasthttp

> 编程语言
开源

Go的快取HTTP软件包,高性能的训练. 热道零内存分配. 最高可快于网络/http

23.4K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

Go的快取HTTP软件包,高性能的训练. 热道零内存分配. 最高可快于网络/http

fasthttp [] (https://goreportcard.com/report/GitHub.com/valyala/fasthttp) (中文(简体) ). Go. fasthttp的快速HTTP执行可能不适合您! fasthttp是为一些高性能边缘案例而设计的. 除非您的服务器/ 客户端每秒需要处理上千个中小请求, 并且需要连续的低毫秒响应快取时间 http 可能不适合您 。 对于大多数情况,网/http要好得多,因为它更容易使用,并且可以处理更多的案件. 在大多数情况下,你甚至不会注意到表现的差异。 VertaMedia在生产中成功使用Stencils(当前快取),每台实体服务器可同时使用超过1.5M的保存-活性连接,服务量可达200K rps。 TechEmpower Bank 第23轮结果 服务器基准 客户基准 安装文档实例 来自docs代码实例 Super fasthttp 工具 从net/http切换到 fs..

GitHub Issues· 94 开放

在 GitHub 查看全部
  • #2391

    HostClient: lost wakeup between AcquireConn pool check and waiter registration

    bug更新于 2026年9月13日

核心特点

  • •Fasthttp works with RequestHandler functions
  • •The RequestHandler
  • •Fasthttp allows setting response headers and writing response body
  • •Fasthttp doesn't provide ServeMux,
  • •fasthttp-routing
  • •Because creating a new channel for every request is just too expensive, so the channel returned by RequestCtx.Done() is only closed when the server is shutting down.
  • •net/http -> fasthttp conversion table:
  • •All the pseudocode below assumes w, r and ctx have these types:
  • •r.Body ➜ ctx.PostBody()
  • •r.URL.Path ➜ ctx.Path()

> 标签

Go

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言