From 661a08e188b1d8d7bf4d5ad4c2eafa61057ffd6a Mon Sep 17 00:00:00 2001 From: Zach Koopmans Date: Wed, 2 Sep 2020 11:20:45 -0700 Subject: Add Docs to nginx benchmark. Adds docs to nginx and refactors both Httpd and Nginx benchmarks. Key changes: - Add docs and make nginx tests the same as httpd (reverse, all docs, etc.). - Make requests scale on c * b.N -> a request per thread. This works well with both --test.benchtime=10m (do a run that lasts at least 10m) and --test.benchtime=10x (do b.N = 10). -- Remove a doc from both tests (1000Kb) as 1024Kb exists. PiperOrigin-RevId: 329751091 --- images/benchmarks/nginx/nginx.conf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 images/benchmarks/nginx/nginx.conf (limited to 'images/benchmarks/nginx/nginx.conf') diff --git a/images/benchmarks/nginx/nginx.conf b/images/benchmarks/nginx/nginx.conf new file mode 100644 index 000000000..2c43c0cda --- /dev/null +++ b/images/benchmarks/nginx/nginx.conf @@ -0,0 +1,19 @@ +user nginx; +worker_processes 1; +daemon off; + +error_log /var/log/nginx/error.log warn; +pid /var/run/nginx.pid; + +events { + worker_connections 1024; +} + + +http { + server { + location / { + root /tmp/html; + } + } +} -- cgit v1.2.3