فهرست منبع

Update benchmark

hewei.it 4 سال پیش
والد
کامیت
5b8cdec8ae
3فایلهای تغییر یافته به همراه7 افزوده شده و 4 حذف شده
  1. 3 2
      .github/workflows/benchmark.yml
  2. 2 1
      README-CN.md
  3. 2 1
      README.md

+ 3 - 2
.github/workflows/benchmark.yml

@@ -46,8 +46,9 @@ jobs:
       - name: webbench
         run: |
           sudo nginx -c /etc/nginx/nginx.conf
+          sudo cp html/index.html /var/www/html/index.html
           bin/httpd -c etc/httpd.conf -d
           ps aux | grep nginx
           ps aux | grep httpd
-          wrk -c 100 -t 4 -d 10s http://127.0.0.1:80/
-          wrk -c 100 -t 4 -d 10s http://127.0.0.1:8080/
+          wrk -c 100 -t 2 -d 10s http://127.0.0.1:80/
+          wrk -c 100 -t 2 -d 10s http://127.0.0.1:8080/

+ 2 - 1
README-CN.md

@@ -2,8 +2,9 @@
 
 # libhv
 
-[![Latest Version](https://img.shields.io/github/release/ithewei/libhv.svg)](https://github.com/ithewei/libhv/releases)
+[![Release](https://img.shields.io/github/release/ithewei/libhv.svg)](https://github.com/ithewei/libhv/releases)
 [![CI](https://github.com/ithewei/libhv/workflows/CI/badge.svg?branch=master)](https://github.com/ithewei/libhv/actions/workflows/CI.yml?query=branch%3Amaster)
+[![Benchmark](https://github.com/ithewei/libhv/workflows/benchmark/badge.svg?branch=master)](https://github.com/ithewei/libhv/actions/workflows/benchmark.yml?query=branch%3Amaster)
 [![Platform](https://img.shields.io/badge/Platform-Linux%20%7C%20Windows%20%7C%20Mac-blue)](.github/workflows/CI.yml)
 
 `libhv`是一个类似于`libevent、libev、libuv`的跨平台网络库,提供了更简单的接口和更丰富的协议。

+ 2 - 1
README.md

@@ -2,8 +2,9 @@ English | [中文](README-CN.md)
 
 # libhv
 
-[![Latest Version](https://img.shields.io/github/release/ithewei/libhv.svg)](https://github.com/ithewei/libhv/releases)
+[![Release](https://img.shields.io/github/release/ithewei/libhv.svg)](https://github.com/ithewei/libhv/releases)
 [![CI](https://github.com/ithewei/libhv/workflows/CI/badge.svg?branch=master)](https://github.com/ithewei/libhv/actions/workflows/CI.yml?query=branch%3Amaster)
+[![Benchmark](https://github.com/ithewei/libhv/workflows/benchmark/badge.svg?branch=master)](https://github.com/ithewei/libhv/actions/workflows/benchmark.yml?query=branch%3Amaster)
 [![Platform](https://img.shields.io/badge/Platform-Linux%20%7C%20Windows%20%7C%20Mac-blue)](.github/workflows/CI.yml)
 
 Like `libevent, libev, and libuv`,