Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add BHive Comparison script #97

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

boomanaiden154
Copy link
Collaborator

This patch adds a script for comparing BHive format CSVs (the first column being the hex bb and the second column being the throughput value). The script just outputs the average deviation between the two values.

This patch adds a script for comparing BHive format CSVs (the first
column being the hex bb and the second column being the throughput
value). The script just outputs the average deviation between the two
values.
@boomanaiden154
Copy link
Collaborator Author

Opening this as a draft for now as it needs some additional work and isn't ready for review. Need something to remind me that it exists though when I go back to find it.

@boomanaiden154 boomanaiden154 marked this pull request as ready for review March 27, 2024 08:21
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should have tests for the tool - and ideally also split this into cc_library + cc_binary with most code in the library, and unit test the library.

Comment on lines +59 to +65
std::string_view ThroughputValue1String =
std::string_view(File1Line).substr(Line1CommaIndex + 1,
File1Line.size());

std::string_view ThroughputValue2String =
std::string_view(File2Line).substr(Line2CommaIndex + 1,
File2Line.size());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should either check that the blocks are the same or load both files to memory, and join them by the block hex before comparing. Otherwise, this might produce misleading results :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants