N = 1e6;

x = 1;
tic;
for i = 1:N
  x = x + 1;
endfor
toc

x = 1;
tic;
for i = 1:N
  x++;
endfor
toc

x = 1;
tic;
for i = 1:N
  x += 1;
endfor
toc
