69 lines
1.4 KiB
Makefile
69 lines
1.4 KiB
Makefile
PROFILE_COUNT=100
|
|
PROFILE_COUNT2=1000
|
|
|
|
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"
|
|
|
|
test2-a:
|
|
numactl --physcpubind=+1 bash -c "time ./A < testfile2.toml"
|
|
|
|
profile-a:
|
|
numactl --physcpubind=+1 bash -c "./A -p ${PROFILE_COUNT} < testfile.toml"
|
|
|
|
profile2-a:
|
|
numactl --physcpubind=+1 bash -c "./A -p ${PROFILE_COUNT2} < testfile2.toml"
|
|
|
|
test-b:
|
|
numactl --physcpubind=+2 bash -c "time ./B < testfile.toml"
|
|
|
|
test2-b:
|
|
numactl --physcpubind=+2 bash -c "time ./B < testfile2.toml"
|
|
|
|
profile-b:
|
|
numactl --physcpubind=+2 bash -c "./B -p ${PROFILE_COUNT} < testfile.toml"
|
|
|
|
profile2-b:
|
|
numactl --physcpubind=+2 bash -c "./B -p ${PROFILE_COUNT2} < testfile2.toml"
|
|
|
|
test-sushi:
|
|
|
|
numactl --physcpubind=+3 bash -c "time ${GOPATH}/bin/toml-test-decoder < testfile.toml"
|
|
|
|
test2-sushi:
|
|
|
|
numactl --physcpubind=+3 bash -c "time ${GOPATH}/bin/toml-test-decoder < testfile2.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"
|
|
|