16 lines · bash
1#!/bin/bash2# SPDX-License-Identifier: GPL-2.03 4source ./benchs/run_common.sh5 6set -eufo pipefail7 8for t in 1 4 8 12 16; do9for i in 10 100 500 1000 5000 10000 50000 100000 500000 1000000; do10subtitle "nr_loops: $i, nr_threads: $t"11 summarize_ops "bpf_loop: " \12 "$($RUN_BENCH -p $t --nr_loops $i bpf-loop)"13 printf "\n"14done15done16