Skip to content

Commit

Permalink
taskset II
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteNacked committed May 22, 2024
1 parent 254c636 commit 855e9e1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ jobs:
- name: print cpu flags
run: |
echo "CPU cores: $(nproc)"
cat /proc/cpuinfo | grep flags | head -n 1
sleep 1
- name: Run all benchmarks
run: |
Expand Down
30 changes: 27 additions & 3 deletions scripts/benchmarking/run_all_benchmarks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,38 @@ for PALLET in "${PALLETS[@]}"; do
echo "[+] Benchmarking $PALLET with weight file $WEIGHT_FILE";

OUTPUT=$(
$GEAR benchmark pallet \
tasket -c 8 $GEAR benchmark pallet \
--chain="$chain_spec" \
--steps=$BENCHMARK_STEPS \
--repeat=$BENCHMARK_REPEAT \
--pallet="$PALLET" \
--extrinsic="$(IFS=, ; echo "${EXTRINSICS[*]}")" \
--heap-pages=4096 \
--output="$WEIGHT_FILE" \
--output="./${WEIGHTS_OUTPUT}/${PALLET}_1_core.json" \
--template=.maintain/dump_weights.hbs 2>&1
)

OUTPUT=$(
taskset -c 3-8 $GEAR benchmark pallet \
--chain="$chain_spec" \
--steps=$BENCHMARK_STEPS \
--repeat=$BENCHMARK_REPEAT \
--pallet="$PALLET" \
--extrinsic="$(IFS=, ; echo "${EXTRINSICS[*]}")" \
--heap-pages=4096 \
--output="./${WEIGHTS_OUTPUT}/${PALLET}_6_cores.json" \
--template=.maintain/dump_weights.hbs 2>&1
)

OUTPUT=$(
taskset -c 3-10 $GEAR benchmark pallet \
--chain="$chain_spec" \
--steps=$BENCHMARK_STEPS \
--repeat=$BENCHMARK_REPEAT \
--pallet="$PALLET" \
--extrinsic="$(IFS=, ; echo "${EXTRINSICS[*]}")" \
--heap-pages=4096 \
--output="./${WEIGHTS_OUTPUT}/${PALLET}_8_cores.json" \
--template=.maintain/dump_weights.hbs 2>&1
)

Expand All @@ -176,7 +200,7 @@ for PALLET in "${PALLETS[@]}"; do
then
echo "[+] Benchmarking $PALLET one-time syscalls with weight file ./${WEIGHTS_OUTPUT}/${PALLET}_onetime.rs";
OUTPUT=$(
taskset -c 3-8 $GEAR benchmark pallet \
$GEAR benchmark pallet \
--chain="$chain_spec" \
--steps=$BENCHMARK_STEPS_ONE_TIME_EXTRINSICS \
--repeat=$BENCHMARK_REPEAT_ONE_TIME_EXTRINSICS \
Expand Down

0 comments on commit 855e9e1

Please sign in to comment.