nginx-apache-bench

Apachebench is a benchmark created to measure the webserver performance on HTTP protocol. This test runs apachebench against apache nginx

What It Tests

Test Apachebench on NGiNX

Preconditions

  • For ostree enabled image, it shall be unlocked via ostree admin unlock --hotfix

Test Parameters

Parameter

Default

Description

SKIP_INSTALL

"False"

skip the install

NUMBER

1000

Number of requests to perform

CONCURENT

100

Number of multiple requests to make at a time

Test Steps

cd ./automated/linux/nginx-apache-bench/
./apache-bench.sh -s "${SKIP_INSTALL}" -n "${NUMBER}" -c "${CONCURENT}"

Refer to apache-bench.yaml for complete test definition and execution details.

Expected Results

The benchmark data for items as below are collected in output/result.txt

  • Time-taken-for-tests

  • Complete-requests

  • Failed-requests

  • Total-transferred

  • HTML-transferred

  • Requests-per-second

  • Time-per-request-mean

  • Time-per-request-concurent

  • Transfer-rate

References