From 56ba0be69bd5bc26c23bdd2a1e075c9b55a3bf07 Mon Sep 17 00:00:00 2001 From: Tobias Pfeiffer Date: Mon, 9 Oct 2017 21:00:37 +0200 Subject: [PATCH] rename to scaling_strategy to clarify different from "best" strategy --- lib/benchee/configuration.ex | 2 +- lib/benchee/conversion/scale.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/benchee/configuration.ex b/lib/benchee/configuration.ex index 7ecbb9e8..f63c3dc9 100644 --- a/lib/benchee/configuration.ex +++ b/lib/benchee/configuration.ex @@ -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, diff --git a/lib/benchee/conversion/scale.ex b/lib/benchee/conversion/scale.ex index a5c56340..ae911c5f 100644 --- a/lib/benchee/conversion/scale.ex +++ b/lib/benchee/conversion/scale.ex @@ -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