Debian Codegraph @

third-party/libhv-v1.3.3/.github/workflows/benchmark.yml

raw symbols SCIP
1 name: benchmark
2
3 on:
4 push:
5 paths-ignore:
6 - '**.md'
7
8 pull_request:
9 paths-ignore:
10 - '**.md'
11
12 jobs:
13 benchmark:
14 name: benchmark
15 runs-on: ubuntu-latest
16 steps:
17 - uses: actions/checkout@v3
18
19 - name: prepare
20 run: |
21 sudo apt update
22 sudo apt install libssl-dev
23 sudo apt install iperf
24 sudo apt install nginx
25
26 - name: make examples
27 run: |
28 ./configure
29 make examples
30
31 - name: build echo-servers
32 run: |
33 bash echo-servers/build.sh
34
35 - name: benchmark echo-servers
36 run: |
37 bash echo-servers/benchmark.sh
38
39 - name: benchmark tcp_proxy_server
40 run: |
41 iperf -s -p 5001 > /dev/null &
42 bin/tcp_proxy_server 1212 127.0.0.1:5001 &
43 iperf -c 127.0.0.1 -p 5001 -l 8K
44 iperf -c 127.0.0.1 -p 1212 -l 8K
45
46 - name: webbench
47 run: |
48 sudo nginx -c /etc/nginx/nginx.conf
49 sudo cp html/index.html index.html
50 sudo cp html/index.html /var/www/html/index.html
51 bin/httpd -c etc/httpd.conf -d
52 ps aux | grep nginx
53 ps aux | grep httpd
54 bin/tinyhttpd 9090 &
55 echo -e "\n======Test nginx send file==============================="
56 bin/wrk -c 100 -t 2 -d 10s http://127.0.0.1:80/
57 echo -e "\n======Test libhv/httpd send file (with FileCache)========"
58 bin/wrk -c 100 -t 2 -d 10s http://127.0.0.1:8080/
59 echo -e "\n======Test libhv/tinyhttpd send file (no FileCache)======"
60 bin/wrk -c 100 -t 2 -d 10s http://127.0.0.1:9090/
61 echo -e "\n======Test nginx 404 Not Found==========================="
62 bin/wrk -c 100 -t 2 -d 10s http://127.0.0.1:80/404
63 echo -e "\n======Test libhv/httpd 404 Not Found====================="
64 bin/wrk -c 100 -t 2 -d 10s http://127.0.0.1:8080/404
65 echo -e "\n======Test libhv/tinyhttpd 404 Not found================="
66 bin/wrk -c 100 -t 2 -d 10s http://127.0.0.1:9090/404
67 echo -e "\n======Test libhv/httpd /ping============================="
68 bin/wrk -c 100 -t 2 -d 10s http://127.0.0.1:8080/ping
69 echo -e "\n======Test libhv/tinyhttpd /ping========================="
70 bin/wrk -c 100 -t 2 -d 10s http://127.0.0.1:9090/ping