add --dont-flush option
add measurements with --dont-flush