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

fix: add bench

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