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 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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue