summaryrefslogtreecommitdiff
path: root/lib/mix/tasks/benchmark.ex
diff options
context:
space:
mode:
authorSachin Joshi <satchin.joshi@gmail.com>2019-06-23 03:25:50 +0000
committerSachin Joshi <satchin.joshi@gmail.com>2019-06-23 03:25:50 +0000
commita0c65bbd6c708b555f457bf24ec07d2d41c3fe4a (patch)
treedeb176014e3c1dcb87fba2fe1108e276c2100148 /lib/mix/tasks/benchmark.ex
parent1452a96ad6cfd7d250e3f7c10805994cc92016a7 (diff)
parent72f365df07e2eba75d3339629b01e5a8913513e6 (diff)
downloadpleroma-a0c65bbd6c708b555f457bf24ec07d2d41c3fe4a.tar.gz
pleroma-a0c65bbd6c708b555f457bf24ec07d2d41c3fe4a.zip
Merge branch 'develop' into 'remove-avatar-header'
# Conflicts: # CHANGELOG.md
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 0fbb4dbb1..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.Web.MastodonAPI.MastodonAPIController.status_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