def benchmark(f, args \\ [], min_duration \\ @default_duration) | |
def benchmark(f, args, min_duration) when is_list(f) and is_list(args) do | |
Enum.map(f, fn(fp) -> benchmark(fp, args, min_duration) end) | |
end | |
def benchmark(f, args, min_duration) when is_function(f) do | |
IO.inspect fp | |
results = do_benchmark(fp, args, min_duration) | |
IO.puts results | |
results | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment