xref: /linux/tools/testing/selftests/bpf/benchs/run_bench_strncmp.sh (revision 03ab8e6297acd1bc0eedaa050e2a1635c576fd11)
1*9c42652fSHou Tao#!/bin/bash
2*9c42652fSHou Tao# SPDX-License-Identifier: GPL-2.0
3*9c42652fSHou Tao
4*9c42652fSHou Taosource ./benchs/run_common.sh
5*9c42652fSHou Tao
6*9c42652fSHou Taoset -eufo pipefail
7*9c42652fSHou Tao
8*9c42652fSHou Taofor s in 1 8 64 512 2048 4095; do
9*9c42652fSHou Tao	for b in no-helper helper; do
10*9c42652fSHou Tao		summarize ${b}-${s} "$($RUN_BENCH --cmp-str-len=$s strncmp-${b})"
11*9c42652fSHou Tao	done
12*9c42652fSHou Taodone
13