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:
5
posseg/bench.sh
Executable file
5
posseg/bench.sh
Executable 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
|
||||
Reference in New Issue
Block a user