-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (26 loc) · 1.26 KB
/
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
run-all:
cd test \
&& go test -bench=. -benchmem -benchtime=10x > ../results_run/all.csv \
&& cd ..
run-single:
cd test \
&& go test -bench=BenchmarkEncodeSingle -benchmem -benchtime=10x > ../results_run/single_encode.csv \
&& go test -bench=BenchmarkDecodeSingle -benchmem -benchtime=10x > ../results_run/single_decode.csv \
&& cd ..
run-slice:
cd test \
&& go test -bench=BenchmarkEncodeSlice -benchmem -benchtime=10x > ../results_run/slice_encode.csv \
&& go test -bench=BenchmarkDecodeSlice -benchmem -benchtime=10x > ../results_run/slice_decode.csv \
&& cd ..
run-map:
cd test \
&& go test -bench=BenchmarkEncodeSingleComplexMap -benchmem -benchtime=10x > ../results_run/map_single_encode.csv \
&& go test -bench=BenchmarkDecodeSingleComplexMap -benchmem -benchtime=10x > ../results_run/map_single_decode.csv \
&& go test -bench=BenchmarkEncodeSliceComplexMap -benchmem -benchtime=10x > ../results_run/map_slice_encode.csv \
&& go test -bench=BenchmarkDecodeSliceComplexMap -benchmem -benchtime=10x > ../results_run/map_slice_decode.csv \
&& cd ..
generate:
protoc -Iproto --go_opt=module=github.com/RSheremeta/gob_proto_bench --go_out=. proto/*.proto
clean:
rm proto_gen/*.pb.go
.PHONY: generate clean run-all run-single run-slice run-map