lib/mix/tasks/bench.ex
defmodule Mix.Tasks.Bench do
@moduledoc "Start and runs the benchmarks."
@dialyzer {:nowarn_function, run: 1}
use Mix.Task
@shortdoc "Start and runs the benchmarks"
@impl Mix.Task
def run(opts) do
Mix.Task.run("compile")
Application.put_env(:benchee_dsl, :cli_args, opts)
Application.ensure_all_started(:benchee_dsl)
Code.require_file("benchee_helper.exs", "bench")
end
end