[erlang-questions] Speed of communication with external processes
Sat Apr 14 11:56:58 CEST 2007
When I've done similar tests, I've usually benchmarked one
erlang node talking to another over such a TCP socket.
Depending on machine, I've usually landed around 100-150us
round-trip. With blocking select on the external program,
you should be able to get better results.
I think that 50 us round-trip overhead when calling an erlang
function from a C program would feel comfortable. I've not
been able to reach that through normal means, but I believe
that it was done once using a blocking linked-in driver (by
Lars Björnfot at CSLab, while evaluating VIA)
2007/4/14, James Hague <james.hague@REDACTED>:
> I wrote an Erlang program that uses a local TCP socket (with nodelay)
> to communicate with a tiny external program (which I wrote). I was
> curious what the turnaround time was on sending data to the external
> program and getting back a result, so I wrote a little test function.
> Under Windows XP, I'm getting ~3500 round trips per second. I was
> surprised at how hight that number was.
> Under OS X, I'm getting ~90 round trips per second. 90? Wow, that's
> low! I'm sure something is wrong, but I haven't found it yet.
> Anyone else ever run tests like this? I'd be curious what kind of
> numbers you got.
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions