MDN self-hosted library · e01.org

WorkerGlobalScope: performance property

Performance APIworker

no runnable cells web-api-instance-property upstream source

Performance APIworker

The performance read-only property of the WorkerGlobalScope interface returns a Performance object, which can be used to gather performance information about code running in the worker's scope.

Performance entries are per context. If you create a mark on a worker thread, you will not see it in the main thread or any other workers.

Note that only the following performance interfaces are available in worker contexts:

  • Performance
  • PerformanceEntry
  • PerformanceMark
  • PerformanceMeasure
  • PerformanceObserver
  • PerformanceObserverEntryList
  • PerformanceResourceTiming
  • PerformanceServerTiming

Value

A Performance object offering access to performance and timing-related information for the context it is called on.

Specifications

Browser compatibility

See also

  • Window.performance