Performance

The performance global, marks, measures, and PerformanceObserver.

performance, PerformanceObserver, and the PerformanceEntry classes are globals and follow the User Timing and Performance Timeline specs.

Differences from browsers

  • performance and node:perf_hooks share one timeline.
  • PerformanceObserver.supportedEntryTypes is mark, measure, node, and function.
  • Mark and measure detail values are cloned as in Web Messaging; functions throw DataCloneError.