Skip to content

Commit

Permalink
Merge pull request #13743 from grinsted/patch-4
Browse files Browse the repository at this point in the history
Faster matlab parseintperf
  • Loading branch information
JeffBezanson committed Oct 23, 2015
2 parents 8ada3cf + 51124f2 commit 4e81212
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/perf/micro/perf.m
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ function timeit(name, func, varargin)
function n = parseintperf(t)
for i = 1:t
n = randi([0,2^32-1],1,'uint32');
s = dec2hex(n);
m = hex2dec(s);
s = sprintf('%08X',n);
m = sscanf(s,'%X');
assert(m == n);
end
end
Expand Down

0 comments on commit 4e81212

Please sign in to comment.