Skip to content

Commit

Permalink
makefile: Add Rusk bench
Browse files Browse the repository at this point in the history
  • Loading branch information
HDauven committed Aug 15, 2024
1 parent b34d758 commit f5666f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ doc: ## Run doc gen
$(MAKE) -C ./rusk-recovery $@
$(MAKE) -C ./wallet-core/ $@

bench: ## Bench Rusk
$(MAKE) -C ./rusk bench

run: keys state web-wallet ## Run the server
$(MAKE) -C ./rusk/ $@

Expand All @@ -79,4 +82,4 @@ COMPILER_VERSION=v0.2.0
setup-compiler: ## Setup the Dusk Contract Compiler
@./scripts/setup-compiler.sh $(COMPILER_VERSION)

.PHONY: all abi keys state wasm allcircuits contracts test run help rusk web-wallet setup-compiler
.PHONY: all abi keys state wasm allcircuits contracts test bench run help rusk web-wallet setup-compiler
5 changes: 4 additions & 1 deletion rusk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ build: ## Build rusk binary
build-bench: ## Build the benchmarks
@cargo bench --features testwallet --no-run

bench: ## Run the benchmarks
@cargo bench --features testwallet

run:
@cargo r --release --bin rusk

Expand All @@ -66,4 +69,4 @@ recovery-state: ## Build network state
-- recovery-state \
--init $(INITFILE)

.PHONY: test help clippy build build-bench recovery-keys recovery-state rusk
.PHONY: test help clippy build build-bench bench recovery-keys recovery-state rusk

0 comments on commit f5666f2

Please sign in to comment.