EnglishFrenchSpanish

OnWorks favicon

tsplot - Online in the Cloud

Run tsplot in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command tsplot that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


tsplot - Plot several tsung logs on the same charts, for comparison purpose.

SYNOPSIS


tsplot [ -c configuration file ] [ -d images output directory ] [ -v verbose ] [ legend
logfile ]

DESCRIPTION


Tsung comes with a plotting tool using gnuplot, producing some graphs from the tsung.log
file data. tsplot is able to plot data from several tsung.log files onto the same charts
serie, for further comparison and analyze.

OPTIONS


-c

--config
specifies the configuration file to use. Default is http.en.plots.conf.

-d

--outdir
directory where tsplot saves the images it produces, defaults to /tmp/tsung.

-v

--verbose
makes tsplot very verbose about what it does.

CONFIGURATION


The configuration file of tsplot allows one to define the plots you want to obtain, from
their label to the data they will show. The configuration file adopts a .ini file syntax,
each section defining a chart.

tsplot comes with two sample configuration files, namely http.plots.en.conf and
pgsql.plots.en.conf. They respectively define charts to be plotted for a tsung HTTP test
and a tsung PGSQL test.

A DEFAULT section may be provided, any element configured here may then be overridden into
a specific plot section.

Another configuration file is used by tsplot: the tsung/stats.conf one. It's used to
define by type the statistics to be read into tsung log files, and you shouldn't need to
edit it, short of adding support for new tsung statistics.

Common settings, to be found into DEFAULT section or any specific chart section.

encoding
set here the encoding used thereafter in the file, for labels and titles.

dpi dpi setting of produced charts images

tn_dpi dpi setting of produced charts thumbnail images

imgtype
type of chart image to produce, as in png or ps

A complete list might be obtained on the python-matplotlib website,
http://matplotlib.sourceforge.net/

xlabel default label for horizontal axe, often you want seconds or minutes, depending on
xfactor.

Please note you can also set some defaults for ylabel, but this seems not to be a
good idea in practise.

xfactor
tsung logs statistics in its logfile every 10 seconds. By default, charts will not
scale this and have seconds as horizontal axis units. By setting an xfactor of 60,
you have a minute precision on horizontal axis.

yfactor
same as xfactor, but for vertical axis.

Depending on the data you obtain with your tests, you may want to adapt the
vertical scale of your plotting. For example, the page.mean statistic is logged in
milliseconds by tsung. You may want to display seconds if this unit better fits
your measures. Then simply set yfactor = 1000.

styles set here any number of matplotlib styles you want to use, separated by spaces, as
available here: http://matplotlib.sourceforge.net/matplotlib.pylab.html#-plot.

For exemple, set styles = b- g+ r- cx for plotting first dataset (see stats below)
with a blue solid line, second with green plus symbols, third with a red line and
last with cyan cross symbols.

This could fit a stats = 200.count 400.count stats setting when plotting two tsung
logs.

You then can define any number of plot, one by section, and give them an arbitrary name.
The name must be unique, and will be used for naming output images.

Any option available in DEFAULT section is also available in any specific chart section,
with the same meaning and effect. The specific setting will systematically override the
DEFAULT one.

title Title of the chart, as printed into the resulting image.

stats The statistics properties to use for this plotting, as named in the tsung/stats
configuration file. Please see this bundled file for a list of what is available.

Tsung provide several types of statistics, as documented here: http://tsung.erlang-
projects.org/user_manual.html#htoc53. The two main types of statistics used are
sample and counter. A third one is gauge but is only use for a single statistic
(users).

sample provides count, mean, stdvar, max, min and gmean (global mean) properties,
and counter provides only count and totalcount. gauge provide count and max.

The stats setting can accept several stat.property elements, separated by spaces.

Examples: stats = users.count to plot the number of simultaneously connected users,
and stats = 200.count 400.count to plot given HTTP return codes count, both on the
same chart.

Please notice tsplot is currently limited to use only one horizontal and only one
vertical scales. matplotlib is able to define some more complex drawings, but
tsplot is not yet able to benefit from this.

legend Legend prefix, which will be followed by the legend given on command line.

Each plot on a chart has a legend entry, you configure here the meaning of the plot
(say 'concurrent users') and tsplot will add it the name of the data serie being
plotted (say 'scenario x'). You'd obtain this legend: 'concurrent users scenario
x'.

ylabel label for vertical axe

CONFIGURATION EXAMPLE


Please see the given configuration examples which should be distributed in
/usr/share/doc/tsung/tsung-plotter/http.plots.en.conf and /usr/share/doc/tsung/tsung-
plotter/pgsql.plots.en.conf.

Use tsplot online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Osu!
    Osu!
    Osu! is a simple rhythm game with a well
    thought out learning curve for players
    of all skill levels. One of the great
    aspects of Osu! is that it is
    community-dr...
    Download Osu!
  • 2
    LIBPNG: PNG reference library
    LIBPNG: PNG reference library
    Reference library for supporting the
    Portable Network Graphics (PNG) format.
    Audience: Developers. Programming
    Language: C. This is an application that
    can also...
    Download LIBPNG: PNG reference library
  • 3
    Metal detector based on  RP2040
    Metal detector based on RP2040
    Based on Raspberry Pi Pico board, this
    metal detector is included in pulse
    induction metal detectors category, with
    well known advantages and disadvantages.
    RP...
    Download Metal detector based on RP2040
  • 4
    PAC Manager
    PAC Manager
    PAC is a Perl/GTK replacement for
    SecureCRT/Putty/etc (linux
    ssh/telnet/... gui)... It provides a GUI
    to configure connections: users,
    passwords, EXPECT regula...
    Download PAC Manager
  • 5
    GeoServer
    GeoServer
    GeoServer is an open-source software
    server written in Java that allows users
    to share and edit geospatial data.
    Designed for interoperability, it
    publishes da...
    Download GeoServer
  • 6
    Firefly III
    Firefly III
    A free and open-source personal finance
    manager. Firefly III features a
    double-entry bookkeeping system. You can
    quickly enter and organize your
    transactions i...
    Download Firefly III
  • More »

Linux commands

Ad