The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Compute plugins

  1. Math.pm - <math> - Simple calculations
  2. DiffPerSecond.pm - <diffpersec> - Calculate diffs
  3. Min.pm - <min> - Calculate minimum value
  4. Max.pm - <max> - Calculate maximum value
  5. Average.pm - <avg> - Calculate average value

Math.pm (<math> directive)

Add, substract, multiply and divice with this simple plugin.

Examples:

Very useful to transform between bytes/Kbytes/Mbytes etc.

DiffPerSecond.pm (<diffpersec> directive)

DiffPerSecond saves data from previous execution and calculates diffs.

Say you have the following series of information (per second):

10

90

80

The series of results would be:

90-10 = 80

80-90 = -10

The number you provide for <diffpersec> is the number of seconds between samples, so for instance this:

Min.pm (<min> directive)

Calculate minimum value over few iterations

Example:

Max.pm (<max> directive)

Calculate maximum value over few iterations

Example:

Average.pm (<avg> directive)

Calculate average value over few iterations

Example: