-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
49 lines (32 loc) · 1.64 KB
/
justfile
File metadata and controls
49 lines (32 loc) · 1.64 KB
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
43
44
45
46
47
48
49
set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]
build:
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build .
run: run-ycsb
build-release: build-release-linux build-release-windows
build-release-linux:
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -o memmondiff-linux-amd64
build-release-windows:
CGO_ENABLED=1 CC="zig cc -target x86_64-windows" GOOS=windows GOARCH=amd64 go build -o memmondiff-windows-amd64.exe
run-ycsb: build
./memmondiff ./testdata/ycsb_before ./testdata/ycsb_after
run-min-10000: build
./memmondiff --min=10000 ./testdata/ycsb_before ./testdata/ycsb_after
run-min-10: build
./memmondiff --min=10 ./testdata/ycsb_before ./testdata/ycsb_after
run-no-new: build
./memmondiff --no-new --min=10000 ./testdata/ycsb_before ./testdata/ycsb_after
tests: test-ycsb
test-ycsb: build
./test/test_ycsb.sh
help: build
./memmondiff --help
pretty-print: build
./memmondiff --min=10000 --pretty-print ./testdata/ycsb_before ./testdata/ycsb_after
run-sql-min-10000-no-new: build
./memmondiff --sql="diff >= 10000 AND before <> 0" ./testdata/ycsb_before ./testdata/ycsb_after
run-raw-query: build
./memmondiff --raw-query='SELECT filename, diff, after, before FROM entries WHERE diff >= 10000 AND before <> 0 ORDER BY diff DESC' ./testdata/ycsb_before ./testdata/ycsb_after
run-raw-query-filtered-total: build
./memmondiff --raw-query='SELECT sum(diff) FROM entries WHERE diff >= 10000 AND before <> 0 ORDER BY diff DESC' ./testdata/ycsb_before ./testdata/ycsb_after
run-raw-query-total: build
./memmondiff --raw-query='SELECT sum(diff) FROM entries' ./testdata/ycsb_before ./testdata/ycsb_after