Explorar o código

faster requests in bulk.sh

jomo %!s(int64=10) %!d(string=hai) anos
pai
achega
9d6f602206
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      test/bulk.sh

+ 1 - 1
test/bulk.sh

@@ -13,5 +13,5 @@ for uuid in `cat "$dir/uuids.txt"`; do
   if [ "$(( ((RANDOM<<15)|RANDOM) % 2 ))" -eq "1" ]; then
     helm="&helm"
   fi
-  curl -sSL -o /dev/null -w "%{url_effective} %{http_code} %{time_total}s\\n" "http://$host/avatars/$uuid?size=$size$helm" || exit 1
+  curl -sSL -o /dev/null -w "%{url_effective} %{http_code} %{time_total}s\\n" "http://$host/avatars/$uuid?size=$size$helm" &
 done