Python's web stress test Tool-pylot installation use

Source: Internet
Author: User
Tags install matplotlib

http://blog.csdn.net/chenggong2dm/article/details/10106517

Pylot is a Web stress test tool written by Python. The use is relatively simple. And the test results are relatively stable.

I have to despise the Apache AB test, the result is really a pain, the same URL, test results erratic, see people gripped, not touch the mind.

Download

Pylot official website: www. pylot. org/

Http://www.pylot.org/download.html

The latest version is pylot_1.26.zip-07/06/2009 (not updated for a long time)

Installation

Simple installation:

Decompression can be. (Board brick flew over ⊙﹏⊙ b)

The installation method on the official website is more troublesome. In fact, if you don't need a graphical report, just download the pylot_1.26.zip and unzip it to use the command line.

Full installation (complex installation):

According to the official website method:

1th Step: Download Pylot ( required )

2nd step: Install Python 2.5 + ( required )

3rd Step: Install Wxpython (optional-for GUI mode)

Get the installer from here: http://www.wxpython.org/download.php

4th Step: Install NumPy (optional-for reports with charts)

Get the installer from here: Http://sourceforge.net/projects/numpy

5th Step: Install Matplotlib (optional-for reports with charts)

Get the installer from here: Http://sourceforge.net/projects/matplotlib

--------------------------------------------------------------------------

Ps. I estimate that the full installation under the MAC is the most appropriate. If installed under Windows, Matplotlib can be cumbersome and requires GCC support. I've been tinkering with this for a while.

Use of command line methods

Configure the URL to be tested:

In the Pylot directory, edit the Testcases.xml file.

[HTML]View Plaincopy
  1. <testcases>
  2. <!--SAMPLE TEST Case---
  3. <case>
  4. <URL>http://www.xxxxx.com/test11.php</url>
  5. </Case>
  6. <!--SAMPLE TEST Case---
  7. <!--
  8. <case>
  9. <URL>http://search.yahooapis.com/websearchservice/v1/websearch</url>
  10. <method>post</method>
  11. <body><![ cdata[appid=yahoodemo&query=pylot]]></body>
  12. <add_header>content-type:application/x-www-form-urlencoded</add_header>
  13. </Case>
  14. -->
  15. </testcases>


command to run:

Generate 500 clients, test time 20 seconds:

Python run.py-a 500-d 20

Result description

The specific has been said to be more clear.

And, finally, you will be prompted with an HTML test results page for your reference.

Because in Windows, I did not install the matplotlib, so I can not see the Pylot graphical report, only under the ceonts, Run command.

There is time, you must ponder, the graphical interface to run up.

Python's web stress test Tool-pylot installation use

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.