Raxol.Benchmark.DSL (Raxol v2.0.1)

View Source

Domain-specific language for defining benchmarks in an idiomatic Elixir way.

This is a simplified implementation that avoids compile-time function storage issues. Benchmarks are defined as regular module functions for better compatibility.

Summary

Functions

Define a simple benchmark function. This creates a module function that can be called by benchmarking tools.

Define a benchmark with setup.

Functions

benchmark(name, list)

(macro)

Define a simple benchmark function. This creates a module function that can be called by benchmarking tools.

benchmark_with_setup(name, setup_block, list)

(macro)

Define a benchmark with setup.