Diff of /inst/benchmark_permute.m [1b29ac] .. [09a6da]  Maximize  Restore

  Switch to unified view

a/inst/benchmark_permute.m b/inst/benchmark_permute.m
...
...
38
38
39
  benchutil_initialize (mfilename)
39
  benchutil_initialize (mfilename)
40
40
41
  a = zeros (n, n, n, n, n);
41
  a = zeros (n, n, n, n, n);
42
42
43
  tic; b = permute (a, [2,1,3,4,5]); time_21345 = toc
43
  tic; b = permute (a, [2,1,3,4,5]); time_21345 = toc;
44
  benchutil_set_result ('time_21345')
44
  benchutil_set_result ('time_21345')
45
  
45
  
46
  tic; b = permute (a, [1,3,4,2,5]); time_13425 = toc
46
  tic; b = permute (a, [1,3,4,2,5]); time_13425 = toc;
47
  benchutil_set_result ('time_13425')
47
  benchutil_set_result ('time_13425')
48
  
48
  
49
  tic; b = permute (a, [3,4,1,2,5]); time_34125 = toc
49
  tic; b = permute (a, [3,4,1,2,5]); time_34125 = toc;
50
  benchutil_set_result ('time_34125')
50
  benchutil_set_result ('time_34125')
51
51
52
  tic; b = permute (a, [4,5,1,2,3]); time_45123 = toc
52
  tic; b = permute (a, [4,5,1,2,3]); time_45123 = toc;
53
  benchutil_set_result ('time_45123')
53
  benchutil_set_result ('time_45123')
54
54

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks