Skip to content

Commit

Permalink
Remove run times field from Measurements
Browse files Browse the repository at this point in the history
Signed-off-by: Tallys Martins <tallysmartins@gmail.com>
  • Loading branch information
tallysmartins committed Jul 20, 2018
1 parent f1cfa0c commit 63b8e35
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 16 deletions.
1 change: 0 additions & 1 deletion lib/elixir_bench/benchmarks/measurement.ex
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ defmodule ElixirBench.Benchmarks.Measurement do
field :ips, :float
field :std_dev_ips, :float

field :run_times, {:array, :float}
field :percentiles, {:map, :float}

timestamps(type: :utc_datetime)
Expand Down
2 changes: 0 additions & 2 deletions lib/elixir_bench_web/schema/content_types.ex
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@ defmodule ElixirBenchWeb.Schema.ContentTypes do

field :ips, :float
field :std_dev_ips, :integer

field :run_times, list_of(:float)
end

object :percentile do
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
defmodule ElixirBench.Repo.Migrations.RemoveRunTimesFromMeasurementsTable do
use Ecto.Migration

def change do
alter table(:measurements) do
remove :run_times
end
end
end
4 changes: 0 additions & 4 deletions priv/repo/seeds.exs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ data = %{
"std_dev" => 209.33476197004862,
"std_dev_ips" => 1351.5088377210595,
"std_dev_ratio" => 0.5319001605985423,
"run_times" => []
},
"insert_mysql/insert_changeset" => %{
"average" => 450.2023723288664,
Expand All @@ -44,7 +43,6 @@ data = %{
"std_dev" => 573.9417528830307,
"std_dev_ips" => 2831.732735787863,
"std_dev_ratio" => 1.274852795453007,
"run_times" => []
},
"insert_pg/insert_plain" => %{
"average" => 473.0912894636744,
Expand All @@ -58,7 +56,6 @@ data = %{
"std_dev" => 273.63253429178945,
"std_dev_ips" => 1222.5815257169884,
"std_dev_ratio" => 0.5783926704759165,
"run_times" => []
},
"insert_pg/insert_changeset" => %{
"average" => 465.8669101807624,
Expand All @@ -72,7 +69,6 @@ data = %{
"std_dev" => 199.60367678670747,
"std_dev_ips" => 919.6970816229071,
"std_dev_ratio" => 0.4284564377179282,
"run_times" => []
}
}
}
Expand Down
13 changes: 4 additions & 9 deletions test/support/factory/elixir_bench_factory.ex
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ defmodule ElixirBench.Factory do
std_dev_ratio: 0.5319001605985423,
ips: 2540.906993147397,
std_dev_ips: 1351.5088377210595,
run_times: [1.87, 1.44],
percentiles: %{"50" => 377.0, "99" => 578.6900000000005}
}
end
Expand Down Expand Up @@ -95,8 +94,7 @@ defmodule ElixirBench.Factory do
"sample_size" => 12630,
"std_dev" => 209.33476197004862,
"std_dev_ips" => 1351.5088377210595,
"std_dev_ratio" => 0.5319001605985423,
"run_times" => []
"std_dev_ratio" => 0.5319001605985423
},
"insert_mysql/insert_changeset" => %{
"average" => 450.2023723288664,
Expand All @@ -109,8 +107,7 @@ defmodule ElixirBench.Factory do
"sample_size" => 11044,
"std_dev" => 573.9417528830307,
"std_dev_ips" => 2831.732735787863,
"std_dev_ratio" => 1.274852795453007,
"run_times" => []
"std_dev_ratio" => 1.274852795453007
},
"insert_pg/insert_plain" => %{
"average" => 473.0912894636744,
Expand All @@ -123,8 +120,7 @@ defmodule ElixirBench.Factory do
"sample_size" => 10516,
"std_dev" => 273.63253429178945,
"std_dev_ips" => 1222.5815257169884,
"std_dev_ratio" => 0.5783926704759165,
"run_times" => []
"std_dev_ratio" => 0.5783926704759165
},
"insert_pg/insert_changeset" => %{
"average" => 465.8669101807624,
Expand All @@ -137,8 +133,7 @@ defmodule ElixirBench.Factory do
"sample_size" => 10677,
"std_dev" => 199.60367678670747,
"std_dev_ips" => 919.6970816229071,
"std_dev_ratio" => 0.4284564377179282,
"run_times" => []
"std_dev_ratio" => 0.4284564377179282
}
}
}
Expand Down

0 comments on commit 63b8e35

Please sign in to comment.