diff --git a/README.md b/README.md index f3f2a64..6a5c46e 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,9 @@ iex(7)> inspect(sql) [%{"id" => 1, "email" => "john@example.com"}, %{"id" => 2, "email" => "jane@example.com"}] ``` +## Benchmark +You can find benchmark results [here](benchmarks) or run `mix sql.bench` +``` ## Installation diff --git a/bench.exs b/bench.exs index 2b534af..446b070 100644 --- a/bench.exs +++ b/bench.exs @@ -5,6 +5,7 @@ defmodule SQL.Repo do end Application.put_env(:sql, :ecto_repos, [SQL.Repo]) 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) +SQL.Repo.__adapter__().storage_up(SQL.Repo.config()) SQL.Repo.start_link() range = 1..10_000 Benchee.run(