Remove mutex lock on benchmark execution.
@@ -210,9 +210,8 @@ def _compile_and_run_bitcode_file(
"USER": os.environ.get("USER", ""),
}
- # Only one benchmark can be executed at a time by a service.
- # NOTE this assumes that the parent of cwd is the service working directory.
- with fasteners.InterProcessLock(cwd / "../benchmark_exec.lock"):
+ try:
+ with Timer() as timer:
process = subprocess.Popen(
cmd,
shell=True,
@@ -222,8 +221,6 @@ def _compile_and_run_bitcode_file(
cwd=cwd,
)
- try:
- with Timer() as timer:
stdout, _ = process.communicate(timeout=timeout_seconds)
except subprocess.TimeoutExpired:
process.kill()
@@ -381,7 +378,7 @@ def _make_cBench_validator(
try:
stdout = stdout.decode("utf-8")
if stdout.startswith("Binary files "):
- return f"Benchmark output file '{path.name}' differs from (binary diff)"
+ return f"Benchmark output file '{path.name}' differs from expected (binary diff)"
else:
return f"Benchmark output file '{path.name}' differs from expected: {stdout}"
except UnicodeDecodeError:
