Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Feat: Spring24 project4 update leaderboard metrics #710

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tools/terrier_bench/terrier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,19 @@ struct TerrierTotalMetrics {
void Report(uint64_t db_size) {
auto transfer_txn_per_sec = committed_transfer_txn_cnt_ / static_cast<double>(elapsed_) * 1000;
auto join_txn_per_sec = committed_join_txn_cnt_ / static_cast<double>(elapsed_) * 1000;
auto committed_txn_cnt = committed_join_txn_cnt_ + committed_transfer_txn_cnt_;

fmt::print(stderr, "<<< BEGIN\n");

fmt::print(stderr, "transfer: {}\n", transfer_txn_per_sec);
fmt::print(stderr, "join: {}\n", join_txn_per_sec);
fmt::print(stderr, "db_size: {}\n", db_size);
if (committed_txn_cnt != 0) {
fmt::print(stderr, "db_size per committed txn: {}\n", db_size / static_cast<double>(committed_txn_cnt));
} else{
fmt::print(stderr, "db_size per committed txn: 999999999\n");
}


fmt::print(stderr, ">>> END\n");
}
Expand Down
Loading