moving to separate dir
authorAlex S <alex.strizhakov@gmail.com>
Thu, 19 Sep 2019 11:02:27 +0000 (14:02 +0300)
committerAlex S <alex.strizhakov@gmail.com>
Thu, 19 Sep 2019 11:02:27 +0000 (14:02 +0300)
benchmarks/load_testing/fetcher.ex [moved from lib/load_testing/fetcher.ex with 100% similarity]
benchmarks/load_testing/generator.ex [moved from lib/load_testing/generator.ex with 100% similarity]
benchmarks/load_testing/helper.ex [moved from lib/load_testing/helper.ex with 100% similarity]
benchmarks/mix/tasks/pleroma/load_testing.ex [moved from lib/mix/tasks/pleroma/load_testing.ex with 98% similarity]
mix.exs

similarity index 98%
rename from lib/mix/tasks/pleroma/load_testing.ex
rename to benchmarks/mix/tasks/pleroma/load_testing.ex
index a7057395d2830549383e3085cfd9695c61dff47e..7b2293acc44163346b588504836e3d348d4d7e42 100644 (file)
@@ -8,8 +8,8 @@ defmodule Mix.Tasks.Pleroma.LoadTesting do
   @shortdoc "Factory for generation data"
   @moduledoc """
   Generates data like:
   @shortdoc "Factory for generation data"
   @moduledoc """
   Generates data like:
-  - users
-  - activities with notifications
+  - local/remote users
+  - local/remote activities with notifications
   - direct messages
   - long thread
   - non visible posts
   - direct messages
   - long thread
   - non visible posts
diff --git a/mix.exs b/mix.exs
index 3170d6f2d7ca8413660297439c3fbc092569a458..b0f2c4afb9fb45aaae1b15eed320ac6d4541ba5c 100644 (file)
--- a/mix.exs
+++ b/mix.exs
@@ -69,6 +69,7 @@ defmodule Pleroma.Mixfile do
   end
 
   # Specifies which paths to compile per environment.
   end
 
   # Specifies which paths to compile per environment.
+  defp elixirc_paths(:benchmark), do: ["lib", "benchmarks"]
   defp elixirc_paths(:test), do: ["lib", "test/support"]
   defp elixirc_paths(_), do: ["lib"]
 
   defp elixirc_paths(:test), do: ["lib", "test/support"]
   defp elixirc_paths(_), do: ["lib"]