Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 1.07 KB

README.md

File metadata and controls

41 lines (29 loc) · 1.07 KB

PingPongMeasurer

Getting Started

  1. add this to deps
def deps do
  [
    {:ping_pong_measurer, git: "https://github.com/b5g-ex/ping_pong_measurer.git"}
  ]
end
  1. configure data directory to store measurements
config :ping_pong_measurer, :data_directory_path, "path/to/directory"

If you use this on Nerves system, the "path/to/directory" must be under the /data directory which is rw partition.

  1. start pong node first
iex> MeasurementHelper.start_node("[email protected]", :cookie)
iex> PingPongMeasurer.start_pong_processes(_process_count = 100)
  1. start ping node and start measure
iex> MeasurementHelper.start_node("[email protected]", :cookie)
$ Node.connect(String.to_atom("[email protected]"))
$ MeasurementHelper.start_measurement(_process_count = 100, _payload_bytes = 10000, _measurement_times = 100)

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ping_pong_measurer.