[erlang-questions] Re: Unicast 20k messages, $500-$1000 bounty

Joel Reymont <>
Fri Jul 17 13:03:26 CEST 2009


On Jul 17, 2009, at 11:39 AM, Ulf Wiger wrote:

> {delay_send, Boolean}
> Normally, when an Erlang process sends to a socket, the driver will  
> try to immediately send the data. If that fails, the driver will use  
> any means available to queue up the message to be sent whenever the  
> operating system says it can handle it. Setting {delay_send, true}  
> will make all messages queue up.

On EC2 with 3 bot instances I seem to be doing ~200-300ms better with  
delay_send enabled and sending directly to the socket. Could be just a  
fluke.

=INFO REPORT==== 17-Jul-2009::10:59:17 ===
setup: 32944.80ms, good: 20000, bad: 0, run: 37288.00ms
   -60.8130ms | min
   500.0000ms | 4992   -  24.96%
  1000.0000ms | 4652   -  23.26%
  1500.0000ms | 5312   -  26.56%
  2000.0000ms | 3914   -  19.57%
  2500.0000ms | 1130   -   5.65%
  2363.9200ms | max
ok
()4> bot:test(flashbot, 20000,  
'ip-10-244-47-97', 8081).

=INFO REPORT==== 17-Jul-2009::11:00:01 ===
setup: 30712.31ms, good: 20000, bad: 0, run: 35419.80ms
   -61.9370ms | min
   500.0000ms | 5376   -  26.88%
  1000.0000ms | 4844   -  24.22%
  1500.0000ms | 5187   -  25.93%
  2000.0000ms | 3358   -  16.79%
  2500.0000ms | 1235   -   6.17%
  2472.4190ms | max
ok
()5> bot:test(flashbot, 20000,  
'ip-10-244-47-97', 8081).

=INFO REPORT==== 17-Jul-2009::11:00:49 ===
setup: 30307.11ms, good: 20000, bad: 0, run: 35555.13ms
   -63.3260ms | min
   500.0000ms | 6321   -  31.61%
  1000.0000ms | 5827   -  29.14%
  1500.0000ms | 5422   -  27.11%
  2000.0000ms | 1438   -   7.19%
  2500.0000ms | 992    -   4.96%
  2318.4370ms | max
ok

---
Mac hacker with a performance bent
http://www.linkedin.com/in/joelreymont



More information about the erlang-questions mailing list