projects
/
akkoma
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'modify-config.md-for-S3' into 'develop'
[akkoma]
/
lib
/
mix
/
tasks
/
pleroma
/
benchmark.ex
1
defmodule Mix.Tasks.Pleroma.Benchmark do
2
import Mix.Pleroma
3
use Mix.Task
4
5
def run(["search"]) do
6
start_pleroma()
7
8
Benchee.run(%{
9
"search" => fn ->
10
Pleroma.Activity.search(nil, "cofe")
11
end
12
})
13
end
14
15
def run(["tag"]) do
16
start_pleroma()
17
18
Benchee.run(%{
19
"tag" => fn ->
20
%{"type" => "Create", "tag" => "cofe"}
21
|> Pleroma.Web.ActivityPub.ActivityPub.fetch_public_activities()
22
end
23
})
24
end
25
end