For example: a continuous 100 requests to an interface, carry parameters get, what good tools, recommended, thank you.
Reply content:
For example: a continuous 100 requests to an interface, carry parameters get, what good tools, recommended, thank you.
Thank you for your invitation.
Many tools can be completed, such as curl
(PHP can be done with curl extension), Apache Bench
(abbreviated as AB), WebBench
and siege
all can.
Xie invited
Apache's AB command can do a simple concurrency test
Jmeter
Python is the simplest to use requests
ab -c 1 -n 100 https://segmentfault.com/q/1010000005840937?_ea=921790
Php:file_get_contents
Jquery:$.get
—————————
Let's get a loop outside.
You can use a JavaScript script to build a 100 concurrent request using a For loop built-in with fetch in ES6
Unsupported browsers can initiate requests via JQuery's AJAX approach
And then using the Test tool Apache's ABR and Java software jmeter, etc.