github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/bench/microbenchmarks/http2/server_push_http2_bench (about) 1 #!/bin/bash 2 U=$1 3 B=$2 4 N=$3 5 create_files_list() { 6 echo -n "[" > $2; 7 for i in `seq $(($1 - 1))`; do 8 echo -n "\"__bench/l$i\","; 9 done >> $2; 10 echo -n "\"__bench/l$1\"" >> $2; 11 echo "]" >> $2; 12 } 13 14 file=$(mktemp) 15 create_files_list $N $file 16 nghttp -ns --header=':method:GET' --max-concurrent-streams=$N --data="$file" "http://$U/v1/push/$B" 17 rm $file