-
Notifications
You must be signed in to change notification settings - Fork 12
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
base: main
Are you sure you want to change the base?
Conversation
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.
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. |
There was a problem hiding this comment.
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.
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()); |
There was a problem hiding this comment.
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 :)
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.