N = 50;

# Executed once to create a repeatable dataset
# x = 255 * rand (10e6,1);
# save -binary log2.var x

if (! exist (x, "var")
  load log2.var
endif
y = zeros (size (x));

bm = zeros (N,1);
for i = 1:N
  tic;
  [f,e] = log2 (x); 
  #[fs,es] = log2 (xs); 
  bm(i) = toc;
endfor

mean (bm)
median (bm)
std (bm)

