aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks/httpd/Makefile
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-04-02 12:01:41 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-04-02 12:01:41 +0200
commit5bcc88fb9131884edd545af1f085c043cf34166a (patch)
tree090b05e1d97ab44e15cc82903707701b6f03ed60 /src/benchmarks/httpd/Makefile
parent5f477e0561b613038888a0fd7169f9b6dc11b118 (diff)
downloadallocbench-5bcc88fb9131884edd545af1f085c043cf34166a.tar.gz
allocbench-5bcc88fb9131884edd545af1f085c043cf34166a.zip
add real simple webserver benchmark using nginx and ab
Diffstat (limited to 'src/benchmarks/httpd/Makefile')
-rw-r--r--src/benchmarks/httpd/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/benchmarks/httpd/Makefile b/src/benchmarks/httpd/Makefile
new file mode 100644
index 0000000..572f3e6
--- /dev/null
+++ b/src/benchmarks/httpd/Makefile
@@ -0,0 +1,19 @@
+OBJDIR ?= obj
+
+.PHONY = all clean
+
+all: $(OBJDIR)/html $(OBJDIR)/nginx
+
+$(OBJDIR)/html: html | $(OBJDIR)
+ cp -r html $(OBJDIR)/html
+
+$(OBJDIR)/nginx: nginx/nginx.conf | $(OBJDIR)
+ mkdir $@
+ mkdir $@/logs
+ sed "s|OBJDIR|$(OBJDIR)|" $< > $@/nginx.conf
+
+$(OBJDIR):
+ mkdir -p $@
+
+clean:
+ rm -rf $(OBJDIR)