fix: add bench
This commit is contained in:
parent
f6eda114bd
commit
ecfaf229e3
|
@ -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;
|
||||
}
|
||||
// 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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue