ApacheBench standalone - an Apache HTTP Server benchmark tool, known as ab in apache/httpd
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)
make
make install
rpmbuild -tb ab-<version>.tar.gz
ab -c10 -n100 https://g.cn/
ab -h
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
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$>
The following lines are commented in ab.c, so Windows is not supported.
#if !defined(WIN32) && !defined(NETWARE)
#include "ap_config_auto.h"
#endif
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