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

x/fresh/tests/deps.ts>Page#emulateCPUThrottling

The next-gen web framework.
Extremely Popular
Go to Latest
method Page.prototype.emulateCPUThrottling
Re-export
import { Page } from "https://deno.land/x/fresh@1.6.1/tests/deps.ts";

Enables CPU throttling to emulate slow CPUs.

Parameters

factor: number | null
  • slowdown factor (1 is no throttle, 2 is 2x slowdown, etc).

Returns

Promise<void>