Files
2016-07-27 13:15:15 -04:00

9 lines
306 B
Bash
Executable File

#!/bin/bash
export LC_ALL=C
time (
curl -s "${LG_SERVICE:-http://localhost:8000}/graph?user=bulk_test" | jq -r '.[].graph' | \
xargs -r printf "${LG_SERVICE:-http://localhost:8000}/graph/%s\n" | \
xargs -r -n50 -P${CORES:-`grep -c ^processor /proc/cpuinfo`} curl -H'x-please-pipeline: 1' -XDELETE
sync
)