<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Wrk on Niweea’s Blog</title><link>https://niweea.github.io/tags/wrk/</link><description>Recent content in Wrk on Niweea’s Blog</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 28 Oct 2020 09:00:00 +0800</lastBuildDate><atom:link href="https://niweea.github.io/tags/wrk/index.xml" rel="self" type="application/rss+xml"/><item><title>压测工具</title><link>https://niweea.github.io/posts/benchmark/</link><pubDate>Wed, 28 Oct 2020 09:00:00 +0800</pubDate><guid>https://niweea.github.io/posts/benchmark/</guid><description>&lt;p&gt;HTTP 接口压测是评估服务容量和延迟的常用手段。命令行场景下，&lt;code&gt;ab&lt;/code&gt; 适合快速验证，&lt;code&gt;wrk&lt;/code&gt; 则在高并发和请求定制上更强。本文介绍两者的基本用法，并重点说明 wrk 的 Lua 脚本扩展。&lt;/p&gt;
&lt;h1 id="ab" class="relative group"&gt;ab &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#ab" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h1&gt;&lt;p&gt;Apache Benchmark（&lt;code&gt;ab&lt;/code&gt;）来自 Apache HTTP Server 工具集，安装简单、上手快，适合对单个 URL 做快速冒烟压测。&lt;/p&gt;</description></item></channel></rss>