百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

sniper

> 编程语言
开源

强大且高性能的 http 加载测试器

378 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

强大且高性能的 http 加载测试器

Sniper

Sniper is a powerful and high-performance http load tester writing in Golang. Basing on advantage of goroutine,achieving high concurrency,low memory,rich graphics display.

Notice: This project is on pre-alpha stage !

Try it

Pre-compiled executables

  • Darwin 64 bit
  • Darwin 32 bit
  • Linux 64 bit
  • Linux 32 bit
  • FreeBSD 64 bit
  • FreeBSD 32 bit
  • Windows 64 bit
  • Windows 32 bit

Features

  • GET / POST
  • Keep-alive
  • Https
  • Graphics display result
  • Multi-target
  • Large file support
  • Cross-platform——Linux,FreeBSD,Darwin

Compare

  tool 
  language 
  keep-alive 
  https 
  multi-target 
  result-show 
  proxy




  ab 
  c 
  NO 
  YES 
  NO 
  html,standard output
  YES 




  siege 
  c 
  YES 
  YES 
  YES 
  csv,standard output
  YES 




  http_load 
  c 
  NO 
  YES 
  YES 
  standard output
  YES 




  webbench 
  c 
  NO 
  YES 
  NO 
  standard output
  YES 




  sniper
  go
  YES 
  YES 
  YES 
  js+html5,standard output
  NO 

Performance

  • Memory usage less than Apache Benchmark(ab)
  • Execution speed close to ab
  • Large file support

Graphics display

  • Analyse each request and record it
  • Output http connect time
  • Output server processing time
  • Output total time

Basing on dygraphs and html5,show the detail of server's performance. Get 1000 samples from whole result,show the details of connect,processing,and server's response.

The chart below show the total time and connect time. Wait,how can golang get the connect time ? In a word,Sniper implements part of HTTP protocol stack, discard net/http package to get the details. Also improve the performance.

Usage manual

1. install Golang

Please reference Go install chapter of open-source Golang book "build-web-application-with-golang".

2. install Sniper

$ go get github.com/lubia/sniper
$ go install github.com/lubia/sniper
$ cp src/github.com/lubia/sniper/.sniperc ~

3. Parameter declaration

Example

GET

$sniper -c 10 -n 100 http://www.google.com

POST

$sniper -c 10 -n 100 -p postData.txt http://www.google.com

Parameter

Command line parameter
…
Config file parameter
Notice:default get config file from $HOME/.sniperc,config file and command line parameter complement each other. CMD -R to specified config file, CMD -C to get default configuration.  
…
Output

chart output to current directory "plot.html"

…

About

Twin projects

  • gohttpbench
  • vegeta

Author

Blog:Programer

Contact:yanyuan2046 at 126.com

Licence

Apache License, Version 2.0.

中文文档

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Goloader

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言