forked from sio/sysbench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (29 loc) · 859 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
34
35
36
37
38
39
40
41
SYSBENCH?=sysbench
.PHONY: sysbench
sysbench: sysbench.log
.PHONY: sysbench.log # always rebuild
sysbench.log:
@$(SYSBENCH) --version # Fail early if sysbench is not installed
@$(MAKE) .sysbench-run 2>&1 | tee --append $@
.PHONY: .sysbench-run
.sysbench-run:
@date
-lscpu || cat /proc/cpuinfo
-free -h || free -m
-lspci -nn
-lsusb
$(SYSBENCH) --threads=4 --cpu-max-prime=10000 cpu run
$(SYSBENCH) --threads=4 --cpu-max-prime=20000 cpu run
$(SYSBENCH) --threads=4 memory run
build: venv
$(VENV)/python build.py
clean:
git clean -dix
include Makefile.venv
Makefile.venv:
curl \
-o Makefile.fetched \
-L "https://github.com/sio/Makefile.venv/raw/v2020.08.14/Makefile.venv"
echo "5afbcf51a82f629cd65ff23185acde90ebe4dec889ef80bbdc12562fbd0b2611 *Makefile.fetched" \
| sha256sum --check - \
&& mv Makefile.fetched Makefile.venv