<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Openresty on changediff</title><link>https://changediff.github.io/tags/openresty/</link><description>Recent content in Openresty on changediff</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Mon, 14 Aug 2023 22:00:59 +0800</lastBuildDate><atom:link href="https://changediff.github.io/tags/openresty/index.xml" rel="self" type="application/rss+xml"/><item><title>压测中使用openresty作为upstream来业务耗时</title><link>https://changediff.github.io/2023/08/14/upstream-timecost-simulate-with-openresty/</link><pubDate>Mon, 14 Aug 2023 22:00:59 +0800</pubDate><guid>https://changediff.github.io/2023/08/14/upstream-timecost-simulate-with-openresty/</guid><description>&lt;p&gt;最近在压测Apisix，需要按照一定的概率分布模拟请求耗时，以便达到模拟真实业务请求来压测的目的。&lt;/p&gt;&#10;&lt;p&gt;第一版后端程序使用Go语言，性能不达标，没法压到Apisix的极限；&#10;第二版使用Nginx作为后端程序，性能达标，压测4C8G的Apisix，极限TPS约1.4W；&#10;第三版使用openresty配合lua来模拟耗时，性能达标，4C8G的实例TPS约1.2W。&lt;/p&gt;</description></item></channel></rss>