bdd181425b
Docker Compose project with automated Playwright benchmarks comparing django-liveview 2.2.0 against Phoenix LiveView 1.0 across 6 scenarios.
24 lines
579 B
Elixir
24 lines
579 B
Elixir
defmodule Benchmark.Application do
|
|
use Application
|
|
|
|
@impl true
|
|
def start(_type, _args) do
|
|
children = [
|
|
Benchmark.Repo,
|
|
{Ecto.Migrator,
|
|
repos: Application.fetch_env!(:benchmark, :ecto_repos), skip_if_repo_unset: true},
|
|
{Phoenix.PubSub, name: Benchmark.PubSub},
|
|
BenchmarkWeb.Endpoint
|
|
]
|
|
|
|
opts = [strategy: :one_for_one, name: Benchmark.Supervisor]
|
|
Supervisor.start_link(children, opts)
|
|
end
|
|
|
|
@impl true
|
|
def config_change(changed, _new, removed) do
|
|
BenchmarkWeb.Endpoint.config_change(changed, removed)
|
|
:ok
|
|
end
|
|
end
|