Skip to content

min - Find the smallest value in a set of numbers

The min function will return the smallest number in the set of numbers it receives.

Syntax

min(value: number, ...values: number): number

Arguments

NameTypeRequiredDescription
valuenumbertrueThe first numerical value to test
...valuesnumbertrueAll subsequent numerical values

Example - Quickest latency

Consider the following document:

{
    "path": "/home",
    "latency": 320
},
{
    "path": "/checkout",
    "latency": 5000
}

We want to understand the fastest latency per page. We can do this using the bottom command, and the min function.

bottom 20 path by min(latency)

This will give the 20 pages that had the single fastest response, as they appear in the log.