forked from avinassh/fast-sqlite3-inserts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (24 loc) · 788 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
33
# runs each of the scripts one after another, prints the measurements to stdout
.SILENT:
export TZ := ":Asia/Kolkata"
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