Skip to content

Commit 29e2a34

Browse files
committedFeb 19, 2019
Fixed goroutines benchmark code open path
1 parent 7a82f3e commit 29e2a34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎benchmark/goroutines/goroutines.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func worker() {
3030

3131
func openBook() (int, [][]byte) {
3232
// 打开将要分词的文件
33-
file, err := os.Open("../testdata/bailuyuan.txt")
33+
file, err := os.Open("../../testdata/bailuyuan.txt")
3434
if err != nil {
3535
log.Fatal(err)
3636
}
@@ -56,7 +56,7 @@ func main() {
5656
runtime.GOMAXPROCS(numThreads)
5757

5858
// 载入词典
59-
segmenter.LoadDict("../data/dict/dictionary.txt")
59+
segmenter.LoadDict("../../data/dict/dictionary.txt")
6060
size, lines := openBook()
6161

6262
// 启动工作线程

0 commit comments

Comments
 (0)
Please sign in to comment.