You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: mtimesx_test_dsspeed.m
    path of file: ./repos/CBIG/external_packages/matlab/default_packages/mtimesx_20110223
    
    the code of the file until where you have to start completion: % Test routine for mtimesx, op(double) * op(single) speed vs MATLAB
%******************************************************************************
%
%  MATLAB (R) is a trademark of The Mathworks (R) Corporation
%
%  Function:    mtimesx_test_dsspeed
%  Filename:    mtimesx_test_dsspeed.m
%  Programmer:  James Tursa
%  Version:     1.0
%  Date
    
function maxtimesymTG(T,A,n,details,r)
pp(n) = 0;
mtoc(n) = 0;
xtoc(n) = 0;
for k=1:n
    tic;
    A.'*conj(A);
    mtoc(k) = toc;
    tic;
    mtimesx(A,'T',A,'G');
    xtoc(k) = toc;
    pp(k) = (100 * (xtoc(k) - mtoc(k)) / min(mtoc(k),xtoc(k)));
    A(1,1) = 2*A(1,1); % prevent JIT accelerator from interfering with timing
end
if( details )
    disp('MATLAB mtimes times:');
    disp(mtoc);
    disp('mtimesx times:')
    disp(xtoc);
    disp('mtimesx percent faster times (+ = faster, - = slower)');
    disp(-pp);
end
p = median(pp);
ap = abs(p);
sp = sprintf('%6.1f',ap);
if( ap < 5 )
    c = '(not significant)';
else
    c = '';
end