[erlang-questions] Re: Unicast 20k messages, $500-$1000 bounty
Cliff Moon
cliff@REDACTED
Fri Jul 17 01:30:27 CEST 2009
The latest timings from ec2, this time with 4 servers distributing the
client load and a single server. The max latency hovers just under 1s
most of the time.
(debug@REDACTED)4> bot:test(flashbot,
20000, "domU-12-31-39-02-B5-46.compute-1.internal", 8081).
publishing
=INFO REPORT==== 16-Jul-2009::19:13:32 ===
setup: 39034.92ms, good: 20000, bad: 0, run: 5097.52ms
-29.2580ms | min
500.0000ms | 10224 - 51.12%
1000.0000ms | 9776 - 48.88%
965.6640ms | max
ok
(debug@REDACTED)5> bot:test(flashbot,
20000, "domU-12-31-39-02-B5-46.compute-1.internal", 8081).
publishing
=INFO REPORT==== 16-Jul-2009::19:14:30 ===
setup: 36596.29ms, good: 20000, bad: 0, run: 5070.07ms
-29.4500ms | min
500.0000ms | 10260 - 51.30%
1000.0000ms | 9740 - 48.70%
999.8180ms | max
ok
(debug@REDACTED)9> bot:test(flashbot,
20000, "domU-12-31-39-02-B5-46.compute-1.internal", 8081).
publishing
=INFO REPORT==== 16-Jul-2009::19:24:34 ===
setup: 36501.23ms, good: 20000, bad: 0, run: 5119.36ms
-19.9900ms | min
500.0000ms | 10796 - 53.98%
1000.0000ms | 9204 - 46.02%
979.9250ms | max
ok
(debug@REDACTED)4> bot:test(flashbot,
20000, "domU-12-31-39-02-B5-46.compute-1.internal", 8081).
publishing
=INFO REPORT==== 16-Jul-2009::19:27:16 ===
setup: 37879.43ms, good: 20000, bad: 0, run: 5192.95ms
-37.1400ms | min
500.0000ms | 10062 - 50.31%
1000.0000ms | 9938 - 49.69%
971.6150ms | max
ok
Joel Reymont wrote:
> More fun with Erlang optimization...
>
> bot:wait used to take 3 arguments and I thought I'd remove the last
> two since they are not needed, as well as remove the subscribing,
> connected and disconnected handling code. I then removed the sending
> of these messages from flashbot.
>
> The above trimming consistently bumped my latency from 1s to 2s on the
> Mac with HiPE.
>
> What gives?
>
> ---
> Mac hacker with a performance bent
> http://www.linkedin.com/in/joelreymont
>
>
More information about the erlang-questions
mailing list