-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Fix bugs in performance.mark and performance.measure #52430
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
Conversation
This pull request was exported from Phabricator. Differential Revision: D77795990 |
Summary: Changelog: [internal] (This is marked as internal because this API hasn't been marked as stable yet). This fixes multiple bugs and missing features in `performance.mark` and `performance.measure`. See re-enabled tests to see the specific behaviors. Validated that performance isn't regressed by this change using the existing benchmark for `Performance` (`Performance-benchmark-itest`): * Before | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5557.96 ± 0.34%' | '5459.00' | '182114 ± 0.02%' | '183184' | 179922 | | 1 | 'mark (with custom startTime)' | '5664.54 ± 1.71%' | '5518.00' | '180296 ± 0.02%' | '181225' | 176537 | | 2 | 'measure (with start and end timestamps)' | '6653.62 ± 0.94%' | '6530.00' | '152296 ± 0.02%' | '153139' | 150295 | | 3 | 'measure (with mark names)' | '6903.37 ± 0.42%' | '6790.00' | '146429 ± 0.02%' | '147275' | 144857 | | 4 | 'clearMarks' | '782.98 ± 0.04%' | '771.00' | '1287735 ± 0.01%' | '1297017' | 1277173 | | 5 | 'clearMeasures' | '792.24 ± 0.03%' | '781.00' | '1270847 ± 0.01%' | '1280410' | 1262238 | | 6 | 'mark + clearMarks' | '5883.69 ± 0.52%' | '5759.00' | '172863 ± 0.02%' | '173641' | 169962 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7222.22 ± 0.68%' | '7021.00' | '141204 ± 0.02%' | '142430' | 138462 | | 8 | 'measure + clearMeasures (with mark names)' | '7234.53 ± 0.34%' | '7121.00' | '139600 ± 0.02%' | '140430' | 138227 | * After | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5579.80 ± 0.32%' | '5479.00' | '181368 ± 0.02%' | '182515' | 179218 | | 1 | 'mark (with custom startTime)' | '5759.72 ± 0.99%' | '5648.00' | '176162 ± 0.02%' | '177054' | 173620 | | 2 | 'measure (with start and end timestamps)' | '6506.38 ± 0.34%' | '6390.00' | '155503 ± 0.02%' | '156495' | 153696 | | 3 | 'measure (with mark names)' | '6770.94 ± 0.72%' | '6620.00' | '149833 ± 0.03%' | '151057' | 147691 | | 4 | 'clearMarks' | '785.89 ± 0.07%' | '771.00' | '1291356 ± 0.01%' | '1297017' | 1272442 | | 5 | 'clearMeasures' | '777.98 ± 0.06%' | '761.00' | '1303362 ± 0.01%' | '1314060' | 1285383 | | 6 | 'mark + clearMarks' | '5995.34 ± 1.37%' | '5779.00' | '171874 ± 0.03%' | '173040' | 166797 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7040.28 ± 0.57%' | '6830.00' | '145289 ± 0.03%' | '146413' | 142040 | | 8 | 'measure + clearMeasures (with mark names)' | '7184.43 ± 0.40%' | '6990.00' | '141809 ± 0.03%' | '143062' | 139190 | Reviewed By: huntie Differential Revision: D77795990
Summary: Changelog: [internal] (This is marked as internal because this API hasn't been marked as stable yet). This fixes multiple bugs and missing features in `performance.mark` and `performance.measure`. See re-enabled tests to see the specific behaviors. Validated that performance isn't regressed by this change using the existing benchmark for `Performance` (`Performance-benchmark-itest`): * Before | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5557.96 ± 0.34%' | '5459.00' | '182114 ± 0.02%' | '183184' | 179922 | | 1 | 'mark (with custom startTime)' | '5664.54 ± 1.71%' | '5518.00' | '180296 ± 0.02%' | '181225' | 176537 | | 2 | 'measure (with start and end timestamps)' | '6653.62 ± 0.94%' | '6530.00' | '152296 ± 0.02%' | '153139' | 150295 | | 3 | 'measure (with mark names)' | '6903.37 ± 0.42%' | '6790.00' | '146429 ± 0.02%' | '147275' | 144857 | | 4 | 'clearMarks' | '782.98 ± 0.04%' | '771.00' | '1287735 ± 0.01%' | '1297017' | 1277173 | | 5 | 'clearMeasures' | '792.24 ± 0.03%' | '781.00' | '1270847 ± 0.01%' | '1280410' | 1262238 | | 6 | 'mark + clearMarks' | '5883.69 ± 0.52%' | '5759.00' | '172863 ± 0.02%' | '173641' | 169962 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7222.22 ± 0.68%' | '7021.00' | '141204 ± 0.02%' | '142430' | 138462 | | 8 | 'measure + clearMeasures (with mark names)' | '7234.53 ± 0.34%' | '7121.00' | '139600 ± 0.02%' | '140430' | 138227 | * After | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5579.80 ± 0.32%' | '5479.00' | '181368 ± 0.02%' | '182515' | 179218 | | 1 | 'mark (with custom startTime)' | '5759.72 ± 0.99%' | '5648.00' | '176162 ± 0.02%' | '177054' | 173620 | | 2 | 'measure (with start and end timestamps)' | '6506.38 ± 0.34%' | '6390.00' | '155503 ± 0.02%' | '156495' | 153696 | | 3 | 'measure (with mark names)' | '6770.94 ± 0.72%' | '6620.00' | '149833 ± 0.03%' | '151057' | 147691 | | 4 | 'clearMarks' | '785.89 ± 0.07%' | '771.00' | '1291356 ± 0.01%' | '1297017' | 1272442 | | 5 | 'clearMeasures' | '777.98 ± 0.06%' | '761.00' | '1303362 ± 0.01%' | '1314060' | 1285383 | | 6 | 'mark + clearMarks' | '5995.34 ± 1.37%' | '5779.00' | '171874 ± 0.03%' | '173040' | 166797 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7040.28 ± 0.57%' | '6830.00' | '145289 ± 0.03%' | '146413' | 142040 | | 8 | 'measure + clearMeasures (with mark names)' | '7184.43 ± 0.40%' | '6990.00' | '141809 ± 0.03%' | '143062' | 139190 | Reviewed By: huntie Differential Revision: D77795990
912d705
to
07ae81d
Compare
This pull request was exported from Phabricator. Differential Revision: D77795990 |
Summary: Changelog: [internal] (This is marked as internal because this API hasn't been marked as stable yet). This fixes multiple bugs and missing features in `performance.mark` and `performance.measure`. See re-enabled tests to see the specific behaviors. Validated that performance isn't regressed by this change using the existing benchmark for `Performance` (`Performance-benchmark-itest`): * Before | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5557.96 ± 0.34%' | '5459.00' | '182114 ± 0.02%' | '183184' | 179922 | | 1 | 'mark (with custom startTime)' | '5664.54 ± 1.71%' | '5518.00' | '180296 ± 0.02%' | '181225' | 176537 | | 2 | 'measure (with start and end timestamps)' | '6653.62 ± 0.94%' | '6530.00' | '152296 ± 0.02%' | '153139' | 150295 | | 3 | 'measure (with mark names)' | '6903.37 ± 0.42%' | '6790.00' | '146429 ± 0.02%' | '147275' | 144857 | | 4 | 'clearMarks' | '782.98 ± 0.04%' | '771.00' | '1287735 ± 0.01%' | '1297017' | 1277173 | | 5 | 'clearMeasures' | '792.24 ± 0.03%' | '781.00' | '1270847 ± 0.01%' | '1280410' | 1262238 | | 6 | 'mark + clearMarks' | '5883.69 ± 0.52%' | '5759.00' | '172863 ± 0.02%' | '173641' | 169962 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7222.22 ± 0.68%' | '7021.00' | '141204 ± 0.02%' | '142430' | 138462 | | 8 | 'measure + clearMeasures (with mark names)' | '7234.53 ± 0.34%' | '7121.00' | '139600 ± 0.02%' | '140430' | 138227 | * After | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5579.80 ± 0.32%' | '5479.00' | '181368 ± 0.02%' | '182515' | 179218 | | 1 | 'mark (with custom startTime)' | '5759.72 ± 0.99%' | '5648.00' | '176162 ± 0.02%' | '177054' | 173620 | | 2 | 'measure (with start and end timestamps)' | '6506.38 ± 0.34%' | '6390.00' | '155503 ± 0.02%' | '156495' | 153696 | | 3 | 'measure (with mark names)' | '6770.94 ± 0.72%' | '6620.00' | '149833 ± 0.03%' | '151057' | 147691 | | 4 | 'clearMarks' | '785.89 ± 0.07%' | '771.00' | '1291356 ± 0.01%' | '1297017' | 1272442 | | 5 | 'clearMeasures' | '777.98 ± 0.06%' | '761.00' | '1303362 ± 0.01%' | '1314060' | 1285383 | | 6 | 'mark + clearMarks' | '5995.34 ± 1.37%' | '5779.00' | '171874 ± 0.03%' | '173040' | 166797 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7040.28 ± 0.57%' | '6830.00' | '145289 ± 0.03%' | '146413' | 142040 | | 8 | 'measure + clearMeasures (with mark names)' | '7184.43 ± 0.40%' | '6990.00' | '141809 ± 0.03%' | '143062' | 139190 | Reviewed By: huntie Differential Revision: D77795990
07ae81d
to
c6fa107
Compare
Summary: Changelog: [internal] (This is marked as internal because this API hasn't been marked as stable yet). This fixes multiple bugs and missing features in `performance.mark` and `performance.measure`. See re-enabled tests to see the specific behaviors. Validated that performance isn't regressed by this change using the existing benchmark for `Performance` (`Performance-benchmark-itest`): * Before | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5557.96 ± 0.34%' | '5459.00' | '182114 ± 0.02%' | '183184' | 179922 | | 1 | 'mark (with custom startTime)' | '5664.54 ± 1.71%' | '5518.00' | '180296 ± 0.02%' | '181225' | 176537 | | 2 | 'measure (with start and end timestamps)' | '6653.62 ± 0.94%' | '6530.00' | '152296 ± 0.02%' | '153139' | 150295 | | 3 | 'measure (with mark names)' | '6903.37 ± 0.42%' | '6790.00' | '146429 ± 0.02%' | '147275' | 144857 | | 4 | 'clearMarks' | '782.98 ± 0.04%' | '771.00' | '1287735 ± 0.01%' | '1297017' | 1277173 | | 5 | 'clearMeasures' | '792.24 ± 0.03%' | '781.00' | '1270847 ± 0.01%' | '1280410' | 1262238 | | 6 | 'mark + clearMarks' | '5883.69 ± 0.52%' | '5759.00' | '172863 ± 0.02%' | '173641' | 169962 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7222.22 ± 0.68%' | '7021.00' | '141204 ± 0.02%' | '142430' | 138462 | | 8 | 'measure + clearMeasures (with mark names)' | '7234.53 ± 0.34%' | '7121.00' | '139600 ± 0.02%' | '140430' | 138227 | * After | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5579.80 ± 0.32%' | '5479.00' | '181368 ± 0.02%' | '182515' | 179218 | | 1 | 'mark (with custom startTime)' | '5759.72 ± 0.99%' | '5648.00' | '176162 ± 0.02%' | '177054' | 173620 | | 2 | 'measure (with start and end timestamps)' | '6506.38 ± 0.34%' | '6390.00' | '155503 ± 0.02%' | '156495' | 153696 | | 3 | 'measure (with mark names)' | '6770.94 ± 0.72%' | '6620.00' | '149833 ± 0.03%' | '151057' | 147691 | | 4 | 'clearMarks' | '785.89 ± 0.07%' | '771.00' | '1291356 ± 0.01%' | '1297017' | 1272442 | | 5 | 'clearMeasures' | '777.98 ± 0.06%' | '761.00' | '1303362 ± 0.01%' | '1314060' | 1285383 | | 6 | 'mark + clearMarks' | '5995.34 ± 1.37%' | '5779.00' | '171874 ± 0.03%' | '173040' | 166797 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7040.28 ± 0.57%' | '6830.00' | '145289 ± 0.03%' | '146413' | 142040 | | 8 | 'measure + clearMeasures (with mark names)' | '7184.43 ± 0.40%' | '6990.00' | '141809 ± 0.03%' | '143062' | 139190 | Reviewed By: huntie Differential Revision: D77795990
c6fa107
to
16095e7
Compare
This pull request was exported from Phabricator. Differential Revision: D77795990 |
Summary: Changelog: [internal] (This is marked as internal because this API hasn't been marked as stable yet). This fixes multiple bugs and missing features in `performance.mark` and `performance.measure`. See re-enabled tests to see the specific behaviors. Validated that performance isn't regressed by this change using the existing benchmark for `Performance` (`Performance-benchmark-itest`): * Before | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5557.96 ± 0.34%' | '5459.00' | '182114 ± 0.02%' | '183184' | 179922 | | 1 | 'mark (with custom startTime)' | '5664.54 ± 1.71%' | '5518.00' | '180296 ± 0.02%' | '181225' | 176537 | | 2 | 'measure (with start and end timestamps)' | '6653.62 ± 0.94%' | '6530.00' | '152296 ± 0.02%' | '153139' | 150295 | | 3 | 'measure (with mark names)' | '6903.37 ± 0.42%' | '6790.00' | '146429 ± 0.02%' | '147275' | 144857 | | 4 | 'clearMarks' | '782.98 ± 0.04%' | '771.00' | '1287735 ± 0.01%' | '1297017' | 1277173 | | 5 | 'clearMeasures' | '792.24 ± 0.03%' | '781.00' | '1270847 ± 0.01%' | '1280410' | 1262238 | | 6 | 'mark + clearMarks' | '5883.69 ± 0.52%' | '5759.00' | '172863 ± 0.02%' | '173641' | 169962 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7222.22 ± 0.68%' | '7021.00' | '141204 ± 0.02%' | '142430' | 138462 | | 8 | 'measure + clearMeasures (with mark names)' | '7234.53 ± 0.34%' | '7121.00' | '139600 ± 0.02%' | '140430' | 138227 | * After | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5579.80 ± 0.32%' | '5479.00' | '181368 ± 0.02%' | '182515' | 179218 | | 1 | 'mark (with custom startTime)' | '5759.72 ± 0.99%' | '5648.00' | '176162 ± 0.02%' | '177054' | 173620 | | 2 | 'measure (with start and end timestamps)' | '6506.38 ± 0.34%' | '6390.00' | '155503 ± 0.02%' | '156495' | 153696 | | 3 | 'measure (with mark names)' | '6770.94 ± 0.72%' | '6620.00' | '149833 ± 0.03%' | '151057' | 147691 | | 4 | 'clearMarks' | '785.89 ± 0.07%' | '771.00' | '1291356 ± 0.01%' | '1297017' | 1272442 | | 5 | 'clearMeasures' | '777.98 ± 0.06%' | '761.00' | '1303362 ± 0.01%' | '1314060' | 1285383 | | 6 | 'mark + clearMarks' | '5995.34 ± 1.37%' | '5779.00' | '171874 ± 0.03%' | '173040' | 166797 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7040.28 ± 0.57%' | '6830.00' | '145289 ± 0.03%' | '146413' | 142040 | | 8 | 'measure + clearMeasures (with mark names)' | '7184.43 ± 0.40%' | '6990.00' | '141809 ± 0.03%' | '143062' | 139190 | Reviewed By: huntie Differential Revision: D77795990
This pull request was exported from Phabricator. Differential Revision: D77795990 |
Summary: Pull Request resolved: facebook#52430 Changelog: [internal] (This is marked as internal because this API hasn't been marked as stable yet). This fixes multiple bugs and missing features in `performance.mark` and `performance.measure`. See re-enabled tests to see the specific behaviors. Validated that performance isn't regressed by this change using the existing benchmark for `Performance` (`Performance-benchmark-itest`): * Before | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5557.96 ± 0.34%' | '5459.00' | '182114 ± 0.02%' | '183184' | 179922 | | 1 | 'mark (with custom startTime)' | '5664.54 ± 1.71%' | '5518.00' | '180296 ± 0.02%' | '181225' | 176537 | | 2 | 'measure (with start and end timestamps)' | '6653.62 ± 0.94%' | '6530.00' | '152296 ± 0.02%' | '153139' | 150295 | | 3 | 'measure (with mark names)' | '6903.37 ± 0.42%' | '6790.00' | '146429 ± 0.02%' | '147275' | 144857 | | 4 | 'clearMarks' | '782.98 ± 0.04%' | '771.00' | '1287735 ± 0.01%' | '1297017' | 1277173 | | 5 | 'clearMeasures' | '792.24 ± 0.03%' | '781.00' | '1270847 ± 0.01%' | '1280410' | 1262238 | | 6 | 'mark + clearMarks' | '5883.69 ± 0.52%' | '5759.00' | '172863 ± 0.02%' | '173641' | 169962 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7222.22 ± 0.68%' | '7021.00' | '141204 ± 0.02%' | '142430' | 138462 | | 8 | 'measure + clearMeasures (with mark names)' | '7234.53 ± 0.34%' | '7121.00' | '139600 ± 0.02%' | '140430' | 138227 | * After | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5579.80 ± 0.32%' | '5479.00' | '181368 ± 0.02%' | '182515' | 179218 | | 1 | 'mark (with custom startTime)' | '5759.72 ± 0.99%' | '5648.00' | '176162 ± 0.02%' | '177054' | 173620 | | 2 | 'measure (with start and end timestamps)' | '6506.38 ± 0.34%' | '6390.00' | '155503 ± 0.02%' | '156495' | 153696 | | 3 | 'measure (with mark names)' | '6770.94 ± 0.72%' | '6620.00' | '149833 ± 0.03%' | '151057' | 147691 | | 4 | 'clearMarks' | '785.89 ± 0.07%' | '771.00' | '1291356 ± 0.01%' | '1297017' | 1272442 | | 5 | 'clearMeasures' | '777.98 ± 0.06%' | '761.00' | '1303362 ± 0.01%' | '1314060' | 1285383 | | 6 | 'mark + clearMarks' | '5995.34 ± 1.37%' | '5779.00' | '171874 ± 0.03%' | '173040' | 166797 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7040.28 ± 0.57%' | '6830.00' | '145289 ± 0.03%' | '146413' | 142040 | | 8 | 'measure + clearMeasures (with mark names)' | '7184.43 ± 0.40%' | '6990.00' | '141809 ± 0.03%' | '143062' | 139190 | Reviewed By: huntie Differential Revision: D77795990
16095e7
to
9cbd2c3
Compare
Summary: Changelog: [internal] (This is marked as internal because this API hasn't been marked as stable yet). This fixes multiple bugs and missing features in `performance.mark` and `performance.measure`. See re-enabled tests to see the specific behaviors. Validated that performance isn't regressed by this change using the existing benchmark for `Performance` (`Performance-benchmark-itest`): * Before | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5557.96 ± 0.34%' | '5459.00' | '182114 ± 0.02%' | '183184' | 179922 | | 1 | 'mark (with custom startTime)' | '5664.54 ± 1.71%' | '5518.00' | '180296 ± 0.02%' | '181225' | 176537 | | 2 | 'measure (with start and end timestamps)' | '6653.62 ± 0.94%' | '6530.00' | '152296 ± 0.02%' | '153139' | 150295 | | 3 | 'measure (with mark names)' | '6903.37 ± 0.42%' | '6790.00' | '146429 ± 0.02%' | '147275' | 144857 | | 4 | 'clearMarks' | '782.98 ± 0.04%' | '771.00' | '1287735 ± 0.01%' | '1297017' | 1277173 | | 5 | 'clearMeasures' | '792.24 ± 0.03%' | '781.00' | '1270847 ± 0.01%' | '1280410' | 1262238 | | 6 | 'mark + clearMarks' | '5883.69 ± 0.52%' | '5759.00' | '172863 ± 0.02%' | '173641' | 169962 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7222.22 ± 0.68%' | '7021.00' | '141204 ± 0.02%' | '142430' | 138462 | | 8 | 'measure + clearMeasures (with mark names)' | '7234.53 ± 0.34%' | '7121.00' | '139600 ± 0.02%' | '140430' | 138227 | * After | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5579.80 ± 0.32%' | '5479.00' | '181368 ± 0.02%' | '182515' | 179218 | | 1 | 'mark (with custom startTime)' | '5759.72 ± 0.99%' | '5648.00' | '176162 ± 0.02%' | '177054' | 173620 | | 2 | 'measure (with start and end timestamps)' | '6506.38 ± 0.34%' | '6390.00' | '155503 ± 0.02%' | '156495' | 153696 | | 3 | 'measure (with mark names)' | '6770.94 ± 0.72%' | '6620.00' | '149833 ± 0.03%' | '151057' | 147691 | | 4 | 'clearMarks' | '785.89 ± 0.07%' | '771.00' | '1291356 ± 0.01%' | '1297017' | 1272442 | | 5 | 'clearMeasures' | '777.98 ± 0.06%' | '761.00' | '1303362 ± 0.01%' | '1314060' | 1285383 | | 6 | 'mark + clearMarks' | '5995.34 ± 1.37%' | '5779.00' | '171874 ± 0.03%' | '173040' | 166797 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7040.28 ± 0.57%' | '6830.00' | '145289 ± 0.03%' | '146413' | 142040 | | 8 | 'measure + clearMeasures (with mark names)' | '7184.43 ± 0.40%' | '6990.00' | '141809 ± 0.03%' | '143062' | 139190 | Reviewed By: huntie Differential Revision: D77795990
Summary: Changelog: [internal] (This is marked as internal because this API hasn't been marked as stable yet). This fixes multiple bugs and missing features in `performance.mark` and `performance.measure`. See re-enabled tests to see the specific behaviors. Validated that performance isn't regressed by this change using the existing benchmark for `Performance` (`Performance-benchmark-itest`): * Before | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5557.96 ± 0.34%' | '5459.00' | '182114 ± 0.02%' | '183184' | 179922 | | 1 | 'mark (with custom startTime)' | '5664.54 ± 1.71%' | '5518.00' | '180296 ± 0.02%' | '181225' | 176537 | | 2 | 'measure (with start and end timestamps)' | '6653.62 ± 0.94%' | '6530.00' | '152296 ± 0.02%' | '153139' | 150295 | | 3 | 'measure (with mark names)' | '6903.37 ± 0.42%' | '6790.00' | '146429 ± 0.02%' | '147275' | 144857 | | 4 | 'clearMarks' | '782.98 ± 0.04%' | '771.00' | '1287735 ± 0.01%' | '1297017' | 1277173 | | 5 | 'clearMeasures' | '792.24 ± 0.03%' | '781.00' | '1270847 ± 0.01%' | '1280410' | 1262238 | | 6 | 'mark + clearMarks' | '5883.69 ± 0.52%' | '5759.00' | '172863 ± 0.02%' | '173641' | 169962 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7222.22 ± 0.68%' | '7021.00' | '141204 ± 0.02%' | '142430' | 138462 | | 8 | 'measure + clearMeasures (with mark names)' | '7234.53 ± 0.34%' | '7121.00' | '139600 ± 0.02%' | '140430' | 138227 | * After | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5579.80 ± 0.32%' | '5479.00' | '181368 ± 0.02%' | '182515' | 179218 | | 1 | 'mark (with custom startTime)' | '5759.72 ± 0.99%' | '5648.00' | '176162 ± 0.02%' | '177054' | 173620 | | 2 | 'measure (with start and end timestamps)' | '6506.38 ± 0.34%' | '6390.00' | '155503 ± 0.02%' | '156495' | 153696 | | 3 | 'measure (with mark names)' | '6770.94 ± 0.72%' | '6620.00' | '149833 ± 0.03%' | '151057' | 147691 | | 4 | 'clearMarks' | '785.89 ± 0.07%' | '771.00' | '1291356 ± 0.01%' | '1297017' | 1272442 | | 5 | 'clearMeasures' | '777.98 ± 0.06%' | '761.00' | '1303362 ± 0.01%' | '1314060' | 1285383 | | 6 | 'mark + clearMarks' | '5995.34 ± 1.37%' | '5779.00' | '171874 ± 0.03%' | '173040' | 166797 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7040.28 ± 0.57%' | '6830.00' | '145289 ± 0.03%' | '146413' | 142040 | | 8 | 'measure + clearMeasures (with mark names)' | '7184.43 ± 0.40%' | '6990.00' | '141809 ± 0.03%' | '143062' | 139190 | Reviewed By: huntie Differential Revision: D77795990
9cbd2c3
to
ee89cd6
Compare
Summary: Changelog: [internal] (This is marked as internal because this API hasn't been marked as stable yet). This fixes multiple bugs and missing features in `performance.mark` and `performance.measure`. See re-enabled tests to see the specific behaviors. Validated that performance isn't regressed by this change using the existing benchmark for `Performance` (`Performance-benchmark-itest`): * Before | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5557.96 ± 0.34%' | '5459.00' | '182114 ± 0.02%' | '183184' | 179922 | | 1 | 'mark (with custom startTime)' | '5664.54 ± 1.71%' | '5518.00' | '180296 ± 0.02%' | '181225' | 176537 | | 2 | 'measure (with start and end timestamps)' | '6653.62 ± 0.94%' | '6530.00' | '152296 ± 0.02%' | '153139' | 150295 | | 3 | 'measure (with mark names)' | '6903.37 ± 0.42%' | '6790.00' | '146429 ± 0.02%' | '147275' | 144857 | | 4 | 'clearMarks' | '782.98 ± 0.04%' | '771.00' | '1287735 ± 0.01%' | '1297017' | 1277173 | | 5 | 'clearMeasures' | '792.24 ± 0.03%' | '781.00' | '1270847 ± 0.01%' | '1280410' | 1262238 | | 6 | 'mark + clearMarks' | '5883.69 ± 0.52%' | '5759.00' | '172863 ± 0.02%' | '173641' | 169962 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7222.22 ± 0.68%' | '7021.00' | '141204 ± 0.02%' | '142430' | 138462 | | 8 | 'measure + clearMeasures (with mark names)' | '7234.53 ± 0.34%' | '7121.00' | '139600 ± 0.02%' | '140430' | 138227 | * After | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5579.80 ± 0.32%' | '5479.00' | '181368 ± 0.02%' | '182515' | 179218 | | 1 | 'mark (with custom startTime)' | '5759.72 ± 0.99%' | '5648.00' | '176162 ± 0.02%' | '177054' | 173620 | | 2 | 'measure (with start and end timestamps)' | '6506.38 ± 0.34%' | '6390.00' | '155503 ± 0.02%' | '156495' | 153696 | | 3 | 'measure (with mark names)' | '6770.94 ± 0.72%' | '6620.00' | '149833 ± 0.03%' | '151057' | 147691 | | 4 | 'clearMarks' | '785.89 ± 0.07%' | '771.00' | '1291356 ± 0.01%' | '1297017' | 1272442 | | 5 | 'clearMeasures' | '777.98 ± 0.06%' | '761.00' | '1303362 ± 0.01%' | '1314060' | 1285383 | | 6 | 'mark + clearMarks' | '5995.34 ± 1.37%' | '5779.00' | '171874 ± 0.03%' | '173040' | 166797 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7040.28 ± 0.57%' | '6830.00' | '145289 ± 0.03%' | '146413' | 142040 | | 8 | 'measure + clearMeasures (with mark names)' | '7184.43 ± 0.40%' | '6990.00' | '141809 ± 0.03%' | '143062' | 139190 | Reviewed By: huntie Differential Revision: D77795990
This pull request was exported from Phabricator. Differential Revision: D77795990 |
ee89cd6
to
55e6360
Compare
Summary: Pull Request resolved: facebook#52430 Changelog: [internal] (This is marked as internal because this API hasn't been marked as stable yet). This fixes multiple bugs and missing features in `performance.mark` and `performance.measure`. See re-enabled tests to see the specific behaviors. Validated that performance isn't regressed by this change using the existing benchmark for `Performance` (`Performance-benchmark-itest`): * Before | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5557.96 ± 0.34%' | '5459.00' | '182114 ± 0.02%' | '183184' | 179922 | | 1 | 'mark (with custom startTime)' | '5664.54 ± 1.71%' | '5518.00' | '180296 ± 0.02%' | '181225' | 176537 | | 2 | 'measure (with start and end timestamps)' | '6653.62 ± 0.94%' | '6530.00' | '152296 ± 0.02%' | '153139' | 150295 | | 3 | 'measure (with mark names)' | '6903.37 ± 0.42%' | '6790.00' | '146429 ± 0.02%' | '147275' | 144857 | | 4 | 'clearMarks' | '782.98 ± 0.04%' | '771.00' | '1287735 ± 0.01%' | '1297017' | 1277173 | | 5 | 'clearMeasures' | '792.24 ± 0.03%' | '781.00' | '1270847 ± 0.01%' | '1280410' | 1262238 | | 6 | 'mark + clearMarks' | '5883.69 ± 0.52%' | '5759.00' | '172863 ± 0.02%' | '173641' | 169962 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7222.22 ± 0.68%' | '7021.00' | '141204 ± 0.02%' | '142430' | 138462 | | 8 | 'measure + clearMeasures (with mark names)' | '7234.53 ± 0.34%' | '7121.00' | '139600 ± 0.02%' | '140430' | 138227 | * After | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5579.80 ± 0.32%' | '5479.00' | '181368 ± 0.02%' | '182515' | 179218 | | 1 | 'mark (with custom startTime)' | '5759.72 ± 0.99%' | '5648.00' | '176162 ± 0.02%' | '177054' | 173620 | | 2 | 'measure (with start and end timestamps)' | '6506.38 ± 0.34%' | '6390.00' | '155503 ± 0.02%' | '156495' | 153696 | | 3 | 'measure (with mark names)' | '6770.94 ± 0.72%' | '6620.00' | '149833 ± 0.03%' | '151057' | 147691 | | 4 | 'clearMarks' | '785.89 ± 0.07%' | '771.00' | '1291356 ± 0.01%' | '1297017' | 1272442 | | 5 | 'clearMeasures' | '777.98 ± 0.06%' | '761.00' | '1303362 ± 0.01%' | '1314060' | 1285383 | | 6 | 'mark + clearMarks' | '5995.34 ± 1.37%' | '5779.00' | '171874 ± 0.03%' | '173040' | 166797 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7040.28 ± 0.57%' | '6830.00' | '145289 ± 0.03%' | '146413' | 142040 | | 8 | 'measure + clearMeasures (with mark names)' | '7184.43 ± 0.40%' | '6990.00' | '141809 ± 0.03%' | '143062' | 139190 | Reviewed By: huntie Differential Revision: D77795990
Summary: Changelog: [internal] (This is marked as internal because this API hasn't been marked as stable yet). This fixes multiple bugs and missing features in `performance.mark` and `performance.measure`. See re-enabled tests to see the specific behaviors. Validated that performance isn't regressed by this change using the existing benchmark for `Performance` (`Performance-benchmark-itest`): * Before | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5557.96 ± 0.34%' | '5459.00' | '182114 ± 0.02%' | '183184' | 179922 | | 1 | 'mark (with custom startTime)' | '5664.54 ± 1.71%' | '5518.00' | '180296 ± 0.02%' | '181225' | 176537 | | 2 | 'measure (with start and end timestamps)' | '6653.62 ± 0.94%' | '6530.00' | '152296 ± 0.02%' | '153139' | 150295 | | 3 | 'measure (with mark names)' | '6903.37 ± 0.42%' | '6790.00' | '146429 ± 0.02%' | '147275' | 144857 | | 4 | 'clearMarks' | '782.98 ± 0.04%' | '771.00' | '1287735 ± 0.01%' | '1297017' | 1277173 | | 5 | 'clearMeasures' | '792.24 ± 0.03%' | '781.00' | '1270847 ± 0.01%' | '1280410' | 1262238 | | 6 | 'mark + clearMarks' | '5883.69 ± 0.52%' | '5759.00' | '172863 ± 0.02%' | '173641' | 169962 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7222.22 ± 0.68%' | '7021.00' | '141204 ± 0.02%' | '142430' | 138462 | | 8 | 'measure + clearMeasures (with mark names)' | '7234.53 ± 0.34%' | '7121.00' | '139600 ± 0.02%' | '140430' | 138227 | * After | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5579.80 ± 0.32%' | '5479.00' | '181368 ± 0.02%' | '182515' | 179218 | | 1 | 'mark (with custom startTime)' | '5759.72 ± 0.99%' | '5648.00' | '176162 ± 0.02%' | '177054' | 173620 | | 2 | 'measure (with start and end timestamps)' | '6506.38 ± 0.34%' | '6390.00' | '155503 ± 0.02%' | '156495' | 153696 | | 3 | 'measure (with mark names)' | '6770.94 ± 0.72%' | '6620.00' | '149833 ± 0.03%' | '151057' | 147691 | | 4 | 'clearMarks' | '785.89 ± 0.07%' | '771.00' | '1291356 ± 0.01%' | '1297017' | 1272442 | | 5 | 'clearMeasures' | '777.98 ± 0.06%' | '761.00' | '1303362 ± 0.01%' | '1314060' | 1285383 | | 6 | 'mark + clearMarks' | '5995.34 ± 1.37%' | '5779.00' | '171874 ± 0.03%' | '173040' | 166797 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7040.28 ± 0.57%' | '6830.00' | '145289 ± 0.03%' | '146413' | 142040 | | 8 | 'measure + clearMeasures (with mark names)' | '7184.43 ± 0.40%' | '6990.00' | '141809 ± 0.03%' | '143062' | 139190 | Reviewed By: huntie Differential Revision: D77795990
55e6360
to
ef1fda9
Compare
Summary: Changelog: [internal] (This is marked as internal because this API hasn't been marked as stable yet). This fixes multiple bugs and missing features in `performance.mark` and `performance.measure`. See re-enabled tests to see the specific behaviors. Validated that performance isn't regressed by this change using the existing benchmark for `Performance` (`Performance-benchmark-itest`): * Before | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5557.96 ± 0.34%' | '5459.00' | '182114 ± 0.02%' | '183184' | 179922 | | 1 | 'mark (with custom startTime)' | '5664.54 ± 1.71%' | '5518.00' | '180296 ± 0.02%' | '181225' | 176537 | | 2 | 'measure (with start and end timestamps)' | '6653.62 ± 0.94%' | '6530.00' | '152296 ± 0.02%' | '153139' | 150295 | | 3 | 'measure (with mark names)' | '6903.37 ± 0.42%' | '6790.00' | '146429 ± 0.02%' | '147275' | 144857 | | 4 | 'clearMarks' | '782.98 ± 0.04%' | '771.00' | '1287735 ± 0.01%' | '1297017' | 1277173 | | 5 | 'clearMeasures' | '792.24 ± 0.03%' | '781.00' | '1270847 ± 0.01%' | '1280410' | 1262238 | | 6 | 'mark + clearMarks' | '5883.69 ± 0.52%' | '5759.00' | '172863 ± 0.02%' | '173641' | 169962 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7222.22 ± 0.68%' | '7021.00' | '141204 ± 0.02%' | '142430' | 138462 | | 8 | 'measure + clearMeasures (with mark names)' | '7234.53 ± 0.34%' | '7121.00' | '139600 ± 0.02%' | '140430' | 138227 | * After | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5579.80 ± 0.32%' | '5479.00' | '181368 ± 0.02%' | '182515' | 179218 | | 1 | 'mark (with custom startTime)' | '5759.72 ± 0.99%' | '5648.00' | '176162 ± 0.02%' | '177054' | 173620 | | 2 | 'measure (with start and end timestamps)' | '6506.38 ± 0.34%' | '6390.00' | '155503 ± 0.02%' | '156495' | 153696 | | 3 | 'measure (with mark names)' | '6770.94 ± 0.72%' | '6620.00' | '149833 ± 0.03%' | '151057' | 147691 | | 4 | 'clearMarks' | '785.89 ± 0.07%' | '771.00' | '1291356 ± 0.01%' | '1297017' | 1272442 | | 5 | 'clearMeasures' | '777.98 ± 0.06%' | '761.00' | '1303362 ± 0.01%' | '1314060' | 1285383 | | 6 | 'mark + clearMarks' | '5995.34 ± 1.37%' | '5779.00' | '171874 ± 0.03%' | '173040' | 166797 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7040.28 ± 0.57%' | '6830.00' | '145289 ± 0.03%' | '146413' | 142040 | | 8 | 'measure + clearMeasures (with mark names)' | '7184.43 ± 0.40%' | '6990.00' | '141809 ± 0.03%' | '143062' | 139190 | Reviewed By: huntie Differential Revision: D77795990
Summary: Changelog: [internal] (This is marked as internal because this API hasn't been marked as stable yet). This fixes multiple bugs and missing features in `performance.mark` and `performance.measure`. See re-enabled tests to see the specific behaviors. Validated that performance isn't regressed by this change using the existing benchmark for `Performance` (`Performance-benchmark-itest`): * Before | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5557.96 ± 0.34%' | '5459.00' | '182114 ± 0.02%' | '183184' | 179922 | | 1 | 'mark (with custom startTime)' | '5664.54 ± 1.71%' | '5518.00' | '180296 ± 0.02%' | '181225' | 176537 | | 2 | 'measure (with start and end timestamps)' | '6653.62 ± 0.94%' | '6530.00' | '152296 ± 0.02%' | '153139' | 150295 | | 3 | 'measure (with mark names)' | '6903.37 ± 0.42%' | '6790.00' | '146429 ± 0.02%' | '147275' | 144857 | | 4 | 'clearMarks' | '782.98 ± 0.04%' | '771.00' | '1287735 ± 0.01%' | '1297017' | 1277173 | | 5 | 'clearMeasures' | '792.24 ± 0.03%' | '781.00' | '1270847 ± 0.01%' | '1280410' | 1262238 | | 6 | 'mark + clearMarks' | '5883.69 ± 0.52%' | '5759.00' | '172863 ± 0.02%' | '173641' | 169962 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7222.22 ± 0.68%' | '7021.00' | '141204 ± 0.02%' | '142430' | 138462 | | 8 | 'measure + clearMeasures (with mark names)' | '7234.53 ± 0.34%' | '7121.00' | '139600 ± 0.02%' | '140430' | 138227 | * After | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5579.80 ± 0.32%' | '5479.00' | '181368 ± 0.02%' | '182515' | 179218 | | 1 | 'mark (with custom startTime)' | '5759.72 ± 0.99%' | '5648.00' | '176162 ± 0.02%' | '177054' | 173620 | | 2 | 'measure (with start and end timestamps)' | '6506.38 ± 0.34%' | '6390.00' | '155503 ± 0.02%' | '156495' | 153696 | | 3 | 'measure (with mark names)' | '6770.94 ± 0.72%' | '6620.00' | '149833 ± 0.03%' | '151057' | 147691 | | 4 | 'clearMarks' | '785.89 ± 0.07%' | '771.00' | '1291356 ± 0.01%' | '1297017' | 1272442 | | 5 | 'clearMeasures' | '777.98 ± 0.06%' | '761.00' | '1303362 ± 0.01%' | '1314060' | 1285383 | | 6 | 'mark + clearMarks' | '5995.34 ± 1.37%' | '5779.00' | '171874 ± 0.03%' | '173040' | 166797 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7040.28 ± 0.57%' | '6830.00' | '145289 ± 0.03%' | '146413' | 142040 | | 8 | 'measure + clearMeasures (with mark names)' | '7184.43 ± 0.40%' | '6990.00' | '141809 ± 0.03%' | '143062' | 139190 | Reviewed By: huntie Differential Revision: D77795990
Summary: Changelog: [internal] (This is marked as internal because this API hasn't been marked as stable yet). This fixes multiple bugs and missing features in `performance.mark` and `performance.measure`. See re-enabled tests to see the specific behaviors. Validated that performance isn't regressed by this change using the existing benchmark for `Performance` (`Performance-benchmark-itest`): * Before | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5557.96 ± 0.34%' | '5459.00' | '182114 ± 0.02%' | '183184' | 179922 | | 1 | 'mark (with custom startTime)' | '5664.54 ± 1.71%' | '5518.00' | '180296 ± 0.02%' | '181225' | 176537 | | 2 | 'measure (with start and end timestamps)' | '6653.62 ± 0.94%' | '6530.00' | '152296 ± 0.02%' | '153139' | 150295 | | 3 | 'measure (with mark names)' | '6903.37 ± 0.42%' | '6790.00' | '146429 ± 0.02%' | '147275' | 144857 | | 4 | 'clearMarks' | '782.98 ± 0.04%' | '771.00' | '1287735 ± 0.01%' | '1297017' | 1277173 | | 5 | 'clearMeasures' | '792.24 ± 0.03%' | '781.00' | '1270847 ± 0.01%' | '1280410' | 1262238 | | 6 | 'mark + clearMarks' | '5883.69 ± 0.52%' | '5759.00' | '172863 ± 0.02%' | '173641' | 169962 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7222.22 ± 0.68%' | '7021.00' | '141204 ± 0.02%' | '142430' | 138462 | | 8 | 'measure + clearMeasures (with mark names)' | '7234.53 ± 0.34%' | '7121.00' | '139600 ± 0.02%' | '140430' | 138227 | * After | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5579.80 ± 0.32%' | '5479.00' | '181368 ± 0.02%' | '182515' | 179218 | | 1 | 'mark (with custom startTime)' | '5759.72 ± 0.99%' | '5648.00' | '176162 ± 0.02%' | '177054' | 173620 | | 2 | 'measure (with start and end timestamps)' | '6506.38 ± 0.34%' | '6390.00' | '155503 ± 0.02%' | '156495' | 153696 | | 3 | 'measure (with mark names)' | '6770.94 ± 0.72%' | '6620.00' | '149833 ± 0.03%' | '151057' | 147691 | | 4 | 'clearMarks' | '785.89 ± 0.07%' | '771.00' | '1291356 ± 0.01%' | '1297017' | 1272442 | | 5 | 'clearMeasures' | '777.98 ± 0.06%' | '761.00' | '1303362 ± 0.01%' | '1314060' | 1285383 | | 6 | 'mark + clearMarks' | '5995.34 ± 1.37%' | '5779.00' | '171874 ± 0.03%' | '173040' | 166797 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7040.28 ± 0.57%' | '6830.00' | '145289 ± 0.03%' | '146413' | 142040 | | 8 | 'measure + clearMeasures (with mark names)' | '7184.43 ± 0.40%' | '6990.00' | '141809 ± 0.03%' | '143062' | 139190 | Reviewed By: huntie Differential Revision: D77795990
ef1fda9
to
fee1011
Compare
This pull request was exported from Phabricator. Differential Revision: D77795990 |
1 similar comment
This pull request was exported from Phabricator. Differential Revision: D77795990 |
Summary: Pull Request resolved: facebook#52430 Changelog: [internal] (This is marked as internal because this API hasn't been marked as stable yet). This fixes multiple bugs and missing features in `performance.mark` and `performance.measure`. See re-enabled tests to see the specific behaviors. Validated that performance isn't regressed by this change using the existing benchmark for `Performance` (`Performance-benchmark-itest`): * Before | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5557.96 ± 0.34%' | '5459.00' | '182114 ± 0.02%' | '183184' | 179922 | | 1 | 'mark (with custom startTime)' | '5664.54 ± 1.71%' | '5518.00' | '180296 ± 0.02%' | '181225' | 176537 | | 2 | 'measure (with start and end timestamps)' | '6653.62 ± 0.94%' | '6530.00' | '152296 ± 0.02%' | '153139' | 150295 | | 3 | 'measure (with mark names)' | '6903.37 ± 0.42%' | '6790.00' | '146429 ± 0.02%' | '147275' | 144857 | | 4 | 'clearMarks' | '782.98 ± 0.04%' | '771.00' | '1287735 ± 0.01%' | '1297017' | 1277173 | | 5 | 'clearMeasures' | '792.24 ± 0.03%' | '781.00' | '1270847 ± 0.01%' | '1280410' | 1262238 | | 6 | 'mark + clearMarks' | '5883.69 ± 0.52%' | '5759.00' | '172863 ± 0.02%' | '173641' | 169962 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7222.22 ± 0.68%' | '7021.00' | '141204 ± 0.02%' | '142430' | 138462 | | 8 | 'measure + clearMeasures (with mark names)' | '7234.53 ± 0.34%' | '7121.00' | '139600 ± 0.02%' | '140430' | 138227 | * After | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5579.80 ± 0.32%' | '5479.00' | '181368 ± 0.02%' | '182515' | 179218 | | 1 | 'mark (with custom startTime)' | '5759.72 ± 0.99%' | '5648.00' | '176162 ± 0.02%' | '177054' | 173620 | | 2 | 'measure (with start and end timestamps)' | '6506.38 ± 0.34%' | '6390.00' | '155503 ± 0.02%' | '156495' | 153696 | | 3 | 'measure (with mark names)' | '6770.94 ± 0.72%' | '6620.00' | '149833 ± 0.03%' | '151057' | 147691 | | 4 | 'clearMarks' | '785.89 ± 0.07%' | '771.00' | '1291356 ± 0.01%' | '1297017' | 1272442 | | 5 | 'clearMeasures' | '777.98 ± 0.06%' | '761.00' | '1303362 ± 0.01%' | '1314060' | 1285383 | | 6 | 'mark + clearMarks' | '5995.34 ± 1.37%' | '5779.00' | '171874 ± 0.03%' | '173040' | 166797 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7040.28 ± 0.57%' | '6830.00' | '145289 ± 0.03%' | '146413' | 142040 | | 8 | 'measure + clearMeasures (with mark names)' | '7184.43 ± 0.40%' | '6990.00' | '141809 ± 0.03%' | '143062' | 139190 | Reviewed By: huntie Differential Revision: D77795990
b7f8365
to
10ab528
Compare
Summary: Changelog: [internal] (This is marked as internal because this API hasn't been marked as stable yet). This fixes multiple bugs and missing features in `performance.mark` and `performance.measure`. See re-enabled tests to see the specific behaviors. Validated that performance isn't regressed by this change using the existing benchmark for `Performance` (`Performance-benchmark-itest`): * Before | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5557.96 ± 0.34%' | '5459.00' | '182114 ± 0.02%' | '183184' | 179922 | | 1 | 'mark (with custom startTime)' | '5664.54 ± 1.71%' | '5518.00' | '180296 ± 0.02%' | '181225' | 176537 | | 2 | 'measure (with start and end timestamps)' | '6653.62 ± 0.94%' | '6530.00' | '152296 ± 0.02%' | '153139' | 150295 | | 3 | 'measure (with mark names)' | '6903.37 ± 0.42%' | '6790.00' | '146429 ± 0.02%' | '147275' | 144857 | | 4 | 'clearMarks' | '782.98 ± 0.04%' | '771.00' | '1287735 ± 0.01%' | '1297017' | 1277173 | | 5 | 'clearMeasures' | '792.24 ± 0.03%' | '781.00' | '1270847 ± 0.01%' | '1280410' | 1262238 | | 6 | 'mark + clearMarks' | '5883.69 ± 0.52%' | '5759.00' | '172863 ± 0.02%' | '173641' | 169962 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7222.22 ± 0.68%' | '7021.00' | '141204 ± 0.02%' | '142430' | 138462 | | 8 | 'measure + clearMeasures (with mark names)' | '7234.53 ± 0.34%' | '7121.00' | '139600 ± 0.02%' | '140430' | 138227 | * After | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5579.80 ± 0.32%' | '5479.00' | '181368 ± 0.02%' | '182515' | 179218 | | 1 | 'mark (with custom startTime)' | '5759.72 ± 0.99%' | '5648.00' | '176162 ± 0.02%' | '177054' | 173620 | | 2 | 'measure (with start and end timestamps)' | '6506.38 ± 0.34%' | '6390.00' | '155503 ± 0.02%' | '156495' | 153696 | | 3 | 'measure (with mark names)' | '6770.94 ± 0.72%' | '6620.00' | '149833 ± 0.03%' | '151057' | 147691 | | 4 | 'clearMarks' | '785.89 ± 0.07%' | '771.00' | '1291356 ± 0.01%' | '1297017' | 1272442 | | 5 | 'clearMeasures' | '777.98 ± 0.06%' | '761.00' | '1303362 ± 0.01%' | '1314060' | 1285383 | | 6 | 'mark + clearMarks' | '5995.34 ± 1.37%' | '5779.00' | '171874 ± 0.03%' | '173040' | 166797 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7040.28 ± 0.57%' | '6830.00' | '145289 ± 0.03%' | '146413' | 142040 | | 8 | 'measure + clearMeasures (with mark names)' | '7184.43 ± 0.40%' | '6990.00' | '141809 ± 0.03%' | '143062' | 139190 | Reviewed By: huntie Differential Revision: D77795990
10ab528
to
f1af77c
Compare
This pull request was exported from Phabricator. Differential Revision: D77795990 |
Summary: Changelog: [internal] (This is marked as internal because this API hasn't been marked as stable yet). This fixes multiple bugs and missing features in `performance.mark` and `performance.measure`. See re-enabled tests to see the specific behaviors. Validated that performance isn't regressed by this change using the existing benchmark for `Performance` (`Performance-benchmark-itest`): * Before | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5557.96 ± 0.34%' | '5459.00' | '182114 ± 0.02%' | '183184' | 179922 | | 1 | 'mark (with custom startTime)' | '5664.54 ± 1.71%' | '5518.00' | '180296 ± 0.02%' | '181225' | 176537 | | 2 | 'measure (with start and end timestamps)' | '6653.62 ± 0.94%' | '6530.00' | '152296 ± 0.02%' | '153139' | 150295 | | 3 | 'measure (with mark names)' | '6903.37 ± 0.42%' | '6790.00' | '146429 ± 0.02%' | '147275' | 144857 | | 4 | 'clearMarks' | '782.98 ± 0.04%' | '771.00' | '1287735 ± 0.01%' | '1297017' | 1277173 | | 5 | 'clearMeasures' | '792.24 ± 0.03%' | '781.00' | '1270847 ± 0.01%' | '1280410' | 1262238 | | 6 | 'mark + clearMarks' | '5883.69 ± 0.52%' | '5759.00' | '172863 ± 0.02%' | '173641' | 169962 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7222.22 ± 0.68%' | '7021.00' | '141204 ± 0.02%' | '142430' | 138462 | | 8 | 'measure + clearMeasures (with mark names)' | '7234.53 ± 0.34%' | '7121.00' | '139600 ± 0.02%' | '140430' | 138227 | * After | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5579.80 ± 0.32%' | '5479.00' | '181368 ± 0.02%' | '182515' | 179218 | | 1 | 'mark (with custom startTime)' | '5759.72 ± 0.99%' | '5648.00' | '176162 ± 0.02%' | '177054' | 173620 | | 2 | 'measure (with start and end timestamps)' | '6506.38 ± 0.34%' | '6390.00' | '155503 ± 0.02%' | '156495' | 153696 | | 3 | 'measure (with mark names)' | '6770.94 ± 0.72%' | '6620.00' | '149833 ± 0.03%' | '151057' | 147691 | | 4 | 'clearMarks' | '785.89 ± 0.07%' | '771.00' | '1291356 ± 0.01%' | '1297017' | 1272442 | | 5 | 'clearMeasures' | '777.98 ± 0.06%' | '761.00' | '1303362 ± 0.01%' | '1314060' | 1285383 | | 6 | 'mark + clearMarks' | '5995.34 ± 1.37%' | '5779.00' | '171874 ± 0.03%' | '173040' | 166797 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7040.28 ± 0.57%' | '6830.00' | '145289 ± 0.03%' | '146413' | 142040 | | 8 | 'measure + clearMeasures (with mark names)' | '7184.43 ± 0.40%' | '6990.00' | '141809 ± 0.03%' | '143062' | 139190 | Reviewed By: huntie Differential Revision: D77795990
Summary: Pull Request resolved: facebook#52430 Changelog: [internal] (This is marked as internal because this API hasn't been marked as stable yet). This fixes multiple bugs and missing features in `performance.mark` and `performance.measure`. See re-enabled tests to see the specific behaviors. Validated that performance isn't regressed by this change using the existing benchmark for `Performance` (`Performance-benchmark-itest`): * Before | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5557.96 ± 0.34%' | '5459.00' | '182114 ± 0.02%' | '183184' | 179922 | | 1 | 'mark (with custom startTime)' | '5664.54 ± 1.71%' | '5518.00' | '180296 ± 0.02%' | '181225' | 176537 | | 2 | 'measure (with start and end timestamps)' | '6653.62 ± 0.94%' | '6530.00' | '152296 ± 0.02%' | '153139' | 150295 | | 3 | 'measure (with mark names)' | '6903.37 ± 0.42%' | '6790.00' | '146429 ± 0.02%' | '147275' | 144857 | | 4 | 'clearMarks' | '782.98 ± 0.04%' | '771.00' | '1287735 ± 0.01%' | '1297017' | 1277173 | | 5 | 'clearMeasures' | '792.24 ± 0.03%' | '781.00' | '1270847 ± 0.01%' | '1280410' | 1262238 | | 6 | 'mark + clearMarks' | '5883.69 ± 0.52%' | '5759.00' | '172863 ± 0.02%' | '173641' | 169962 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7222.22 ± 0.68%' | '7021.00' | '141204 ± 0.02%' | '142430' | 138462 | | 8 | 'measure + clearMeasures (with mark names)' | '7234.53 ± 0.34%' | '7121.00' | '139600 ± 0.02%' | '140430' | 138227 | * After | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5579.80 ± 0.32%' | '5479.00' | '181368 ± 0.02%' | '182515' | 179218 | | 1 | 'mark (with custom startTime)' | '5759.72 ± 0.99%' | '5648.00' | '176162 ± 0.02%' | '177054' | 173620 | | 2 | 'measure (with start and end timestamps)' | '6506.38 ± 0.34%' | '6390.00' | '155503 ± 0.02%' | '156495' | 153696 | | 3 | 'measure (with mark names)' | '6770.94 ± 0.72%' | '6620.00' | '149833 ± 0.03%' | '151057' | 147691 | | 4 | 'clearMarks' | '785.89 ± 0.07%' | '771.00' | '1291356 ± 0.01%' | '1297017' | 1272442 | | 5 | 'clearMeasures' | '777.98 ± 0.06%' | '761.00' | '1303362 ± 0.01%' | '1314060' | 1285383 | | 6 | 'mark + clearMarks' | '5995.34 ± 1.37%' | '5779.00' | '171874 ± 0.03%' | '173040' | 166797 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7040.28 ± 0.57%' | '6830.00' | '145289 ± 0.03%' | '146413' | 142040 | | 8 | 'measure + clearMeasures (with mark names)' | '7184.43 ± 0.40%' | '6990.00' | '141809 ± 0.03%' | '143062' | 139190 | Reviewed By: huntie Differential Revision: D77795990
f1af77c
to
57ba7b2
Compare
This pull request was exported from Phabricator. Differential Revision: D77795990 |
…acebook#52432) Summary: Changelog: [internal] This creates a battery of tests for `performance.mark` and `performance.measure`. For this, it was necessary to add a new method in the native module to mock the current time. Many of the tests are currently failing, as the API doesn't support all the options or behaviors defined in the spec. They're skipped here and will be re-enabled and fixed in a following diff. Reviewed By: huntie Differential Revision: D77795989
Summary: Changelog: [internal] `performance.measure` supports passing mark names as `start` and `end` options, so this fixes the Flow type before fixing the actual implementation. It also makes it so you can't specify both `end` and `duration`, enforced by the type system. Reviewed By: huntie Differential Revision: D77795991
Summary: Changelog: [internal] (This is marked as internal because this API hasn't been marked as stable yet). This fixes multiple bugs and missing features in `performance.mark` and `performance.measure`. See re-enabled tests to see the specific behaviors. Validated that performance isn't regressed by this change using the existing benchmark for `Performance` (`Performance-benchmark-itest`): * Before | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5557.96 ± 0.34%' | '5459.00' | '182114 ± 0.02%' | '183184' | 179922 | | 1 | 'mark (with custom startTime)' | '5664.54 ± 1.71%' | '5518.00' | '180296 ± 0.02%' | '181225' | 176537 | | 2 | 'measure (with start and end timestamps)' | '6653.62 ± 0.94%' | '6530.00' | '152296 ± 0.02%' | '153139' | 150295 | | 3 | 'measure (with mark names)' | '6903.37 ± 0.42%' | '6790.00' | '146429 ± 0.02%' | '147275' | 144857 | | 4 | 'clearMarks' | '782.98 ± 0.04%' | '771.00' | '1287735 ± 0.01%' | '1297017' | 1277173 | | 5 | 'clearMeasures' | '792.24 ± 0.03%' | '781.00' | '1270847 ± 0.01%' | '1280410' | 1262238 | | 6 | 'mark + clearMarks' | '5883.69 ± 0.52%' | '5759.00' | '172863 ± 0.02%' | '173641' | 169962 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7222.22 ± 0.68%' | '7021.00' | '141204 ± 0.02%' | '142430' | 138462 | | 8 | 'measure + clearMeasures (with mark names)' | '7234.53 ± 0.34%' | '7121.00' | '139600 ± 0.02%' | '140430' | 138227 | * After | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5579.80 ± 0.32%' | '5479.00' | '181368 ± 0.02%' | '182515' | 179218 | | 1 | 'mark (with custom startTime)' | '5759.72 ± 0.99%' | '5648.00' | '176162 ± 0.02%' | '177054' | 173620 | | 2 | 'measure (with start and end timestamps)' | '6506.38 ± 0.34%' | '6390.00' | '155503 ± 0.02%' | '156495' | 153696 | | 3 | 'measure (with mark names)' | '6770.94 ± 0.72%' | '6620.00' | '149833 ± 0.03%' | '151057' | 147691 | | 4 | 'clearMarks' | '785.89 ± 0.07%' | '771.00' | '1291356 ± 0.01%' | '1297017' | 1272442 | | 5 | 'clearMeasures' | '777.98 ± 0.06%' | '761.00' | '1303362 ± 0.01%' | '1314060' | 1285383 | | 6 | 'mark + clearMarks' | '5995.34 ± 1.37%' | '5779.00' | '171874 ± 0.03%' | '173040' | 166797 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7040.28 ± 0.57%' | '6830.00' | '145289 ± 0.03%' | '146413' | 142040 | | 8 | 'measure + clearMeasures (with mark names)' | '7184.43 ± 0.40%' | '6990.00' | '141809 ± 0.03%' | '143062' | 139190 | Reviewed By: huntie Differential Revision: D77795990
57ba7b2
to
051a14d
Compare
This pull request was exported from Phabricator. Differential Revision: D77795990 |
Summary: Changelog: [internal] (This is marked as internal because this API hasn't been marked as stable yet). This fixes multiple bugs and missing features in `performance.mark` and `performance.measure`. See re-enabled tests to see the specific behaviors. Validated that performance isn't regressed by this change using the existing benchmark for `Performance` (`Performance-benchmark-itest`): * Before | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5557.96 ± 0.34%' | '5459.00' | '182114 ± 0.02%' | '183184' | 179922 | | 1 | 'mark (with custom startTime)' | '5664.54 ± 1.71%' | '5518.00' | '180296 ± 0.02%' | '181225' | 176537 | | 2 | 'measure (with start and end timestamps)' | '6653.62 ± 0.94%' | '6530.00' | '152296 ± 0.02%' | '153139' | 150295 | | 3 | 'measure (with mark names)' | '6903.37 ± 0.42%' | '6790.00' | '146429 ± 0.02%' | '147275' | 144857 | | 4 | 'clearMarks' | '782.98 ± 0.04%' | '771.00' | '1287735 ± 0.01%' | '1297017' | 1277173 | | 5 | 'clearMeasures' | '792.24 ± 0.03%' | '781.00' | '1270847 ± 0.01%' | '1280410' | 1262238 | | 6 | 'mark + clearMarks' | '5883.69 ± 0.52%' | '5759.00' | '172863 ± 0.02%' | '173641' | 169962 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7222.22 ± 0.68%' | '7021.00' | '141204 ± 0.02%' | '142430' | 138462 | | 8 | 'measure + clearMeasures (with mark names)' | '7234.53 ± 0.34%' | '7121.00' | '139600 ± 0.02%' | '140430' | 138227 | * After | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5579.80 ± 0.32%' | '5479.00' | '181368 ± 0.02%' | '182515' | 179218 | | 1 | 'mark (with custom startTime)' | '5759.72 ± 0.99%' | '5648.00' | '176162 ± 0.02%' | '177054' | 173620 | | 2 | 'measure (with start and end timestamps)' | '6506.38 ± 0.34%' | '6390.00' | '155503 ± 0.02%' | '156495' | 153696 | | 3 | 'measure (with mark names)' | '6770.94 ± 0.72%' | '6620.00' | '149833 ± 0.03%' | '151057' | 147691 | | 4 | 'clearMarks' | '785.89 ± 0.07%' | '771.00' | '1291356 ± 0.01%' | '1297017' | 1272442 | | 5 | 'clearMeasures' | '777.98 ± 0.06%' | '761.00' | '1303362 ± 0.01%' | '1314060' | 1285383 | | 6 | 'mark + clearMarks' | '5995.34 ± 1.37%' | '5779.00' | '171874 ± 0.03%' | '173040' | 166797 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7040.28 ± 0.57%' | '6830.00' | '145289 ± 0.03%' | '146413' | 142040 | | 8 | 'measure + clearMeasures (with mark names)' | '7184.43 ± 0.40%' | '6990.00' | '141809 ± 0.03%' | '143062' | 139190 | Reviewed By: huntie Differential Revision: D77795990
Summary: Changelog: [internal] (This is marked as internal because this API hasn't been marked as stable yet). This fixes multiple bugs and missing features in `performance.mark` and `performance.measure`. See re-enabled tests to see the specific behaviors. Validated that performance isn't regressed by this change using the existing benchmark for `Performance` (`Performance-benchmark-itest`): * Before | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5557.96 ± 0.34%' | '5459.00' | '182114 ± 0.02%' | '183184' | 179922 | | 1 | 'mark (with custom startTime)' | '5664.54 ± 1.71%' | '5518.00' | '180296 ± 0.02%' | '181225' | 176537 | | 2 | 'measure (with start and end timestamps)' | '6653.62 ± 0.94%' | '6530.00' | '152296 ± 0.02%' | '153139' | 150295 | | 3 | 'measure (with mark names)' | '6903.37 ± 0.42%' | '6790.00' | '146429 ± 0.02%' | '147275' | 144857 | | 4 | 'clearMarks' | '782.98 ± 0.04%' | '771.00' | '1287735 ± 0.01%' | '1297017' | 1277173 | | 5 | 'clearMeasures' | '792.24 ± 0.03%' | '781.00' | '1270847 ± 0.01%' | '1280410' | 1262238 | | 6 | 'mark + clearMarks' | '5883.69 ± 0.52%' | '5759.00' | '172863 ± 0.02%' | '173641' | 169962 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7222.22 ± 0.68%' | '7021.00' | '141204 ± 0.02%' | '142430' | 138462 | | 8 | 'measure + clearMeasures (with mark names)' | '7234.53 ± 0.34%' | '7121.00' | '139600 ± 0.02%' | '140430' | 138227 | * After | (index) | Task name | Latency average (ns) | Latency median (ns) | Throughput average (ops/s) | Throughput median (ops/s) | Samples | | ------- | --------------------------------------------------------- | -------------------- | ------------------- | -------------------------- | ------------------------- | ------- | | 0 | 'mark (default)' | '5579.80 ± 0.32%' | '5479.00' | '181368 ± 0.02%' | '182515' | 179218 | | 1 | 'mark (with custom startTime)' | '5759.72 ± 0.99%' | '5648.00' | '176162 ± 0.02%' | '177054' | 173620 | | 2 | 'measure (with start and end timestamps)' | '6506.38 ± 0.34%' | '6390.00' | '155503 ± 0.02%' | '156495' | 153696 | | 3 | 'measure (with mark names)' | '6770.94 ± 0.72%' | '6620.00' | '149833 ± 0.03%' | '151057' | 147691 | | 4 | 'clearMarks' | '785.89 ± 0.07%' | '771.00' | '1291356 ± 0.01%' | '1297017' | 1272442 | | 5 | 'clearMeasures' | '777.98 ± 0.06%' | '761.00' | '1303362 ± 0.01%' | '1314060' | 1285383 | | 6 | 'mark + clearMarks' | '5995.34 ± 1.37%' | '5779.00' | '171874 ± 0.03%' | '173040' | 166797 | | 7 | 'measure + clearMeasures (with start and end timestamps)' | '7040.28 ± 0.57%' | '6830.00' | '145289 ± 0.03%' | '146413' | 142040 | | 8 | 'measure + clearMeasures (with mark names)' | '7184.43 ± 0.40%' | '6990.00' | '141809 ± 0.03%' | '143062' | 139190 | Reviewed By: huntie Differential Revision: D77795990
This pull request has been merged in 74c03b6. |
Summary:
Changelog: [internal]
(This is marked as internal because this API hasn't been marked as stable yet).
This fixes multiple bugs and missing features in
performance.mark
andperformance.measure
. See re-enabled tests to see the specific behaviors.Validated that performance isn't regressed by this change using the existing benchmark for
Performance
(Performance-benchmark-itest
):Differential Revision: D77795990