siadat / Benchttp
HTTP server benchmarking tool
Stars: ✭ 114
Programming Languages
go
31211 projects - #10 most used programming language
Labels
Projects that are alternatives of or similar to Benchttp
Bombardier
Fast cross-platform HTTP benchmarking tool written in Go
Stars: ✭ 2,952 (+2489.47%)
Mutual labels: cli, benchmarking
Git Chglog
CHANGELOG generator implemented in Go (Golang).
Stars: ✭ 1,895 (+1562.28%)
Mutual labels: cli
Dynbenchmark
Comparison of methods for trajectory inference on single-cell data 🥇
Stars: ✭ 111 (-2.63%)
Mutual labels: benchmarking
Micropy Cli
Micropython Project Management Tool with VSCode support, Linting, Intellisense, Dependency Management, and more!
Stars: ✭ 112 (-1.75%)
Mutual labels: cli
Ytfzf
A posix script to find and watch youtube videos from the terminal. (Without API)
Stars: ✭ 2,212 (+1840.35%)
Mutual labels: cli
Cli Spring Boot Scaffold
command line for generate crud and configs for spring boot projects
Stars: ✭ 113 (-0.88%)
Mutual labels: cli
Java Comment Preprocessor
The Most Powerful Multi-Pass Java Preprocessor
Stars: ✭ 111 (-2.63%)
Mutual labels: cli
Headlesschrome
A Go package for working with headless Chrome. Run interactive JavaScript commands on web pages with Go and Chrome.
Stars: ✭ 112 (-1.75%)
Mutual labels: cli
Nutmeg
Build, test, and publish vanilla Web Components with a little spice
Stars: ✭ 111 (-2.63%)
Mutual labels: cli
Rasterio
Rasterio reads and writes geospatial raster datasets
Stars: ✭ 1,643 (+1341.23%)
Mutual labels: cli
Mcpeserver
A Minecraft Server Launcher Written by Golang. Deprecated, please use official BDS
Stars: ✭ 113 (-0.88%)
Mutual labels: cli
Benchttp
Benchttp implements the most commonly used features of ApacheBench.
Benchmarks are limited with either -n number-of-requests
or -d total-duration
.
Install
go get -u github.com/siadat/benchttp/cmd/benchmark
Usage
Benchmark 1000 requests
benchttp -n 1000 http://localhost:8080
Benchmark 1000 requests with maximum 10 concurrently running requests
benchttp -n 1000 -c 10 http://localhost:8080
Benchmark server for 1s
benchttp -d 1s http://localhost:8080
Benchmark server for 1s with max 10 concurrently running requests
benchttp -d 1s -c 10 http://localhost:8080
Output
Duration: 2.238s
Requests: 10000 (4468.7/s)
Responses: 10000 (4468.7/s)
[200]: 10000
Options
-
-d duration
, e.g.,-d 10s
-
-n number-of-requests
, e.g.,-n 1000
-
-c max-concurrent-requests
, e.g.-c 100
-
-u admin:pass
supply basic authentication -
-H "key: value"
custom header -
-i
do HEAD requests instead of GET
Contribute
Issues and PRs are welcome.
Thanks
Thanks @Deleplace for testing and reviewing the code.
License
MIT
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].