Skip to content

C++复现Webbench,使用多线程、互斥锁、socket

Notifications You must be signed in to change notification settings

Wlzzzz-del/Webbench_bycpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Webbench

Web Bench is very simple tool for benchmarking WWW or proxy servers. Uses fork() for simulating multiple clients and can use HTTP/0.9-HTTP/1.1 requests. This benchmark is not very realistic, but it can test if your HTTPD can realy handle that many clients at once (try to run some CGIs) without taking your machine down. Displays pages/min and bytes/sec. Can be used in more aggressive mode with -f switch.

Webbench_bycpp

Using C++ implement webbench, based on multi-thread、lock、Socket.

how to compile

g++ webbench.cpp -o webbench -std=c++11 -pthread

how to run

./webbench

contact me

vx: xxscoder email: [email protected]

About

C++复现Webbench,使用多线程、互斥锁、socket

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published