ohler55 / perfer Goto Github PK
View Code? Open in Web Editor NEWHTTP performance benchmark tool.
License: MIT License
HTTP performance benchmark tool.
License: MIT License
Hi @ohler55
Thanks for this tool.
But i think it's doesn't work right!
Command: perfer -t2 -c2 -d2 http://localhost:4000
Results:
➜ ~ perfer -t2 -c2 -d2 http://localhost:4000
*-*-* Only one URL is allowed.
usage: perfer [options] <server-address>
Saturates a web server with HTTP requests while tracking the number of requests,
latency, and throughput. After the duration specified no more requests are sent
and the application terminates when all responses have been received or 10
seconds, which ever is sooner.
-h This help page.
--help
-v Verbose mode.
--version Version of this application.
-d <duration> Duration in seconds for the run. Positive decimal
--duration <duration> values are accepted.
-m <rate> Set a metering rate in request per second.
--meter <rate> (default: 0, indicating no metering)
-t <number> Number of threads to use for sending requests and
--threads <number> receiving responses. (default: 1)
-c <number> Total number of connection to use for sending
--connections <number> requests (default: 1)
-b <number> Maximum backlog for pipeline on a connection.
--backlog <number> (default: 1, range 1 - 15)
-l <percent,...> Percentages of latency spread to report.
--latency <percent,...> (example: 10,20,30,40,50,60,70,80,90,99)
-g <wide>x<high> Print a latency graph with the dimensions specified.
--graph <wide>x<high>
-r <file> File with the full content of the HTTP request.
--request <file> The -keep-alive option is ignored.
-k Keep connections alive instead of closing.
--keep-alive
-a <name: value> Add an HTTP header field with name and value.
--add <name: value>
-p <content> HTTP POST with the content provided.
--post <content> example: -p 'mutation { repeat(word: "Hello") }'
-j JSON output.
--json
<url> URL for requests.
example: http://localhost:6464/index.html
Or i'm doing something wrong?
Would you like to add more error handling for return values from functions like the following?
This command: ./bin/perfer --threads 4 --connections 20 --path index.html http://locahost:3000
I get this response:
*-*-* Only one URL is allowed.
usage: ./bin/perfer [options] <server-address>
...
I'm following the docs. This should run the benchmark right?
I would like to point out that identifiers like “__PERFER_DROP_H__
” and “_Pool
” do not fit to the expected naming convention of the C language standard.
Would you like to adjust your selection for unique names?
I suggest to reuse a higher level build system than your current make script so that powerful checks for software features will become easier.
Hey,
looks fine so far. Would be nice if you could intigrate socks5 proxy support like a proxy file and SSL support. Need it for testing my Cluster. You may add a contact optin like Skype discrod IRC...
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.