This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2015.
The performance property of the Window interface returns a Performance object, which can be used to gather performance information about code running in the window's scope.
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.
A Performance object offering access to performance and timing-related information about code running in the window's scope.
| Specification |
|---|
| High Resolution Time> # the-performance-attribute> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
performance |
6 | 12 | 7 | 15 | 8 | 18 | 7 | 14 | 9 | 1.0 | 4.4 | 9 |
worker_support |
30 | 14 | 34 | 17 | 11 | 30 | 34 | 18 | 11 | 2.0 | 4.4 | 11 |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Window/performance