Replaced "echo -n" by "printf"

echo doesn't behave the same way on different OSes. The printf command should work almost everywhere.
Added benchmark