diff options
Diffstat (limited to 'fbench/util/resultfilter.pl')
-rwxr-xr-x | fbench/util/resultfilter.pl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/fbench/util/resultfilter.pl b/fbench/util/resultfilter.pl new file mode 100755 index 00000000000..a49496cc27b --- /dev/null +++ b/fbench/util/resultfilter.pl @@ -0,0 +1,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"; |