source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/test_max.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

  • Property svn:executable set to *
File size: 546 bytes
Line 
1tim = [];
2for k = 1:6
3  x = rand(1,1024*k/2);
4  %x = 1:(1024*k/4);
5  niter = floor(12000/k);
6
7  %tic; for i = 1:niter ismembc(b,a); end; tim(k,1) = toc;
8  tic; for i = 1:niter max(x); end; tim(k,1) = toc;
9  tic; for i = 1:niter min(x); end; tim(k,2) = toc;
10  tic; for i = 1:niter all(x); end; tim(k,3) = toc;
11  tic; for i = 1:niter any(x); end; tim(k,4) = toc;
12  tic; for i = 1:niter x+x; end; tim(k,5) = toc;
13end
14figure(1),clf
15plot(tim)
16xlabel('trial')
17ylabel('time (sec)')
18legend('max','min','all','any','plus');
19%tim(end,1)
Note: See TracBrowser for help on using the repository browser.