summaryrefslogtreecommitdiffstats
path: root/fbench/util/resultfilter.pl
blob: f66aed42dc31a3513d319055666ab866c7299ba3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/perl
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

# This script converts an fbench summary report read from stdin to a
# single line containing only the numerical values written to
# stdout.

while(<>) {
    chomp();
    if(/:\s*([-+]?[\d.]+)/) {
	print $1, " ";
    }
}
print "\n";