测试基础之http_load(1)简介、安装、使用
http_load-09Mar2016
官方:https://acme.com/software/http_load/
一 简介
http_load - multiprocessing http test client
http_load runs multiple http fetches in parallel, to test the throughput of a web server. However unlike most such test clients, it runs in a single process, so it doesn't bog down the client machine. It can be configured to do https fetches as well.
You give it a file containing a list of URLs that may be fetched, a flag specifying how to start connections (either by rate or by number of simulated users), and a flag specifying when to quit (either after a given number of fetches or a given elapsed time). There are also optional flags for checksums, throttling, random jitter, and progress reports.
二 安装
# wget https://acme.com/software/http_load/http_load-09Mar2016.tar.gz
# cd http_load-09Mar2016
# make
三 使用
$ ./http_load -h
usage: ./http_load [-checksum] [-throttle] [-proxy host:port] [-verbose] [-timeout secs] [-sip sip_file]
-parallel N | -rate N [-jitter]
-fetches N | -seconds N
url_file
One start specifier, either -parallel or -rate, is required.
One end specifier, either -fetches or -seconds, is required.
准备urls文件
$ echo 'http://localhost:80' > urls
测试
$ ./http_load -parallel 2 -seconds 10 urls
49 fetches, 2 max parallel, 289884 bytes, in 10.0148 seconds
5916 mean bytes/connection
4.89274 fetches/sec, 28945.5 bytes/sec
msecs/connect: 28.8932 mean, 44.243 max, 24.488 min
msecs/first-response: 63.5362 mean, 81.624 max, 57.803 min
HTTP response codes:
code 200 -- 49
相关文章
- 安装和测试Kafka
- Bullet物理引擎的安装与使用
- Serverless 解惑——函数计算如何安装字体
- 压力测试工具ab及centos下单独安装方法 nginx和tomcat静态资源的性能测试
- haproxy 安装 各个参数的测试
- 测试-robot框架的安装和使用
- Linux下Apache ActiveMQ5.9的安装配置与测试
- Centos7 k8s v1.5.2二进制部署安装-dashboard--WEB管理
- CentOS 7 安装GitLab
- centos7.6下使用Docker安装Elasticsearch8.2.0 测试一
- Centos7.9虚拟机安装配置手册
- Anaconda:Anaconda安装图文教程及其tensorflow安装、运行、测试之最强详细攻略
- Python之youtube_dl:youtube_dl库的简介、安装、使用方法之详细攻略
- Python之Pyforest:Pyforest的简介、安装、使用方法之详细攻略
- 001-docker概述、架构、window安装、基本测试
- Nodejs基本概念及Nodejs、npm安装测试
- Windows10完美安装AI绘画软件stable-diffusion-webui:没有GPU显卡的电脑系统也能运行、测试AI绘画软件【包教会一键安装】
- k8s之安装 Kubernetes 多集群管理工具 - Kuboard v3版本
- Ubuntu16.04安装lsyncd并测试自动同步文件夹至备份服务器
- macOS 安装 python3
- Ubuntu18.04之有道词典安装(五十九)
- Ubuntu18.04安装openjdk-7-jdk(五十)
- 【每天学习亿点点系列】接口测试基础 —— Jmeter安装和配置
- Rabbitmq安装过程和踩过的坑( 二 集群搭建 )
- 第一章 九析带你玩转 rancher - 安装篇
- 安装kvm虚拟机报错,could not open disk ,imagePermission denied的解决
- phpstudy下载、安装、配置、网站部署、卸载(windows下php、apache、nginx环境测试)
- C++使用技巧(十三):Google-GTest测试框架的安装与使用(demo源码实现)
- Vmware下发行版安装教程及使用VS2019编写、调试Linux程序