docs fixes

This commit is contained in:
Alex S 2019-09-06 16:37:18 +03:00
commit 252e5db45c
3 changed files with 13 additions and 15 deletions

View file

@ -2,8 +2,6 @@ defmodule Pleroma.LoadTesting.Fetcher do
use Pleroma.LoadTesting.Helper
def fetch_user(user) do
IO.puts("=================================")
Benchee.run(%{
"By id" => fn -> Repo.get_by(User, id: user.id) end,
"By ap_id" => fn -> Repo.get_by(User, ap_id: user.ap_id) end,
@ -13,8 +11,6 @@ defmodule Pleroma.LoadTesting.Fetcher do
end
def query_timelines(user) do
IO.puts("\n=================================")
home_timeline_params = %{
"count" => 20,
"with_muted" => true,
@ -102,7 +98,6 @@ defmodule Pleroma.LoadTesting.Fetcher do
end
def query_notifications(user) do
IO.puts("\n=================================")
without_muted_params = %{"count" => "20", "with_muted" => "false"}
with_muted_params = %{"count" => "20", "with_muted" => "true"}
@ -138,8 +133,6 @@ defmodule Pleroma.LoadTesting.Fetcher do
end
def query_dms(user) do
IO.puts("\n=================================")
params = %{
"count" => "20",
"with_muted" => "true",
@ -187,8 +180,6 @@ defmodule Pleroma.LoadTesting.Fetcher do
end
def query_long_thread(user, activity) do
IO.puts("\n=================================")
Benchee.run(%{
"Fetch main post" => fn ->
Pleroma.Activity.get_by_id_with_object(activity.id)

View file

@ -28,7 +28,8 @@ defmodule Pleroma.LoadTesting.Generator do
nickname: "nick#{i}",
password_hash: Comeonin.Pbkdf2.hashpwsalt("test"),
bio: "Tester Number #{i}",
info: %{}
info: %{},
local: Enum.random([true, false])
}
user = %{