PerformanceBaseline · Widely available
The performance global object and the PerformanceObserver API provide access to performance-related information for the current execution context.
Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Sep 16, 2015. Widely available since Mar 16, 2018.
Browser support
DesktopChrome
1–5Not supported
6+Supportedsince Sep 2, 2010
Current: 155Edge
12+Supportedsince Jul 29, 2015
Current: 154Firefox
1–6Not supported
7+Supportedsince Sep 27, 2011
Current: 157Safari
1–7Not supported
8+Supportedsince Oct 16, 2014
Current: 27MobileChrome Android
18+Supportedsince Jun 27, 2012
Current: 155Firefox Android
4–6Not supported
7+Supportedsince Sep 27, 2011
Current: 157Safari iOS
1–8Not supported
9+Supportedsince Sep 16, 2015
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
Full syntax and examples are on MDN: Performance.
Feature detection
JS · check before using
if ("Performance" in globalThis) {
// Performance is available
} else {
// load a polyfill or use a fallback
}Documentation (MDN)
Specification
Sub-features
Support for each part of the feature (42). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| Performance | 6 | 12 | 7 | 8 | 18 | 7 | 9 |
| Performance.clearMarks | 29 | 12 | 38 | 11 | 29 | 42 | 11 |
| Performance.clearMeasures | 29 | 12 | 38 | 11 | 29 | 42 | 11 |
| Performance.getEntries | 28 | 12 | 35 | 11 | 28 | 35 | 11 |
| Performance.getEntriesByName | 28 | 12 | 35 | 11 | 28 | 35 | 11 |
| Performance.getEntriesByType | 28 | 12 | 35 | 11 | 28 | 35 | 11 |
| Performance.mark | 28 | 12 | 38 | 11 | 28 | 42 | 11 |
| Performance.mark.markOptions_parameter | 78 | 79 | 101 | 14.1 | 78 | 101 | 14.5 |
| Performance.mark.returns_performancemark | 78 | 79 | 101 | 14.1 | 78 | 101 | 14.5 |
| Performance.measure | 28 | 12 | 38 | 11 | 28 | 42 | 11 |
| Performance.measure.measureOptions_parameter | 77 | 79 | 103 | 14.1 | 77 | 103 | 14.5 |
| Performance.measure.returns_performancemeasure | 78 | 79 | 103 | 14.1 | 78 | 103 | 14.5 |
| Performance.now | 24 | 12 | 15 | 8 | 25 | 15 | 9 |
| Performance.timeOrigin | 62 | 16 | 53 | 15 | 62 | 53 | 15 |
| Performance.toJSON | 56 | 12 | 25 | 14.1 | 56 | 25 | 14.5 |
| PerformanceEntry | 46 | 12 | 35 | 11 | 46 | 35 | 11 |
| PerformanceEntry.duration | 46 | 12 | 35 | 11 | 46 | 35 | 11 |
| PerformanceEntry.entryType | 46 | 12 | 35 | 11 | 46 | 35 | 11 |
| PerformanceEntry.name | 46 | 12 | 35 | 11 | 46 | 35 | 11 |
| PerformanceEntry.startTime | 46 | 12 | 35 | 11 | 46 | 35 | 11 |
Show 22 more
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| PerformanceEntry.toJSON | 46 | 16 | 35 | 11 | 46 | 35 | 11 |
| PerformanceEntry.worker_support | 62 | 15 | 60 | 11 | 62 | 60 | 11 |
| PerformanceMark | 28 | 12 | 38 | 11 | 28 | 38 | 11 |
| PerformanceMark.PerformanceMark | 76 | 79 | 101 | 14.1 | 76 | 101 | 14.5 |
| PerformanceMark.detail | 78 | 79 | 101 | 14.1 | 78 | 101 | 14.5 |
| PerformanceMeasure | 25 | 12 | 38 | 11 | 25 | 38 | 11 |
| PerformanceMeasure.detail | 78 | 79 | 103 | 14.1 | 78 | 103 | 14.5 |
| PerformanceObserver | 52 | 79 | 57 | 11 | 52 | 57 | 11 |
| PerformanceObserver.PerformanceObserver | 52 | 79 | 57 | 11 | 52 | 57 | 11 |
| PerformanceObserver.PerformanceObserver.droppedEntriesCount | 95 | 95 | ✕ | ✕ | 95 | ✕ | ✕ |
| PerformanceObserver.disconnect | 52 | 79 | 57 | 11 | 52 | 57 | 11 |
| PerformanceObserver.observe | 52 | 79 | 57 | 11 | 52 | 57 | 11 |
| PerformanceObserver.supportedEntryTypes_static | 73 | 79 | 68 | 13 | 73 | 68 | 13 |
| PerformanceObserver.takeRecords | 65 | 79 | 60 | 15 | 65 | 60 | 15 |
| PerformanceObserver.worker_support | 62 | 79 | 57 | 11 | 62 | 57 | 11 |
| PerformanceObserverEntryList | 52 | 79 | 57 | 11 | 52 | 57 | 11 |
| PerformanceObserverEntryList.getEntries | 52 | 79 | 57 | 11 | 52 | 57 | 11 |
| PerformanceObserverEntryList.getEntriesByName | 52 | 79 | 57 | 11 | 52 | 57 | 11 |
| PerformanceObserverEntryList.getEntriesByType | 52 | 79 | 57 | 11 | 52 | 57 | 11 |
| performance | 6 | 12 | 7 | 8 | 18 | 7 | 9 |
| performance.worker_support | 30 | 14 | 34 | 11 | 30 | 34 | 11 |
| http.headers.Timing-Allow-Origin | 54 | 79 | 45 | 11 | 54 | 45 | 11 |