tl;dr: Avoid using Date to measure durations. Use the performance interface to measure durations because of its high precision.

To cycle through all performance entries, if you’re specifically interested in the markers, can be achieved easily with the following snippet.

copy is a hook function available in the Chromium Developer Tools and copies the passed-in argument to the clipboard.

copy(performance.getEntries().map((element) => element.name));