项目作者: poolqa

项目描述 :
tps-test, http pressure-test
高级语言: Go
项目地址: git://github.com/poolqa/request_test.git
创建时间: 2020-08-04T11:21:12Z
项目社区:https://github.com/poolqa/request_test

开源协议:BSD 3-Clause "New" or "Revised" License

下载


Transactions Request Pressure Test

This is a simple tool for Http Pressure test.

You can use it on Windows system, and don’t be afraid to encounter run out the port.

It can reuse the connection.

If this tool can help you, please don’t forget to star me. :)

TODO

This tool is a semifinished product, if you want add some features, you can clone and fix it, or tall me.

get it

  1. go get github.com/poolqa/request_test

or

  1. git clone https://github.com/poolqa/request_test

build it

  1. go build

Run it

  1. request_test -c 3 -n 5 -u https://www.google.com -w
  2. Thread count: 3
  3. Starting at: 2020/08/03 22:20:40.711046
  4. Finished at: 2020/08/03 22:20:41.067851
  5. performance statistics :
  6. LE 1 Sec: count: 15
  7. -----------------------
  8. Total Count: 15
  9. Use times: 356.8042ms
  10. Tps: 42.040 per/sec
  11. Availability: 100.00%
  12. Failed: 0
  13. Connection Times
  14. min max avg
  15. Response time: 47.0104ms 116.3257ms 7.755046ms
  16. Transaction time: 47.0104ms 116.3257ms 7.755046ms
  17. Build cli time: 0s 0s 0s

Usage

  1. request_test -h
  2. Transactions Request Pressure Test/ v0.0.1
  3. Usage: pressure -c concurrency -n requests -t timeLimit -m method -u url -[dh]
  4. Options:
  5. -c concurrency
  6. go routine(concurrency) count at same time. (default 1)
  7. -d show debug log
  8. -h this help
  9. -i int
  10. print interval for process request count time. (default 1)
  11. -m method
  12. http method name. (default "GET")
  13. -n requests
  14. requests at every concurrency
  15. -r show those routine's requests detail at report log,
  16. but it wall use more and more memory.
  17. -t timeLimit
  18. timeLimit Seconds to max. to spend on benchmarking, timer is start at all routine wake up.
  19. -u url
  20. target url
  21. -w waiting all routines stand-by.

request_test is completely free. Please mark the source of request_test in your commercial product if possible.