项目作者: ShiFengAway

项目描述 :
ApacheBench standalone - an Apache HTTP Server benchmark tool, known as "ab"
高级语言: C
项目地址: git://github.com/ShiFengAway/ab.git
创建时间: 2016-10-20T09:23:45Z
项目社区:https://github.com/ShiFengAway/ab

开源协议:Apache License 2.0

下载


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

  1. make
  2. make install

Build RPM file on Linux

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

Basic Usage

  1. ab -c10 -n100 https://g.cn/
  2. 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.

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

About Windows

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

  1. #if !defined(WIN32) && !defined(NETWARE)
  2. #include "ap_config_auto.h"
  3. #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).

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