-
Notifications
You must be signed in to change notification settings - Fork 523
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
refactor(benchmark-reporter): Refactor MochaReporter to handle benchmark mocha test results #21730
Conversation
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.
Didn't finish looking at all of it in detail but I think the comments below suggest a different direction for the PR.
b82b769
to
ca6fce1
Compare
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.
Last batch of comments below, but we're almost there! :)
…ark mocha test results
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.
🚀
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.
Approving the API-level changes, given the existing PR approval (I didn't look at everything in depth, just the API changes). Thanks for adding the changelog notes!
…ark mocha test results (microsoft#21730) ## Description This is a change to remove MochaTestMomeryReporter and only keep the general Mocha benchmark test reporter. ## Sample Output console output of using `MochaReporter` vs `MochaTestMomeryReporter` ### Console log of general benchmark mocha test ![console_output_mocha](https://github.com/microsoft/FluidFramework/assets/114451900/bd2ed735-e35a-4661-8217-3d57f7cfd00b) ### Console log of memory benchmark mocha test ![console_output_memory](https://github.com/microsoft/FluidFramework/assets/114451900/32245298-a3b5-4752-b452-eabda296ac35) ### Report of general benchmark mocha test ![mocha_test_compare](https://github.com/microsoft/FluidFramework/assets/114451900/6aa5be43-185b-42e0-a6f1-2c944648ac4b) ### Report of memory benchmark mocha test ![memory_test_compare](https://github.com/microsoft/FluidFramework/assets/114451900/bb339b71-5337-409d-bd8a-bb5aadede157)
customData: { | ||
"batch count": this.samples.length, | ||
"period (ns/op)": stats.arithmeticMean, | ||
"relative margin of error": stats.marginOfErrorPercent, |
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.
Change.
"relative margin of error": stats.marginOfErrorPercent, | ||
"iterations per batch": this.iterationsPerBatch, | ||
}, | ||
customDataFormatters: { |
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.
Change the keys in customDataFormatters
to match those in customData
.
Description
This is a change to remove MochaTestMomeryReporter and only keep the general Mocha benchmark test reporter.
Sample Output
console output of using
MochaReporter
vsMochaTestMomeryReporter
Console log of runtime benchmark mocha test
Console log of memory benchmark mocha test
Report of runtime benchmark mocha test
Report of memory benchmark mocha test