diff options
-rw-r--r-- | fbench/CMakeLists.txt | 2 | ||||
-rwxr-xr-x | fbench/util/resultfilter.sh (renamed from fbench/util/resultfilter.pl) | 11 |
2 files changed, 4 insertions, 9 deletions
diff --git a/fbench/CMakeLists.txt b/fbench/CMakeLists.txt index 851d6706247..55045685b3d 100644 --- a/fbench/CMakeLists.txt +++ b/fbench/CMakeLists.txt @@ -17,4 +17,4 @@ vespa_define_module( src/test/authority ) -vespa_install_script(util/resultfilter.pl vespa-fbench-result-filter.pl bin) +vespa_install_script(util/resultfilter.sh vespa-fbench-result-filter bin) diff --git a/fbench/util/resultfilter.pl b/fbench/util/resultfilter.sh index f66aed42dc3..d6881f12a9d 100755 --- a/fbench/util/resultfilter.pl +++ b/fbench/util/resultfilter.sh @@ -1,14 +1,9 @@ -#!/usr/bin/perl +#!/usr/bin/bash # 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"; +sed -n "s/.*: *\([0-9.][0-9.]*\).*/\1/p" | tr '\n' ' ' +echo |