       }
 
   """
-  @spec job_statistics(samples) :: __MODULE__.t
+  @spec job_statistics(samples) :: __MODULE__.t()
   def job_statistics(run_times) do
-    total_time          = Enum.sum(run_times)
-    iterations          = Enum.count(run_times)
-    average             = total_time / iterations
-    ips                 = iterations_per_second(average)
-    deviation           = standard_deviation(run_times, average, iterations)
-    standard_dev_ratio  = deviation / average
-    standard_dev_ips    = ips * standard_dev_ratio
-    percentiles         = Percentile.percentiles(run_times, [50, 99])
-    median              = Map.fetch!(percentiles, 50)
-    mode                = Mode.mode(run_times)
-    minimum             = Enum.min run_times
-    maximum             = Enum.max run_times
+    total_time = Enum.sum(run_times)
+    iterations = Enum.count(run_times)
+    average = total_time / iterations
+    ips = iterations_per_second(average)
+    deviation = standard_deviation(run_times, average, iterations)
+    standard_dev_ratio = deviation / average
+    standard_dev_ips = ips * standard_dev_ratio
+    percentiles = Percentile.percentiles(run_times, [50, 99])
+    median = Map.fetch!(percentiles, 50)
+    mode = Mode.mode(run_times)
+    minimum = Enum.min(run_times)
+    maximum = Enum.max(run_times)
 
     %__MODULE__{
-      average:       average,
-      ips:           ips,
-      std_dev:       deviation,
+      average: average,
+      ips: ips,
+      std_dev: deviation,
       std_dev_ratio: standard_dev_ratio,
-      std_dev_ips:   standard_dev_ips,
-      median:        median,
-      percentiles:   percentiles,
-      mode:          mode,
-      minimum:       minimum,
-      maximum:       maximum,
-      sample_size:   iterations
+      std_dev_ips: standard_dev_ips,
+      median: median,
+      percentiles: percentiles,
+      mode: mode,
+      minimum: minimum,
+      maximum: maximum,
+      sample_size: iterations
     }
   end
 

  }
  """
  def add_percentiles(suite = %Suite{scenarios: scenarios}, percentile_ranks) do
    new_scenarios = Parallel.map(scenarios, fn scenario ->
      update_in(scenario.run_time_statistics.percentiles, fn existing ->
        new = Percentile.percentiles(scenario.run_times, percentile_ranks)
        Map.merge(existing, new)
      end)
    end)

    %Suite{suite | scenarios: new_scenarios}
  end

  """
  @spec sort([%Scenario{}]) :: [%Scenario{}]
  def sort(scenarios) do
    Enum.sort_by(scenarios, fn %Scenario{run_time_statistics: %Statistics{average: average}} ->
      average
    end)
  end

  @doc """
