[FEAT MERGE] ap benchmark opt

Co-authored-by: zhenhan.gong@gmail.com <zhenhan.gong@gmail.com>
Co-authored-by: skylhd <dickylhd@gmail.com>
Co-authored-by: DengzhiLiu <dengzhiliu@gmail.com>
This commit is contained in:
obdev
2024-06-19 06:41:44 +00:00
committed by ob-robot
parent 0fe3ce7c9e
commit 6bf3f38ce4
170 changed files with 4553 additions and 1481 deletions

View File

@ -187,7 +187,7 @@ TEST_F(TestObBitmap, get_row_ids)
for (int64_t i = 4090; i < 4100; ++i) {
EXPECT_EQ(OB_SUCCESS, bitmap.set(i, true));
}
int64_t *row_ids = reinterpret_cast<int64_t *>(allocator_.alloc(800));
int32_t *row_ids = reinterpret_cast<int32_t *>(allocator_.alloc(800));
int64_t row_count = 0;
int64_t from = 0;
EXPECT_EQ(OB_SUCCESS, bitmap.get_row_ids(row_ids, row_count, from, 3000, INT64_MAX));
@ -211,6 +211,7 @@ TEST_F(TestObBitmap, get_row_ids)
EXPECT_EQ(4090 + i - 2, row_ids[i]);
}
int ret = OB_SUCCESS;
from = 0;
EXPECT_EQ(OB_SUCCESS, bitmap.get_row_ids(row_ids, row_count, from, 8193, 10));
EXPECT_EQ(10, row_count);