NAME
Test::Parser::SysbenchCPU - Perl module to parse output from Sysbench --test=cpu
SYNOPSIS
use Test::Parser::SysbenchCPU;
my $parser = new Test::Parser::SysbenchCPU;
$parser->parse($text)
printf(" Threads: %15s\n", $parser->summary('threads'));
printf(" Max Prime: %15s\n", $parser->summary('maxprime'));
printf(" Total Time: %15s\n", $parser->totals('time'));
printf("Total Events: %15s\n", $parser->totals('events'));
printf(" Total Exec: %15s\n", $parser->totals('exec'));
printf(" PR Min: %15s\n", $parser->per_request('min'));
printf(" PR Avg: %15s\n", $parser->per_request('avg'));
printf(" PR Max: %15s\n", $parser->per_request('max'));
printf("95th Percent: %15s\n", $parser->per_request('95'));
printf(" Event Avg: %15s\n", $parser->eventfair('avg'));
printf("Event StdDev: %15s\n", $parser->eventfair('stddev'));
printf(" Exec Avg: %15s\n", $parser->execfair('avg'));
printf(" Exec StdDev: %15s\n", $parser->execfair('stddev'));
Additional information is available from the subroutines listed below and from the Test::Parser baseclass.
DESCRIPTION
This module provides a way to parse and neatly display information gained from the Sysbench CPU test. This module will parse the output given by this command and command similar to it: `sysbench --test=cpu > cpu.output` The cpu.output contains the necessary information that SysbenchCPU is able to parse.
FUNCTIONS
See Test::Parser for functions available from the base class.
new()
Purpose: Create a new Test::Parser::SysbenchCPU instance
Input: None
Output: SysbenchCPU object
data()
Purpose: Return a hash representation of the Sysbench data
Input: None
Output: SysbenchCPU data
parse_line()
Purpose: Parse Sysbench --test=cpu log files. This method override's the default parse_line() of Test::Parser
Input: String (one line of log file)
Output: 1
summary()
Purpose: Return Summary information for the Sysbench test
Input: 'threads' or 'maxprime'
Output: The number of threads OR the prime number calculated OR undef
totals()
Purpose: Return Totals information for the Sysbench test
Input: 'time' or 'events' or 'exec'
Output: The total time of execution OR the total number of events OR the total time taken by execution of all events OR undef
per_request()
Purpose: Return Per-Request information for the Sysbench test
Input: 'min' or 'avg' or 'max' or 95'
Output: The minimum OR average OR maximum amount of time per request OR the 9th percentile of time per request OR undef
eventfair()
Purpose: Return the Thread Fairness information for the Sysbench test
Input: 'avg' OR 'stddev'
Output: The average OR standard deviation of thread event fairness OR undef
execfair()
Purpose: Return the Thread Fairness information for the Sysbench test
Input: 'avg' OR 'stddev'
Output: The average OR standard deviation of thread execution fairness OR undef
AUTHOR
John Daiker <jdaiker@osdl.org>
COPYRIGHT
Copyright (C) 2006 John Daiker & Open Source Development Labs, Inc. All Rights Reserved.
This script is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 303:
'=end' without a target?