Skip to content

Commit

Permalink
Fix Matlab/Octave mandelbrot microbenchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
magistere committed Oct 13, 2013
1 parent 41afa63 commit 2194556
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/perf/micro/perf.m
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,11 @@ function timeit(name, func, varargin)
c = z;
for n=0:79
if abs(z)>2
break
return
end
z = z^2+c;
end
n = 80;
end

mandel(complex(-.53,.68));
Expand All @@ -94,7 +95,7 @@ function timeit(name, func, varargin)
end
end
end
assert(sum(sum(mandelperf(true))) == 14628)
assert(sum(sum(mandelperf(true))) == 14791)
timeit('mandel', @mandelperf, true)

%% numeric vector quicksort %%
Expand Down

0 comments on commit 2194556

Please sign in to comment.