Tsuang Simple Tutorial Version-mac

Source: Internet
Author: User
Tags perl script

Website address: http://tsung.erlang-projects.org/

How the Tsung pressure test tool works is introduced:

(1) Each virtual user of Tsung is a lightweight process of Erlang. This is a big difference from LoadRunner.

(2) The virtual user disappears after completing the session.

(3) A large number of virtual users (Erlang lightweight processes) are built on ERLANGVM.

The installation steps for Mac OS X are as follows:

Homebrew is the simplest and most flexible way (like Yum under Linux) to install the Linux Toolkit on MAC OS x.

1. The installation process is simple, the command line input:

Ruby -E "$ (Curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"

2. Check the version number to confirm that homebrew is installed successfully

Brew–v

3: Next install Tsung, the process will be longer, brew will automatically install Tsung dependency package

Brew Install Tsung

4. Check the Tsung installation directory to make sure the installation directory is, as shown in the last line:

/usr/local/cellar/tsung/1.5.1

5. View the version number

Tsung-v

6. After installation can enter/usr/local/cellar/tsung/1.5.1 directory to view Tsung related files

7.tsung executes ~/.tsung/tsung.xml by default, so create the. Tsung folder in the home directory first,

Then put the template file in, execute the command: Tsung start

PS: You can also run the specified file using the command:tsung -f /.tsung/tsung.xml start

8. Install the Perl report template with the command: sudo cpan template

9. Generate the report:

Go to the log directory and run the command:

/usr/local/cellar/tsung/1.5.1/lib/tsung/bin/tsung_stats.pl

If this error is encountered, Can ' t locate template.pm in @INC (the Template module of the need to install)

Use the command to install the Perl module:sudo cpan Template, and then run the Perl script above

10. Finally open the generated report.html file with the browser, you can see the results

11.tsung Results Analysis

Tsung generated test reports are placed under ~/.tsung/log, named by date and time, such as: '. tsung/log/20150407-1951 ', of which the most important figures are

-Tsung The number of users generated by the graph. Tsung/log/20150407-1951/images/graphes-users-simultaneous.png

The y-axis represents the number of users per second, Tsung per second generates a batch of users, this statistic is counted every 10 seconds, the starting position of all the graphs is 0, is actually the first 10 seconds

-HTTP Interface Response number graph (TPS). tsung/log/20150407-1951/images/graphes-http_code-rate.png

Y-axis is the number of responses per second, the upper-right corner of the 200 is the HTTP status code, if there are multiple status codes, there will be many different colors of the curve.

-HTTP interface Response time graph. tsung/log/20150407-1951/images/graphes-perfs-mean.png

The y-axis is the interface response time, in milliseconds, and the request line represents the total time spent on requesting a response, and the line for connect represents the duration of the TCP link establishment.

Tsuang Simple Tutorial Version-mac

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.