diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-09-16 15:39:40 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-09-16 15:39:40 +0000 |
commit | 7791ec6a046a25a2af92024229ce9dfcbc1430bf (patch) | |
tree | 757ca04e51f4618041094c6347ee6b64f1a76475 /fbench | |
parent | cdcd2970ad451bbb944a6bc564f6b0e9a88168b8 (diff) |
Use bash instead of perl
Diffstat (limited to 'fbench')
-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 |