提交 ecfaf229 编写于 作者: dengyihao's avatar dengyihao

fix: add bench

上级 f6eda114
......@@ -128,13 +128,13 @@ int BenchWrite(Idx *idx, int batchSize, int limit) {
int BenchRead(Idx *idx) { return 0; }
int main() {
Idx *idx = new Idx;
if (idx->SetUp(true) != 0) {
std::cout << "failed to setup index" << std::endl;
return 0;
} else {
std::cout << "succ to setup index" << std::endl;
}
// BenchWrite(idx, 100, 10000);
// Idx *idx = new Idx;
// if (idx->SetUp(true) != 0) {
// std::cout << "failed to setup index" << std::endl;
// return 0;
// } else {
// std::cout << "succ to setup index" << std::endl;
// }
// BenchWrite(idx, 100, 10000);
return 1;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册