Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/cli/dts/lib.deno.ns.d.ts>Performance

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface Performance
import { type Performance } from "https://deno.land/x/deno@v1.28.0/cli/dts/lib.deno.ns.d.ts";

Deno supports User Timing Level 3 which is not widely supported yet in other runtimes.

Check out the Performance API documentation on MDN for further information about how to use the API.

Methods

mark(markName: string, options?: PerformanceMarkOptions): PerformanceMark

Stores a timestamp with the associated name (a "mark").

measure(measureName: string, options?: PerformanceMeasureOptions): PerformanceMeasure

Stores the DOMHighResTimeStamp duration between two marks along with the associated name (a "measure").