-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (24 loc) · 798 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
28
29
30
31
32
.PHONY: develop, release, python_handler, rust_handler
# export VIRTUAL_ENV={path to your virtual environment}
export INITIAL_SEED=42
export RUNS=20
export NUM_MERCHANTS=3000 #1000
export NUM_PAYMENTS_PER_MERCHANT=10000 #10000
export PERIODIC_STATISTICS_INTERVAL=100 #100
export PERIODIC_STATISTICS_WINDOW_SIZE=100 #100
export CONFIDENCE_INTERVAL=0.95
develop:
maturin develop
release:
maturin build --release --target x86_64-apple-darwin
pip install target/wheels/payment_handler_rs-0.1.0-cp310-cp310-macosx_10_12_x86_64.whl --force-reinstall
python_handler:
python handler_py.py
rust_parallel_handler:
python handler_rs_parallel.py
rust_single_threaded_handler:
python handler_rs_single_threaded.py
generate_payments:
python generate_payments.py
plot_dist:
python plot_dist.py