event loop lag

How late the event loop is in getting round to scheduled work, a direct measure of how blocked the main thread is.

In more detail

A healthy Node.js process has lag of a few milliseconds. perf_hooks.monitorEventLoopDelay() measures it, and spikes point to synchronous work that should be moved off the main thread.

Related terms

Taught in

References