View Source jose_jwa_bench (JOSE v1.11.10)

Summary

Types

-type arguments() :: arguments(term()).
-type arguments(Type) :: arguments_function(Type) | arguments_list(Type).
-type arguments_function(Type) :: fun(() -> arguments_list(Type)).
-type arguments_list(Type) :: [Type].
-type metric() ::
    #{acc := non_neg_integer(),
      avg := float(),
      min := non_neg_integer(),
      max := non_neg_integer()}.
-type stats() :: #{reds := metric(), time := metric()}.

Functions

Link to this function

bench(Function, Arguments)

View Source
-spec bench(function(), arguments()) -> stats().
Link to this function

bench(Function, Arguments, N)

View Source
-spec bench(function(), arguments(), non_neg_integer()) -> stats().
Link to this function

compare(Groups, Arguments, N)

View Source
-spec compare([{atom(), function()}], arguments(), non_neg_integer()) -> [{atom(), stats()}].