% Estimating number of flops per second

format long e

n = 1e6;

a = 1/3;

t1 = clock;

for i=1:n    
    a = 2.0*a;
end
a

tt = etime(clock,t1)

fprintf('Elapsed time for %e operations: %e \n',n,tt);
fprintf('Operations per second: %e \n',n/tt);
