benchmark

fnDuration[fun.length] benchmark(fun...)(uint n)

Benchmarks code for speed assessment and comparison.

Parameters

funaliases of callable objects (e.g. function names). Each callable object should take no arguments.
nThe number of times each function is to be executed.

Returns

The amount of time (as a Duration) that it took to call

each function n times. The first value is the length of time that it took to call fun[0] n times. The second value is the length of time it took to call fun[1] n times. Etc.