Skip to content

Commit

Permalink
[fix] do not include the release model process in the cmdline model t…
Browse files Browse the repository at this point in the history
…o more precisely measure time.
  • Loading branch information
Oneplus committed Nov 15, 2014
1 parent 23ac7e9 commit 4113a34
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 1 addition & 3 deletions test/cws_cmdline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,13 @@ int main(int argc, char * argv[]) {
else std::cout<< "\t";
}
}

segmentor_release_segmentor(engine);

tm = ltp::utility::get_time() - tm;
std::cerr << "TRACE: cws-tm-consume "
<< tm
<< " seconds."
<< std::endl;

segmentor_release_segmentor(engine);
return 0;
}

4 changes: 2 additions & 2 deletions test/par_cmdline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ int main(int argc, char * argv[]) {
std::cout << std::endl;
}

parser_release_parser(engine);

tm = ltp::utility::get_time() - tm;
std::cerr << "TRACE: par-tm-consume "
<< tm
<< " seconds."
<< std::endl;

parser_release_parser(engine);
return 0;
}

6 changes: 3 additions & 3 deletions test/pos_cmdline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ int main(int argc, char * argv[]) {
}
}

postagger_release_postagger(engine);

tm = ltp::utility::get_time() - tm;
std::cerr << "TRACE: pos-tm-consume "
<< tm
<< tm
<< " seconds."
<< std::endl;

postagger_release_postagger(engine);

return 0;
}

0 comments on commit 4113a34

Please sign in to comment.