mirror of
https://github.com/NationalSecurityAgency/lemongraph.git
synced 2026-11-08 17:34:37 -10:00
9 lines
306 B
Bash
Executable File
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
|
|
)
|