diff options
author | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-06-15 23:09:44 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-06-15 23:09:44 +0200 |
commit | 72231250ed81e10d66bfe70701e64fa5fe50f712 (patch) | |
tree | 2728bba1131a6f6e5bdf95afec7d7ff9358dac50 /fbench/util/resultfilter.pl |
Publish
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"; |