Node.js module

perf_hooks

The 'node:perf_hooks' module provides performance measurement APIs based on the User Timing specification. It includes performance.now(), performance.mark, performance.measure, and PerformanceObserver.

Use it to benchmark code execution, measure memory usage, and observe performance entries for timely optimization.

Works in Bun · notes

Missing event loop delay monitoring. It's recommended to use the `performance` global instead of `perf_hooks.performance`.

Functions 4

Classes 1

Interfaces 23

Types 2

Variables 8

Namespaces 1