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

x/merlin/deps.ts>pretty_benching.Threshold

Testing and Benchmarking framework for deno 🧙‍♂️
Latest
interface pretty_benching.Threshold
import { type pretty_benching } from "https://deno.land/x/merlin@v1.0.7/deps.ts";
const { Threshold } = pretty_benching;

Defines a threshold, which has three sections.

  1. 0 <= && <= green --> green section
  2. green < && <= yellow --> yellow section
  3. yellow < && <= infinite --> red section

Properties

green: number

Defines the upper limit of the green section in milliseconds.

yellow: number

Deifnes the upper limit of the yellow section in milliseconds.