Manuel Albarran

A random notes about Elixir

Benchmark

05 Feb 2017 » elixir, time
:timer.tc(fun) #-> {time, value}
:timer.tc(fun, arguments) #-> {time, value}
:timer.tc(module, function, arguments) #-> {time, value}

Evaluates apply(Module, Function, Arguments) and measures the elapsed real time as reported by os:timestamp/0.