summaryrefslogtreecommitdiff
path: root/lib/mix/tasks/benchmark.ex
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-06-20 21:25:34 +0000
committerrinpatch <rinpatch@sdf.org>2019-06-20 21:25:34 +0000
commit2437f5128407bbcdfc152ea3f008d7eecc1728f2 (patch)
treeb96de5712ecf8ac6f376b9ac3f70bfdf4df243d2 /lib/mix/tasks/benchmark.ex
parent3b48876cf02b35af953bf463987e42675a9e6180 (diff)
parente3e8a7dc0e0f3d3abde90c93a0650e7188d13b12 (diff)
downloadpleroma-2437f5128407bbcdfc152ea3f008d7eecc1728f2.tar.gz
pleroma-2437f5128407bbcdfc152ea3f008d7eecc1728f2.zip
Merge branch 'fix/config-gen-releases' into 'develop'
Refactor mix tasks a bit and make config generator work with releases See merge request pleroma/pleroma!1312
Diffstat (limited to 'lib/mix/tasks/benchmark.ex')
-rw-r--r--lib/mix/tasks/benchmark.ex25
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/mix/tasks/benchmark.ex b/lib/mix/tasks/benchmark.ex
deleted file mode 100644
index e4b1a638a..000000000
--- a/lib/mix/tasks/benchmark.ex
+++ /dev/null
@@ -1,25 +0,0 @@
-defmodule Mix.Tasks.Pleroma.Benchmark do
- use Mix.Task
- alias Mix.Tasks.Pleroma.Common
-
- def run(["search"]) do
- Common.start_pleroma()
-
- Benchee.run(%{
- "search" => fn ->
- Pleroma.Activity.search(nil, "cofe")
- end
- })
- end
-
- def run(["tag"]) do
- Common.start_pleroma()
-
- Benchee.run(%{
- "tag" => fn ->
- %{"type" => "Create", "tag" => "cofe"}
- |> Pleroma.Web.ActivityPub.ActivityPub.fetch_public_activities()
- end
- })
- end
-end