dd bs=1M count=256 if=/dev/zero of=test conv=fdatasync

if the results are too fast try:

dd bs=1M count=1024 if=/dev/zero of=test conv=fdatasync

Source: http://romanrm.ru/en/dd-benchmark