Httpd mock service was born last night

Table of Contents

aha, I’m very excited to tell everybody, my new project named “httpd_mock” was born last night. Ok, let me give you a short brief:

  It’s a mock service for performance testing, debugging or something else, it support 3 types of response:

  1. specific length response
  2. chunked response
  3. mix type ( contain two types above )

How to Run:

  1. make
  2. make install
  3. cd bin && ./httpd_mock -c ../etc/httpd_mock.cfg

It’s a light and high performance service, one process takes 50% cpu can supply 50K+ QPS with 100-150ms avg latency.

btw, if you want to change its mode, change the configuration file, have a fun~