Awkl
Loading...
Searching...
No Matches
bench Namespace Reference

Functions

auto runBenchs (string|array names, array|unassigned args, number times=10, number warmups=0)
 Run benchmark on functions.
 
auto add (x)
 
auto printSummary (stats)
 
auto benchOne (R, fn, args, times, warmups)
 

Function Documentation

◆ add()

auto bench::add ( x )

◆ benchOne()

auto bench::benchOne ( R ,
fn ,
args ,
times ,
warmups  )

◆ printSummary()

auto bench::printSummary ( stats )

◆ runBenchs()

auto bench::runBenchs ( string|array names,
array|unassigned args,
number times = 10,
number warmups = 0 )

Run benchmark on functions.

Parameters
namesFunctions to run
argsIndexed array of arguments to pass to the functions, or unassigned to not pass any
timesNumber of times to run the functions for measuring
warmupsNumber of times to run the functions before measuring
Examples
bench_basic.awk.