summaryrefslogtreecommitdiffstats
path: root/fbench/util/resultfilter.pl
blob: a49496cc27bdd25cb2e17bfb5ebc716d79e7f346 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/perl
# Copyright 2016 Yahoo Inc. 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";