# HG changeset patch # User Boris Feld <boris.feld@octobus.net> # Date 1522247787 -7200 # Wed Mar 28 16:36:27 2018 +0200 # Node ID 55dca76af53f68ae79155437905c15c0e9011a9d # Parent 2c54bebccc0f82347ca3c23ddae160d0f6c74e1f Add a sync call after rsync to avoid Disk IO wait to impact results diff --git a/benchmarks/basic_commands.py b/benchmarks/basic_commands.py --- a/benchmarks/basic_commands.py +++ b/benchmarks/basic_commands.py @@ -184,6 +184,9 @@ # called for each repeat... self._single_execute(['rsync', '-aH', '--delete', '{}/'.format(self.clone_path), self.tmp_clone_path]) + # Wait for everything to be written on disk to avoid Disk IO wait to + # impact performances metrics + self._single_execute(['sync']) def time_push(self, repo_name, strip, revset): cmd = [self.hgpath, '--cwd', self.repo_path, 'push', '-f',