Packages

An Elixir GenMetrics benchmarking tool for GenServer and GenStage applications.

Current section

Files

Jump to
gen_metrics_bench lib simulator pipeline_default.ex
Raw

lib/simulator/pipeline_default.ex

defmodule GenMetricsBench.Simulator.PipelineDefault do
@behaviour GenMetricsBench.Simulator
@moduledoc """
Default plug-in behaviour for GenStage pipeline benchmark tests.
Clone or customize this module to create benchmarks with runtime
characteristics that mirror your dev or production environments.
If clone, remember to register your new simulator module in the
`config/config.exs` configuraton file.
"""
def gen_msg do
:ok
end
def gen_task_delay do
# delay represents :producer_consumer handle_events
# simulated workload processing time (ms)
1
end
end