bugfix in memory measure when execution time is too small, improved
generators