-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (30 loc) · 985 Bytes
/
Makefile
File metadata and controls
42 lines (30 loc) · 985 Bytes
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
33
34
35
36
37
38
39
40
41
42
# runs each of the scripts one after another, prints the measurements to stdout
.SILENT:
.PHONY: build_rust
export TZ := ":Asia/Kolkata"
build_rust: sqlite3/libsqlite3.a
./cargo_build.sh
sqlite3/libsqlite3.a: sqlite3/sqlite3.c sqlite3/sqlite3.h sqlite3/compile.sh
sqlite3/compile.sh
#cargo clean -p rusqlite
busy-python:
echo
echo "$$(date)" "[PYTHON] busy_loop.py (100_000_000) iterations"
time python3 busy_loop.py;
busy-pypy:
echo
echo "$$(date)" "[PYPY] busy_loop.py (100_000_000) iterations"
time pypy3 busy_loop.py;
busy-rust:
cargo build --release --quiet --bin busy
echo
echo "$$(date)" "[RUST] busy.rs (100_000_000) iterations"
time ./target/release/busy;
busy-rust-thread:
cargo build --release --quiet --bin threaded_busy
echo
echo "$$(date)" "[RUST] threaded_busy.rs (100_000_000) iterations"
time ./target/release/threaded_busy;
busy-py-all: busy-python busy-pypy
busy-rust-all: busy-rust busy-rust-thread
busy-all: busy-py-all busy-rust-all