glychee

Package Version Hex Docs

A simple gleam benchmark runner which wraps https://github.com/bencheeorg/benchee.

Quick start

Notice: Requires at least gleam 0.24 (or gleam 0.0.0-nightly-221019 or later).

Also requires elixir and hex to be installed. You might be required to run mix local.hex after installing elixir.

  1. Add glychee to your project: gleam add glychee.

  2. Create a a custom benchmarking module that contains a main-function. See glychee_example_custom_benchmark_module.gleam as an example. In that module you will define which Functions to benchmark with one or many Data.

  3. Run the benchmark. bin/glychee_example_benchmark_call.sh in this library shows an example on how do do it:

    erl -pa ./build/dev/erlang/*/ebin -noshell -eval \
      'gleam@@main:run(glychee_example_custom_benchmark_module)';
    

Installation

If available on Hex this package can be added to your Gleam project:

gleam add glychee

Glychee’s documentation can be found at https://hexdocs.pm/glychee.

Search Document