Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
![]() |
#1 |
初级会员
注册日期: 2014-12-27
帖子: 1
声望力: 0 ![]() |
![]()
两段代码及运行结果如下:
至强4核8线程机器 >> matlabpool 8 Starting matlabpool using the 'local' configuration ... connected to 8 labs. >> tic; for i=1:2^30; uu=1*2*3*4*5*6*7*8; end toc Elapsed time is 20.540647 seconds. >> tic; parfor i=1:2^30; uu=1*2*3*4*5*6*7*8; end toc Elapsed time is 34.200219 seconds. 如何理解? |
![]() |
![]() |