Packages

A fast simplex noise implementation in Elixir (2D, 3D, 4D)

Current section

Files

Jump to
simplex_noise lib mix tasks bench.update_readme.ex
Raw

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