-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (18 loc) · 768 Bytes
/
Makefile
File metadata and controls
22 lines (18 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
all:
@echo H4sIACcCSGUAA42OUQ6AMAhD/zkFf87E6IWW1INweGkZ+isko3l0gDuUHa3wwa7m4QN7vhWx1OVo2VXeIAY0jA2oLKk/ICtv5gafHHZ75JtangJpFGtv6I5Ri9krXCCKGZdlnuxP4EBM3lBXvEDM/H/YAwO2aM40AQAA|base64 -d |gunzip
@echo "make test"
@echo
@echo "DATA=dev/clinvar.vcf.gz make bench # run benchmark; file at https://ftp.ncbi.nlm.nih.gov/pub/clinvar/vcf_GRCh38/clinvar.vcf.gz"
test:
CGO_ENABLED=1 go test
CGO_ENABLED=0 go test --tags=use_slow_gzip
# 323860052 ns/op
bench:
go test --bench . |tee tmp.libdeflate
CGO_ENABLED=0 go test --tags=use_slow_gzip --bench . |tee tmp.stdlib
@python3 -c 'print("*"*80)'
@echo "* REPORT:"
./benchcalc.py tmp.*
@rm tmp.libdeflate tmp.stdlib
profile:
DATA=dev/clinvar.vcf.gz go test -gcflags -m=2 --bench . --benchmem -memprofile p.out