Packages
gen_metrics_bench
0.1.0
An Elixir GenMetrics benchmarking tool for GenServer and GenStage applications.
Current section
Files
Jump to
Current section
Files
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