GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — performance.getEntriesByType returns entries out of order · Issue #42024 · nodejs/node Closed Labels perf_hooksIssues and PRs related to the perf_hooks module and performance measurement APIs.Issues and PRs related to the perf_hooks module and performance measurement APIs. DescriptionVersion17.5.0 Platform
Subsystemperf_hooks What steps will reproduce the bug?Run this file (e.g. // index.js (async () => { const sleep = ms => new Promise(resolve => setTimeout(() => resolve(), ms)) performance.mark('one') await sleep(50) performance.mark('two') await sleep(50) performance.mark('three') await sleep(50) performance.measure('three', 'three') await sleep(50) performance.measure('two', 'two') await sleep(50) performance.measure('one', 'one') const entries = performance.getEntriesByType('measure') console.log(entries.map(x => x.name)) })() How often does it reproduce? Is there a required condition?Using the above code, it consistently reproduces for me. Perhaps in certain environments you may need a longer What is the expected behavior?If you run the same snippet in Chrome, Firefox, or Safari (e.g. in a DevTools Console on ['one', 'two', 'three'] According to MDN,
What do you see instead?Node v16 and v17 will output: [ 'three', 'two', 'one' ] Additional informationNo response Activity
MetadataMetadataAssigneesLabelsperf_hooksIssues and PRs related to the perf_hooks module and performance measurement APIs.Issues and PRs related to the perf_hooks module and performance measurement APIs. TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |