2 ms·
D'oh, from TFP: This code (mochiconntest_web.erl) just accepts connections and uses chunked transfer to send an initial welcome message, and one message every 1
by alecco 18y ago
D'oh, from TFP:
This code (mochiconntest_web.erl) just accepts connections and uses chunked transfer to send an initial welcome message, and one message every 10 seconds to every client.
1000000 / 10 = 100000 writes per second to a client on a connected socket. My guesstimate is it's not that much :)
Based on this graph:
http://monkey.org/~provos/libevent/libevent-benchmark2.jpg http://monkey.org/~provos/libevent/libevent-benchmark2.jpg
[BTW sorry for replying to my own comment, and sorry I didn't read TFA.]