difftreelog
ci fix unnecessary node rebuilds during benchmarking
in: master
1 file changed
Makefilediffbeforeafterboth888889evm_stubs: UniqueFungible UniqueNFT UniqueRefungible UniqueRefungibleToken ContractHelpers CollectionHelpers89evm_stubs: UniqueFungible UniqueNFT UniqueRefungible UniqueRefungibleToken ContractHelpers CollectionHelpers909091# TODO: Create benchmarking profile, make it a proper dependency91.PHONY: _bench92.PHONY: benchmarking-node92_bench:93benchmarking-node:93 cargo run --profile production --features runtime-benchmarks,$(RUNTIME) -- \94 cargo build --profile production --features runtime-benchmarks94 benchmark pallet --pallet pallet-$(if $(PALLET),$(PALLET),$(error Must set PALLET)) \9595 --wasm-execution compiled --extrinsic '*' \96define _bench =96 $(if $(TEMPLATE),$(TEMPLATE),--template=.maintain/frame-weight-template.hbs) --steps=50 --repeat=80 --heap-pages=4096 \97.PHONY: bench-$(1)97 --output=$(if $(OUTPUT),$(OUTPUT),./pallets/$(if $(PALLET_DIR),$(PALLET_DIR),$(PALLET))/src/weights.rs)98bench-$(1): benchmarking-node9899 ./target/production/unique-collator \99.PHONY: bench-evm-migration100 benchmark pallet --pallet pallet-$(1) \100bench-evm-migration:101 --wasm-execution compiled --extrinsic '*' \101 make _bench PALLET=evm-migration102 $(if $(4),$(4),--template=.maintain/frame-weight-template.hbs) --steps=50 --repeat=80 --heap-pages=4096 \102103 --output=$$(if $(3),$(3),./pallets/$(if $(2),$(2),$(1))/src/weights.rs)103.PHONY: bench-configuration104endef104bench-configuration:105105 make _bench PALLET=configuration106# _bench,pallet,(pallet_dir|),(output|),(extra|)106107$(eval $(call _bench,evm-migration))107.PHONY: bench-common108$(eval $(call _bench,configuration))108bench-common:109$(eval $(call _bench,common))109 make _bench PALLET=common110$(eval $(call _bench,unique))110111$(eval $(call _bench,fungible))111.PHONY: bench-unique112$(eval $(call _bench,refungible))112bench-unique:113$(eval $(call _bench,nonfungible))113 make _bench PALLET=unique114$(eval $(call _bench,structure))114115$(eval $(call _bench,foreign-assets))115.PHONY: bench-fungible116$(eval $(call _bench,collator-selection))116bench-fungible:117$(eval $(call _bench,identity))117 make _bench PALLET=fungible118$(eval $(call _bench,app-promotion))118119$(eval $(call _bench,maintenance))119.PHONY: bench-refungible120$(eval $(call _bench,xcm,,./runtime/common/weights/xcm.rs,"--template=.maintain/external-weights/template.hbs"))120bench-refungible:121 make _bench PALLET=refungible122123.PHONY: bench-nonfungible124bench-nonfungible:125 make _bench PALLET=nonfungible126127.PHONY: bench-structure128bench-structure:129 make _bench PALLET=structure130131.PHONY: bench-foreign-assets132bench-foreign-assets:133 make _bench PALLET=foreign-assets134135.PHONY: bench-collator-selection136bench-collator-selection:137 make _bench PALLET=collator-selection138139.PHONY: bench-identity140bench-identity:141 make _bench PALLET=identity142143.PHONY: bench-app-promotion144bench-app-promotion:145 make _bench PALLET=app-promotion146147.PHONY: bench-maintenance148bench-maintenance:149 make _bench PALLET=maintenance150151.PHONY: bench-xcm152bench-xcm:153 make _bench PALLET=xcm OUTPUT=./runtime/common/weights/xcm.rs TEMPLATE="--template=.maintain/external-weight-template.hbs"154121155.PHONY: bench122.PHONY: bench156bench: bench-app-promotion bench-common bench-evm-migration bench-unique bench-structure bench-fungible bench-refungible bench-nonfungible bench-configuration bench-foreign-assets bench-maintenance bench-xcm bench-collator-selection bench-identity123bench: bench-app-promotion bench-common bench-evm-migration bench-unique bench-structure bench-fungible bench-refungible bench-nonfungible bench-configuration bench-foreign-assets bench-maintenance bench-xcm bench-collator-selection bench-identity