View Source mix benchmark (Freecodecamp using Elixir v0.2.0)
Usage
mix benchmark [module, ...] [options]
Running e.g. mix selective_test basic_algo
will
only include tests from test/basic_algo_test.exs
.
Note: these command is not to be ran inside iex
,
rather run this in your OS shell.
To view this via terminal:
mix help benchmark
Options
--list
: Lists available functions--console
: Outputs benchmark result in terminal (Default).--html
: Outputs benchmark as html doc
Example
# list available functions
mix benchmark --list
# specific function
mix benchmark mutation
# benchmark specific function, export to html
mix benchmark mutation --html