Performance API

The browser interface for high-precision timing, which lets page code read measurements such as navigation phases, resource loads and custom marks.

In more detail

Everything is exposed through the global performance object. performance.now() returns a precise timestamp, performance.getEntriesByType() returns recorded entries such as navigation timing, and PerformanceObserver reports new entries as they happen.

Related terms

Taught in

References