Coder Social home page Coder Social logo

webserver's Introduction

简单Web服务器

编译

make

压力测试

cd tools/test_presure/webbench-1.5
rm webbench && make
./webbench -c 5000 -t 5 http://xxx.xxx.xxx.xxx:xxxx/index.html
-c 客户端数量
-t 连接时间

测试结果

  • 5000 clients, running 5 sec.

    Speed=310404 pages/min, 822379 bytes/sec.

    Requests: 25867 susceed, 0 failed.

  • 8000 clients, running 5 sec.

    Speed=282888 pages/min, 749557 bytes/sec.

    Requests: 23574 susceed, 0 failed.

  • 10000 clients, running 5 sec.

    Speed=327588 pages/min, 868108 bytes/sec.

    Requests: 27299 susceed, 0 failed.

  • 12000 clients, running 5 sec.

    Speed=264324 pages/min, 700458 bytes/sec.

    Requests: 22027 susceed, 0 failed.

  • 15000 clients, running 5 sec.

    Speed=343752 pages/min, 910942 bytes/sec.

    Requests: 28646 susceed, 0 failed.

  • 20000 clients, running 5 sec.

    Speed=443136 pages/min, 1174246 bytes/sec.

    Requests: 36928 susceed, 0 failed.

  • 30000 clients, running 5 sec.

    Speed=561072 pages/min, 1485409 bytes/sec.

    Requests: 46748 susceed, 8 failed.

  • 10000 clients, running 10 sec.

    Speed=398184 pages/min, 1055187 bytes/sec.

    Requests: 66364 susceed, 0 failed.

webserver's People

Contributors

xavieryorke avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.