GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — WebBench/README.md at master · gzc/WebBench

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
35 lines (19 loc) · 1.3 KB
/

README.md

Copy path

File metadata and controls

35 lines (19 loc) · 1.3 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

#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.

source code


Webbench是一个在linux下使用的非常简单的网站压测工具。它使用fork()模拟多个客户端同时访问我们设定的URL,测试网站在压力下工作的性能,最多可以模拟3万个并发连接去测试网站的负载能力。Webbench使用C语言编写, 代码实在太简洁,源码加起来不到600行


Example Usage

/webbench http://www.zhihu.com/

Output

Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.

Benchmarking: GET http://www.zhihu.com/ (using HTTP/1.1)
1 client, running 30 sec.

Speed=124 pages/min, 20814 bytes/sec.
Requests: 62 susceed, 0 failed.

This open source C code is worth reading and I add some comment to the original file. Let's study together.


Follow @louis1992 on github.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.