Skip to content

Commit

Permalink
Update cmd.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mordamax committed Oct 21, 2024
1 parent 58dab0f commit 7cc592f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/scripts/cmd/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,7 @@ def main():
f"--no-median-slopes " \
f"--all " \
f"--list " \
f"--runtime=target/{profile}/wbuild/{runtime['package']}/{runtime['package'].replace('-', '_')}.wasm " \
f"{runtime['bench_flags']}"
f"--chain={runtime['name']}"
).read()
raw_pallets = output.strip().split('\n')

Expand Down Expand Up @@ -358,7 +357,7 @@ def main():
print(f'-- benchmarking {pallet} in {runtime} into {output_path}')
cmd = f"target/{profile}/{config['old_bin']} benchmark pallet " \
f"--extrinsic=* " \
f"--runtime=target/{profile}/wbuild/{config['package']}/{config['package'].replace('-', '_')}.wasm " \
f"--chain={config['name']} " \
f"--pallet={pallet} " \
f"--header={header_path} " \
f"--output={output_path} " \
Expand All @@ -367,8 +366,7 @@ def main():
f"--repeat=20 " \
f"--heap-pages=4096 " \
f"{f'--template={template} ' if template else ''}" \
f"--no-storage-info --no-min-squares --no-median-slopes " \
f"{config['bench_flags']}"
f"--no-storage-info --no-min-squares --no-median-slopes "
print(f'-- Running: {cmd} \n')
status = os.system(cmd)

Expand Down

0 comments on commit 7cc592f

Please sign in to comment.