disp('Hit any key to make the plot.');
pause;

% size of stride array
% ss = size(stride, 1);
s = log2(stride);
hold on;

sk4 = size(k4, 1);
plot(s(1:sk4, 1), k4);

sk8 = size(k8, 1);
plot(s(1:sk8, 1), k8);

sk16 = size(k16, 1);
plot(s(1:sk16, 1), k16);

sk32 = size(k32, 1);
plot(s(1:sk32, 1), k32);

sk64 = size(k64, 1);
plot(s(1:sk64, 1), k64);

sk128 = size(k128, 1);
plot(s(1:sk128, 1), k128);

sk256 = size(k256, 1);
plot(s(1:sk256, 1), k256);

sk512 = size(k512, 1);
plot(s(1:sk512, 1), k512);

sm1 = size(m1, 1);
plot(s(1:sm1, 1), m1);

sm2 = size(m2, 1);
plot(s(1:sm2, 1), m2);

sm4 = size(m4, 1);
plot(s(1:sm4, 1), m4);

xlabel('log2(stride) in bytes');
ylabel('time (usec)');
text(4,0.6, '1K - 1M integers');
