文章分类 -  Erlang-性能调优

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 应无所住而生其心 阅读(252) 评论(0) 推荐(0)

导航