Skip to content

benchmark: update interations of async_hooks/async-local-storage-

getstore-nested-run.js

Fixed: https://github.com/nodejs/node/issues/50571

The original case does not test the real performance of aync hooks. Most of time is cost by loading the test case JS file. After applying this PR, the test case makes sense. The new value is big but was tested out to be the least value to make the test case right.

<!--table {mso-displayed-decimal-separator:"\."; mso-displayed-thousand-separator:"\,";} @page {margin:.75in .7in .75in .7in; mso-header-margin:.3in; mso-footer-margin:.3in;} tr {mso-height-source:auto;} col {mso-width-source:auto;} br {mso-data-placement:same-cell;} td {padding-top:1px; padding-right:1px; padding-left:1px; mso-ignore:padding; color:black; font-size:11.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:Calibri, sans-serif; mso-font-charset:0; mso-number-format:General; text-align:general; vertical-align:bottom; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;} .xl65 {mso-number-format:0%;} -->
    after PR before PR benefit
async_hooks/async-local-storage-getstore-nested-run.js sotrageCount=1: 147505587.6 32252498.36 457%
async_hooks/async-local-storage-getstore-nested-run.js sotrageCount=10: 148090789.8 32513780.15 455%
async_hooks/async-local-storage-getstore-nested-run.js sotrageCount=100: 38733684.16 23503038.59 165%

Merge request reports

Loading