Concepts

Duration budget classification

Try the free JavaScript compiler

A pure policy that selects synthetic or measured durations meeting a chosen inclusive threshold. This is not itself a performance entry collector.

Formal Syntax & Structure

javascript syntaxjavascript
durations.filter(ms => ms >= threshold)

Working Example

Example Snippetjavascript
(async () => {const durations=[12,49,50,80];console.log(JSON.stringify(durations.filter(ms=>ms>=50)));})()
JavaScript Reference