Skip to content

Commit

Permalink
memory-notes
Browse files Browse the repository at this point in the history
  • Loading branch information
PragTob committed Dec 13, 2023
1 parent dfa6987 commit 63a5c5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/benchee/formatter.ex
Expand Up @@ -153,6 +153,7 @@ defmodule Benchee.Formatter do
# the results of that formatting are written in sequence.
defp parallel_output(suite, module_configurations) do
module_configurations
# clean up the suite
|> Parallel.map(fn {module, options} -> {module, options, module.format(suite, options)} end)
|> Enum.each(fn {module, options, output} -> module.write(output, options) end)

Expand Down
3 changes: 3 additions & 0 deletions lib/benchee/statistics.ex
Expand Up @@ -169,6 +169,9 @@ defmodule Benchee.Statistics do

update_in(suite.scenarios, fn scenarios ->
Parallel.map(scenarios, fn scenario ->
# send only the samples, percentiles and whatevs along
# be mindful that we might (soon (tm)) pass on the sample size from here as well
# theoretically we could only pass on collection_data
calculate_scenario_statistics(scenario, percentiles)
end)
end)
Expand Down

0 comments on commit 63a5c5e

Please sign in to comment.