Skip to content

Commit

Permalink
pipeify do_run
Browse files Browse the repository at this point in the history
  • Loading branch information
PragTob committed Feb 28, 2017
1 parent c27c5af commit 7d49cb7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/benchee.ex
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ defmodule Benchee do
end

defp do_run(jobs, config) do
suite = run_benchmarks jobs, config
output_results suite
suite
jobs
|> run_benchmarks(config)
|> output_results
end

defp run_benchmarks(jobs, config) do
Expand All @@ -50,6 +50,7 @@ defmodule Benchee do
Enum.each formatters, fn(output_function) ->
output_function.(suite)
end
suite
end

defdelegate init(), to: Benchee.Config
Expand Down

0 comments on commit 7d49cb7

Please sign in to comment.