Skip to content

Commit 0f69bbb

Browse files
committed
Set storage up in benchmark script
Closes #10
1 parent 41565d7 commit 0f69bbb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ iex(7)> inspect(sql)
6565
[%{"id" => 1, "email" => "[email protected]"}, %{"id" => 2, "email" => "[email protected]"}]
6666
```
6767

68+
## Benchmark
69+
You can find benchmark results [here](benchmarks) or run `mix sql.bench`
70+
```
6871
6972
## Installation
7073

bench.exs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ defmodule SQL.Repo do
55
end
66
Application.put_env(:sql, :ecto_repos, [SQL.Repo])
77
Application.put_env(:sql, SQL.Repo, username: "postgres", password: "postgres", hostname: "localhost", database: "sql_test#{System.get_env("MIX_TEST_PARTITION")}", pool: Ecto.Adapters.SQL.Sandbox, pool_size: 10)
8+
SQL.Repo.__adapter__().storage_up(SQL.Repo.config())
89
SQL.Repo.start_link()
910
range = 1..10_000
1011
Benchee.run(

0 commit comments

Comments
 (0)