Coder Social home page Coder Social logo

ab's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.