File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
cachelib/cachebench/vizualize Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1212# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313# See the License for the specific language governing permissions and
1414# limitations under the License.
15+ # Note:
16+ # For an even number of samples, this function returns the lower-middle
17+ # value instead of averaging the two middle values. This is intentional
18+ # for operational latency analysis.
1519
1620
1721input_logfile=$1
@@ -54,7 +58,7 @@ extract_latency() {
5458
5559 # check if the file actually produced valid content
5660 [[ " $( wc -l < " $out " ) " -eq " 1" ]] && \
57- echo " Incorrect log file. No latecny records found" || \
61+ echo " Incorrect log file. No latency records found" || \
5862 echo " $search latency written to $out "
5963}
6064
@@ -74,7 +78,8 @@ extract_bandwidth() {
7478 # get the bandwidth
7579 grep -e " $search " " $in " | \
7680 tail -1 | \
77- awk ' {print $10 " " $13}'
81+ awk -F ' [ ,]+' ' {for(i=1;i<=NF;i++) if($i=="egressBytesPerSec") print $(i+2), $(i+5)}'
82+
7883 } | column -t > " $out "
7984
8085 # check if the file actually produced valid content
You can’t perform that action at this time.
0 commit comments