Blame tests/csv_rx-pm.pl.in
|
Packit Service |
384592 |
#!@PERL@
|
|
Packit Service |
384592 |
#
|
|
Packit Service |
384592 |
# Example to generate CSV performance data from test results taken from
|
|
Packit Service |
384592 |
# test generated by gen_rx-pm.pl.
|
|
Packit Service |
384592 |
#
|
|
Packit Service |
384592 |
use strict;
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
my %H = ();
|
|
Packit Service |
384592 |
while (<>) {
|
|
Packit Service |
384592 |
chomp;
|
|
Packit Service |
384592 |
my ($op, $label, $n, $i, $value) = (m/\s*\d+\)\s+\S+\s+"([^"]*)"\s+(\S+)\s+(\d+) item\(s\): passed\s+\((\d+)\s+\@\s+([-\+\d\.E]+) msec\s.*/);
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
next unless defined($value);
|
|
Packit Service |
384592 |
$H{$n}{$label} = $value;
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
}
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
printf "%s, %s, %s, %s\n", qw(N rx1 rx2 pm1);
|
|
Packit Service |
384592 |
for (sort {$a <=> $b} keys %H) {
|
|
Packit Service |
384592 |
printf "%s, %s, %s, %s\n", $_, $H{$_}{rx1}, $H{$_}{rx2}, $H{$_}{pm1}
|
|
Packit Service |
384592 |
};
|