Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

sniper

> 编程语言
Open source

A powerful & high-performance http load tester

378 stars0 likes1 views
WebsiteGitHub

About

A powerful & high-performance http load tester

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 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Goloader

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

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