-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
27 lines (21 loc) · 981 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.PHONY: clippy test
clippy:
cargo clippy --all-targets -- -D warnings
test:
cargo test
# BACKEND = lambdavm_backend or snarkvm_backend
benchmark_aleo_roulette:
cargo criterion --features ${BACKEND} --bench benchmark_aleo_roulette
# BACKEND = lambdavm_backend or snarkvm_backend
benchmark_aleo_credits:
cargo criterion --features ${BACKEND} --bench benchmark_aleo_credits
# Benches credits.aleo functions first with lambdavm's backend and then with
# snarkvm's backend.
benchmark_aleo_credits_backends_comparison:
cargo criterion --features lambdavm_backend --bench benchmark_aleo_credits \
&& cargo criterion --features snarkvm_backend --bench benchmark_aleo_credits
# Benches roulette.aleo functions first with lambdavm's backend and then with
# snarkvm's backend.
benchmark_aleo_roulette_backends_comparison:
cargo criterion --features lambdavm_backend --bench benchmark_aleo_roulette \
&& cargo criterion --features snarkvm_backend --bench benchmark_aleo_roulette