Skip to content

Commit

Permalink
rename to scaling_strategy to clarify different from "best" strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
PragTob committed Oct 9, 2017
1 parent 224fc84 commit 56ba0be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/benchee/configuration.ex
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ defmodule Benchee.Configuration do
print: map,
inputs: %{Suite.key => any} | nil,
formatter_options: map,
unit_scaling: Scale.best_unit_strategy,
unit_scaling: Scale.scaling_strategy,
assigns: map,
before_each: fun | nil,
after_each: fun | nil,
Expand Down
2 changes: 1 addition & 1 deletion lib/benchee/conversion/scale.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ defmodule Benchee.Conversion.Scale do
@type unit_atom :: atom
@type any_unit :: unit | unit_atom
@type scaled_number :: {number, unit}
@type best_unit_strategy :: :best | :largest | :smallest | :none
@type scaling_strategy :: :best | :largest | :smallest | :none

@doc """
Scales a number in a domain's base unit to an equivalent value in the best
Expand Down

0 comments on commit 56ba0be

Please sign in to comment.