Skip to content

Commit d504139

Browse files
committed
update performance test log
1 parent 530707a commit d504139

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

test/buffer/arc_replacer_performance_test.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ namespace bustub {
2323

2424
TEST(ArcReplacerPerformanceTest, RecordAccessPerformanceTest) {
2525
// Test RecordAccess performance
26+
std::cout << "BEGIN" << std::endl;
2627
std::cout << "This test will see how your RecordAccess performs when the list is large. " << std::endl;
2728
std::cout << "If this takes above 3s on average, "
2829
"you might get into trouble trying to get full score in some following projects... "
@@ -57,10 +58,12 @@ TEST(ArcReplacerPerformanceTest, RecordAccessPerformanceTest) {
5758
}
5859
total /= 1000;
5960
double avg = total / access_times.size();
60-
std::cout << "Average time used: " << avg
61-
<< "s. If this takes above 3s on average, "
61+
std::cout << "END" << std::endl;
62+
std::cout << "Average time used: " << avg << "s." << std::endl;
63+
std::cout << "If this takes above 3s on average, "
6264
"you might get into trouble trying to get full score in some following projects... "
63-
"if you care, try optimizing RecordAccess for a bit";
65+
<< std::endl;
66+
std::cout << "If you care, try optimizing RecordAccess for a bit" << std::endl;
6467
ASSERT_LT(avg, 3);
6568
}
6669

0 commit comments

Comments
 (0)