Remoting VS WCF 传输效率对比

1:测试平台

CPU:Intel Core(TM)2 Duo CPU E8300 2.83GHz

内存:1.98G内存

平台:Windows 2003 Service

2:测试内容

测试Int,Stream,DataSet,Class在Remoting和WCF下的传输效率

服务宿主:Windows Service

通讯通道:TCP

3:测试方法

计算循环1万次传输Int,Stream,Class以及循环100次传输DataSet耗费得时间。

4:测试代码

Remoting

WCF

5:测试结果

 

Remoting传输int stream dataset class耗费的时间(除DataSet100次外其余1万次)

1034 4358 2372 1361

1812 4383 2381 1353

1024 4407 2371 1360

 

WCF传输int stream dataset class耗费的时间(除DataSet100次外其余1万次)

41343 49410 3376 67703

41206 50379 3418 68501

41592 51682 3414 68995

6:问题

各位大牛产生如此大的差距问题在那里那?难道真的是WCF传输效率没有Remoting好?

posted @ 2009-02-20 14:16  李占卫  阅读(6996)  评论(28编辑  收藏  举报