Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit af4ece3

Browse files
committed
Update benchmark/Makefile
1 parent e64379c commit af4ece3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

‎benchmark/Makefile‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CXXFLAGS = -std=c++11 -O2 -I..
22

3-
THEAD_POOL_COUNT = 16
3+
CPPHTTPLIB_FLAGS = -DCPPHTTPLIB_THREAD_POOL_COUNT=16
44

55
BENCH = bombardier -c 10 -d 5s localhost:8080
66
MONITOR = ali http://localhost:8080
@@ -18,7 +18,7 @@ run : server
1818
@./server
1919

2020
server : cpp-httplib/main.cpp ../httplib.h
21-
g++ -o $@ $(CXXFLAGS) -DCPPHTTPLIB_THREAD_POOL_COUNT=$(THEAD_POOL_COUNT) cpp-httplib/main.cpp
21+
g++ -o $@ $(CXXFLAGS) $(CPPHTTPLIB_FLAGS) cpp-httplib/main.cpp
2222

2323
# cpp-httplib
2424
bench-base: server-base
@@ -33,7 +33,7 @@ run-base : server-base
3333
@./server-base
3434

3535
server-base : cpp-httplib-base/main.cpp cpp-httplib-base/httplib.h
36-
g++ -o $@ $(CXXFLAGS) -DCPPHTTPLIB_THREAD_POOL_COUNT=$(THEAD_POOL_COUNT) cpp-httplib-base/main.cpp
36+
g++ -o $@ $(CXXFLAGS) $(CPPHTTPLIB_FLAGS) cpp-httplib-base/main.cpp
3737

3838
# crow
3939
bench-crow: server-crow
@@ -51,10 +51,12 @@ server-crow : crow/main.cpp
5151
g++ -o $@ $(CXXFLAGS) crow/main.cpp
5252

5353
# misc
54+
build: server server-base server-crow
55+
5456
bench-all: bench-crow bench bench-base
5557

5658
issue:
57-
$(BENCH)
59+
bombardier -c 10 -d 30s localhost:8080
5860

5961
clean:
6062
rm -rf server*

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /