Tsung是用erlang语言进行开发的. 

Tsung的主要功能:

1. 高性能, 可以分布式的压测,可以模拟很高数量及的用户.

2. 插件模式,可以支持多种协议的测试.

HTTP, WebDAV, SOAP, PostgreSQL, MySQL, LDAP and XMPP/Jabber are currently supported. SSL is also supported.

3. 通过ipalias, 可以让多ip地址可以在同一加压机上使用.

4. xml 进行配置和定义测试场景.

several sessions can be used to simulate different type of users. Dynamic sessions can be easily described in XML (this can be used to retrieve at runtime an ID from the server output and use it later in the session).

 

5.  为了模拟更真实的场景, 支持think-time 和 到达率(?).

 

In order to generate a realistic traffic, user think-times and the arrival rate can be randomize using a probability distribution

 

6.  可以生成html报告.

HTML reports can be generated during the load to view response times measurement, server CPU, etc.

 

HTTP

  • HTTP/1.0 and HTTP/1.1 support
  • GET and POST requests
  • Cookies are automatically handled
  • 'GET If-modified since' type of request
  • WWW-authentication Basic
  • Proxy mode to record sessions using a Web browser.
  • Basic support for SOAP using the HTTP mode (the SOAPAction HTTP header is handle).
  • WebDAV extensions

XMPP (Jabber)

  • Authentication, presence and register messages
  • Chat messages to online or offline users
  • Roster set and get requests
  • Global users' synchronization can be set on specific actions
  • PubSub, MUC, Virtual Hosts

PostgreSQL

  • Authentication (password or MD5)
  • Basic Queries

MySQL

This plugin works only with MySQL version 4.1 and higher.

  • Secured authentication method only (MySQL >= 4.1)
  • Basic Queries

LDAP

  • Bind
  • Add, search, modify queries
  • starttls (only with R12B-0 Erlang and up)