optim_test: Add better timing methods
Better usage of fadvise and sendfile
Remove fileno usage