Conversation
about unit change
Contributor
ⓘ You are approaching your monthly quota for Qodo. Upgrade your plan Review Summary by QodoStandardize time values to nanoseconds for accurate results
WalkthroughsDescription• Convert all time values to nanoseconds for consistent unit handling • Eliminate unit conversion errors by standardizing on nanosecond output • Skip "Try to rerun" messages to prevent data corruption • Simplify PCP metric conversion by removing redundant unit conversions Diagramflowchart LR
A["Parse test results<br/>with various units"] -- "Convert to<br/>nanoseconds" --> B["Accumulate values<br/>in nanoseconds"]
B -- "Calculate average<br/>in nanoseconds" --> C["Output CSV<br/>with ns unit"]
C -- "Convert to seconds<br/>for PCP" --> D["Send to PCP<br/>metric system"]
File Changes1. pyperf/pyperf_run
|
Contributor
Code Review by Qodo
1.
|
|
This relates to RPOPC-947 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There is an issue with the time units. The unit may switch from run to run of each subtest (if we are at the boundary). This will cause erroneous reporting of data and averaging. To remedy this, convert the time run for each subtest pass to be nanoseconds.
Description
Fixes the results so they are always in ns.
Before/After Comparison
Before: We could get a mix of units when summing up results. Last unit is what gets reported
After: Results are now reported in ns.
Clerical Stuff
This closes #71
Relates to JIRA: RPOPC-947
Testing:
Ran and verified the output is what we expect.
csv portion
Test,Avg,Unit,Start_Date,End_Date
2to3,247483333,ns,2026-04-23T14:45:49Z,2026-04-23T15:38:33Z
async_generators,316516666,ns,2026-04-23T14:45:49Z,2026-04-23T15:38:33Z
async_tree_none,393866666,ns,2026-04-23T14:45:49Z,2026-04-23T15:38:33Z
async_tree_cpu_io_mixed,613350000,ns,2026-04-23T14:45:49Z,2026-04-23T15:38:33Z
async_tree_cpu_io_mixed_tg,618100000,ns,2026-04-23T14:45:49Z,2026-04-23T15:38:33Z
async_tree_eager,98886666,ns,2026-04-23T14:45:49Z,2026-04-23T15:38:33Z
async_tree_eager_cpu_io_mixed,365216666,ns,2026-04-23T14:45:49Z,2026-04-23T15:38:33Z
async_tree_eager_cpu_io_mixed_tg,521300000,ns,2026-04-23T14:45:49Z,2026-04-23T15:38:33Z
async_tree_eager_io,1070666666,ns,2026-04-23T14:45:49Z,2026-04-23T15:38:33Z
async_tree_eager_io_tg,1036133333,ns,2026-04-23T14:45:49Z,2026-04-23T15:38:33Z
async_tree_eager_memoization,234616666,ns,2026-04-23T14:45:49Z,2026-04-23T15:38:33Z
async_tree_eager_memoization_tg,378816666,ns,2026-04-23T14:45:49Z,2026-04-23T15:38:33Z
async_tree_eager_tg,270533333,ns,2026-04-23T14:45:49Z,2026-04-23T15:38:33Z
async_tree_io,942900000,ns,2026-04-23T14:45:49Z,2026-04-23T15:38:33Z
async_tree_io_tg,954366666,ns,2026-04-23T14:45:49Z,2026-04-23T15:38:33Z