51 lines
939 B
Makefile
51 lines
939 B
Makefile
b:
|
|
go build
|
|
mv burntsushi-tester B
|
|
|
|
a:
|
|
go build
|
|
mv burntsushi-tester A
|
|
|
|
a-l:
|
|
go build -gcflags=all=-l
|
|
mv burntsushi-tester A
|
|
|
|
b-l:
|
|
go build -gcflags=all=-l
|
|
mv burntsushi-tester B
|
|
|
|
test: test-a test-b test-sushi
|
|
|
|
profile: profile-a profile-b
|
|
|
|
test-a:
|
|
numactl --physcpubind=+1 bash -c "time ./A < testfile.toml"
|
|
|
|
profile-a:
|
|
numactl --physcpubind=+1 bash -c "./A -p 100 < testfile.toml"
|
|
|
|
|
|
test-b:
|
|
numactl --physcpubind=+2 bash -c "time ./B < testfile.toml"
|
|
|
|
profile-b:
|
|
numactl --physcpubind=+2 bash -c "./B -p 100 < testfile.toml"
|
|
|
|
test-sushi:
|
|
|
|
numactl --physcpubind=+3 bash -c "time ${GOPATH}/bin/toml-test-decoder < testfile.toml"
|
|
|
|
|
|
test-sushi-a:
|
|
|
|
numactl --physcpubind=+3 bash -c "time ${GOPATH}/bin/toml-test ./A"
|
|
|
|
test-sushi-b:
|
|
|
|
numactl --physcpubind=+3 bash -c "time ${GOPATH}/bin/toml-test ./B"
|
|
|
|
test-sushi-sushi:
|
|
|
|
numactl --physcpubind=+3 bash -c "time ${GOPATH}/bin/toml-test ${GOPATH}/bin/toml-test-decoder"
|
|
|