Skip to content
/ ab Public

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

License

Notifications You must be signed in to change notification settings

ShiFengAway/ab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ApacheBench-standalone

ApacheBench standalone - an Apache HTTP Server benchmark tool, known as ab 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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages