OpenResty - Benchmark


本站和网页 http://openresty.org/cn/benchmark.html 的作者无关,不对其内容负责。快照谨为网络故障时之索引,不代表被搜索网站的即时页面。

OpenResty - Benchmark
OpenResty
通过 Lua 扩展 NGINX 实现的可伸缩的 Web 平台
贡献力量
官方论坛
OpenResty 商业版
OpenResty XRay
Advanced observability built for OpenResty and more
×
limited time offer
Request
TRIAL
today and receive a diagnostic
REPORT
Submit
Learn more
博客
下载
安装
Bilibili 视频号
视频教程
企业级解决方案
新手上路
概览
组件
活动
样例
性能评测
幻灯片
电子图书
资源
变更历史
测试
联系我们
用户问卷调查
捐助
捐款者
关于
English Site
OpenResty.com
最新! OpenResty 1.21.4.1 已发布。
最新! Test::Nginx 0.30 已发布。
最新! 新博客文章 OpenResty XRay 分析和解决 B 站重大线上事故 已发表。
最新! 新博客文章 在 OpenResty Edge 中配置 HTTP 基本认证 已发表。
最新! 新博客文章 如何在 OpenResty Edge 中使用自定义动态指标 已发表。
Benchmark
Yichun Zhang
21 Jun 2011 (created 21 Jun 2011)
HelloWorld
Testing the performance of a HelloWorld server does not mean many things but
it does tell us where the ceiling is.
The HelloWorld server based on OpenResty is described in the
GettingStarted document.
Below is the result using the command ab -c10 -n50000 http://localhost:8080/ on
my ThinkPad T400 laptop with ngx_openresty 0.8.54.6:
Server Software: ngx_openresty/0.8.54
Server Hostname: localhost
Server Port: 8080
Document Path: /
Document Length: 20 bytes
Concurrency Level: 10
Time taken for tests: 2.459 seconds
Complete requests: 50000
Failed requests: 0
Write errors: 0
Total transferred: 8550342 bytes
HTML transferred: 1000040 bytes
Requests per second: 20335.69 [#/sec] (mean)
Time per request: 0.492 [ms] (mean)
Time per request: 0.049 [ms] (mean, across all concurrent requests)
Transfer rate: 3396.04 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 8
Processing: 0 0 0.2 0 8
Waiting: 0 0 0.1 0 8
Total: 0 0 0.2 0 8
Percentage of the requests served within a certain time (ms)
50% 0
66% 0
75% 0
80% 0
90% 1
95% 1
98% 1
99% 1
100% 8 (longest request)
So on my laptop, for a single nginx worker, we've got 20k+ r/s. For comparison,
HelloWorld servers using nginx + php-fpm 5.2.8 gives 4k r/s, Erlang R14B2 raw
gen_tcp server gives 8k r/s, and node.js v0.4.8 yields 5.7k
r/s.
更多有趣的文章
OpenResty XRay 分析和解决 B 站重大线上事故
在 OpenResty Edge 中配置 HTTP 基本认证
如何在 OpenResty Edge 中使用自定义动态指标
在 OpenResty Edge 中限制请求速率(使用自定义键)
OpenResty Edge 中 Gateway Config 的版本控制和发布管理
如何从剧本文档自动生成演示谷歌搜索的视频(使用 OpenResty Showman)
在 OpenResty Edge 中为上游请求设置不同的主机头信息
新增针对 Debian 11 的 OpenResty 官方安装包仓库
根据客户的语言设置重定向到不同的 URI (OpenResty Edge)
让机器从电影剧本自动生成百度搜索的演示视频
最近更新
25 Jul 2022
Main Menu
企业级解决方案
22 Jun 2022
OpenResty® Linux 包
01 Jun 2022
Test::Nginx 0.30 Released
18 May 2022
ChangeLog for 1.21.4.x
下载
OpenResty 1.21.4.1 Released
13 May 2022
Community
18 Apr 2022
OpenResty 1.21.4.1 RC3 is out
07 Mar 2022
OpenResty 1.21.4.1 RC2 is out
27 Jan 2022
OpenResty 1.21.4.1 RC1 is out
14 Nov 2021
OpenResty Deb 安装包
16 Aug 2021
OpenResty 1.19.9.1 Released
06 Aug 2021
ChangeLog for 1.19.9.x
08 Jun 2021
OpenResty® RPM 包
04 Jun 2021
ChangeLog for 1.19.3.x
OpenResty 1.19.3.1 RC1 is out
OpenResty 是 OpenResty Inc 公司所有的注册商标。
版权所有 © 2017, 2018, 2019, 2020, 2021, 2022 章亦春 (agentzh)
100% 由 OpenResty 和 PostgreSQL 驱动
查看本站的源代码)
京ICP备16021991号-1