SkillAgentSearch skills...

Ab

ApacheBench standalone - an Apache HTTP Server benchmark tool, known as "ab"

Install / Use

/learn @ShiFengAway/Ab
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

ApacheBench-standalone

ApacheBench standalone - an Apache HTTP Server benchmark tool, known as <b>ab</b> in apache/httpd


Requirement

There'll be a confliction when httpd-tools is already installed, because ab is part of httpd-tools.

  • gcc / clang
  • openssl-devel
  • apr-util-devel (apr-devel included)

Installation

Make and install

make
make install

Build RPM file on Linux

rpmbuild -tb ab-<version>.tar.gz

Basic Usage

ab -c10 -n100 https://g.cn/
ab -h

Source

Upstream version is from latest tag of apache/httpd

  • ap_release.h - httpd/include/ap_release.h
  • ab.c - httpd/support/ab.c
  • docs/man/ab.1 - httpd/docs/man/ab.1

About Version

ApacheBench seems to have its own version. However it doesn't changes very often. So we decide to tag this project with the version of httpd that sourced from.

ab -V   # This is ApacheBench, Version 2.3 <$Revision$>

About Windows

The following lines are commented in ab.c, so Windows is not supported.

#if !defined(WIN32) && !defined(NETWARE)
#include "ap_config_auto.h"
#endif

About APR - Apache Portable Runtime

Since apache/httpd is developed based on apr / apr-util, ApacheBench should be built with apr-devel and apr-util-devel of official yum packages repository. You can also build with newer version of apr yourself. (More details in README file of apr).

# Building APR RPM files on Linux
rpmbuild -tb apr-<version>.tar.bz2          # latest version - 1.5.2
rpmbuild -tb apr-util-<version>.tar.bz2     # latest version - 1.5.4

Related Skills

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated3d ago
Forks5

Languages

C

Security Score

90/100

Audited on Mar 21, 2026

No findings