Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 5179c87dbd
Fetching contributors…

Cannot retrieve contributors at this time

executable file 15 lines (12 sloc) 0.553 kb
#! /usr/bin/env escript
%%! -smp enable -pa ebin -pa perf
main([BindTo,MessageSizeStr,RoundtripCountStr]) ->
{MessageSize, _} = string:to_integer(MessageSizeStr),
{RoundtripCount, _} = string:to_integer(RoundtripCountStr),
{ok, Context} = erlzmq:context(),
{ok, Socket} = erlzmq:socket(Context, [rep, {active, false}]),
ok = erlzmq:bind(Socket, BindTo),
Msg = list_to_binary(lists:duplicate(MessageSize, 0)),
ok = erlzmq_perf:local_lat_loop(RoundtripCount, Socket, Msg),
erlzmq:close(Socket),
erlzmq:term(Context).
Jump to Line
Something went wrong with that request. Please try again.