performance optimize

This commit is contained in:
YuhangQ 2021-10-29 10:27:11 +08:00
parent fabb655eca
commit 40ce388fb0
3 changed files with 4 additions and 1 deletions

View File

@ -3,6 +3,8 @@ project(InvoDB)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3")
include_directories(.)
include_directories(./invodb)

View File

@ -6,6 +6,7 @@
BTreeUUID::BTreeUUID(const int& address) {
root = address;
n_size = 0;
}
int BTreeUUID::find(const std::string& uuid) {

View File

@ -29,7 +29,7 @@ int main() {
col->insert(json);
BTreeUUID *btree = new BTreeUUID(PageManager::Instance().allocate());
btree->testAndBenchmark(1000);
btree->testAndBenchmark(100000);
return 0;
}