For example: a continuous 100 requests to an interface, carry parameters get, what good tools, recommended, thank you.

Source: Internet
Author: User
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.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.