The global performance
property returns a Performance
object, which can be used to gather performance information about the context it is called in (window or worker).
Performance entries are per context. If you create a mark on the main thread (or other worker), you cannot see it in a worker thread, and vice versa.