mirror of
https://github.com/NationalSecurityAgency/lemongraph.git
synced 2026-11-08 08:12:01 -10:00
10 lines
361 B
Bash
Executable File
10 lines
361 B
Bash
Executable File
#!/bin/bash
|
|
export LC_ALL=C
|
|
let n=${1:-1000}
|
|
time (
|
|
for (( i=1; i<=n; i++ )); do
|
|
echo "${LG_SERVICE:-http://localhost:8000}/graph"
|
|
done | xargs -P${CORES:-`grep -c ^processor /proc/cpuinfo`} -r -n50 curl -s -XPOST -H'x-please-pipeline: 1' -H'Content-Type: application/json' -d '{ "seed": true, "meta": { "roles": { "bulk_test": { "owner": true } } } }'
|
|
sync
|
|
)
|