Current section
Files
Jump to
Current section
Files
lib/mix/tasks/bench.update_readme.ex
defmodule Mix.Tasks.Bench.UpdateReadme do
use Mix.Task
@shortdoc "Run benchmarks and refresh README tables"
@moduledoc """
Runs Elixir and JavaScript benchmarks, then updates benchmark sections in `README.md`.
Internally, this task runs `mix run bench/update_readme.exs`.
"""
@impl Mix.Task
def run(_args) do
Mix.Task.run("app.start")
Mix.shell().info("Running benchmark + README updater script...")
Mix.Task.run("run", ["bench/update_readme.exs"])
end
end