erlang网络编程的几个性能调优和注意点
摘要:前些天给echo_server写了个非常简单的连接压力测试程序,代码-module(stress_test).-export([start/0,tests/1]).start()->tests(12345).tests(Port)->io:format("starting~n"),spawn(fun()->test(Port)end),spawn(fun()->test(Port)end),spawn(fun()->test(Port)end),spawn(fun()->test(Port)end).test(Port)->case
阅读全文
posted @ 2012-11-26 17:08
浙公网安备 33010602011771号