提交 8e1415ba 编写于 作者: G groot

Merge branch 'jinhai' of 192.168.1.105:jinhai/vecwise_engine into jinhai


Former-commit-id: 97a4429aed85095d23e6dd85e3329df38b47f3d6
...@@ -39,7 +39,7 @@ TEST_F(DBTest, DB_TEST) { ...@@ -39,7 +39,7 @@ TEST_F(DBTest, DB_TEST) {
xb[d * i] += i / 2000.; xb[d * i] += i / 2000.;
} }
int qb = 1; int qb = 5;
float *qxb = new float[d * qb]; float *qxb = new float[d * qb];
for(int i = 0; i < qb; i++) { for(int i = 0; i < qb; i++) {
for(int j = 0; j < d; j++) qxb[d * i + j] = drand48(); for(int j = 0; j < d; j++) qxb[d * i + j] = drand48();
...@@ -67,7 +67,15 @@ TEST_F(DBTest, DB_TEST) { ...@@ -67,7 +67,15 @@ TEST_F(DBTest, DB_TEST) {
STOP_TIMER(ss.str()); STOP_TIMER(ss.str());
ASSERT_STATS(stat); ASSERT_STATS(stat);
ASSERT_EQ(results[0][0], target_ids[0]); for (auto k=0; k<qb; ++k) {
ASSERT_EQ(results[k][0], target_ids[k]);
ss.str("");
ss << "Result [" << k << "]:";
for (auto result : results[k]) {
ss << result << " ";
}
LOG(DEBUG) << ss.str();
}
ASSERT_TRUE(count >= prev_count); ASSERT_TRUE(count >= prev_count);
std::this_thread::sleep_for(std::chrono::seconds(1)); std::this_thread::sleep_for(std::chrono::seconds(1));
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册