1
0
mirror of https://github.com/fumiama/jieba.git synced 2026-06-05 00:32:51 +08:00

added bench.sh

This commit is contained in:
Wang Bin
2015-04-04 15:35:01 +08:00
parent e8cf1e9a9c
commit 847dae9d38

5
posseg/bench.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/sh
go test -run=XXX -v -bench=BenchmarkViterbi -benchtime 10s -benchmem -memprofile viterbi-mem.out -cpuprofile viterbi-cpu.out
go tool pprof -png -output ~/tmp/viterbi-cpu.png posseg.test viterbi-cpu.out
go tool pprof -png -output ~/tmp/viterbi-mem.png posseg.test viterbi-mem.out