You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
561 B
24 lines
561 B
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
_jobs=0
|
|
|
|
mkdir -p "./networks.d"
|
|
mkdir -p "./profiling"
|
|
|
|
find "./networks.d/" ! -name "$(printf "*\n*")" -name '*.json' > bench_nets.tmp
|
|
|
|
while IFS= read -r _file; do
|
|
printf "Benchmarking '%s' file...\n" "$_file"
|
|
mprof run \
|
|
--output "profiling/mprofile_$(basename "$_file").dat" \
|
|
--backend psutil_pss \
|
|
--python \
|
|
--include-children \
|
|
./benchmark.py \
|
|
-j $_jobs \
|
|
"$_file"
|
|
printf "Benchmark '%s' file completed.\n" "$_file"
|
|
done < bench_nets.tmp
|
|
rm bench_nets.tmp
|
|
|