summaryrefslogtreecommitdiff
path: root/benchmarks/load_testing/helper.ex
diff options
context:
space:
mode:
authorAlex S <alex.strizhakov@gmail.com>2019-09-19 14:02:27 +0300
committerAlex S <alex.strizhakov@gmail.com>2019-09-19 14:02:27 +0300
commit1d285e6fada841b6959b6516aca1c84d1a2c9b93 (patch)
tree3ec8c8df19fd8f21047cb55051c03da6d6de1980 /benchmarks/load_testing/helper.ex
parent924d7e6aa60095e27c15b4a5f473a192ab2b42ef (diff)
downloadpleroma-1d285e6fada841b6959b6516aca1c84d1a2c9b93.tar.gz
pleroma-1d285e6fada841b6959b6516aca1c84d1a2c9b93.zip
moving to separate dir
Diffstat (limited to 'benchmarks/load_testing/helper.ex')
-rw-r--r--benchmarks/load_testing/helper.ex11
1 files changed, 11 insertions, 0 deletions
diff --git a/benchmarks/load_testing/helper.ex b/benchmarks/load_testing/helper.ex
new file mode 100644
index 000000000..47b25c65f
--- /dev/null
+++ b/benchmarks/load_testing/helper.ex
@@ -0,0 +1,11 @@
+defmodule Pleroma.LoadTesting.Helper do
+ defmacro __using__(_) do
+ quote do
+ import Ecto.Query
+ alias Pleroma.Repo
+ alias Pleroma.User
+
+ defp to_sec(microseconds), do: microseconds / 1_000_000
+ end
+ end
+end