Skip to content

Commit d48cdd9

Browse files
committed
[benchmark-dtrace] Set SWIFT_DETERMINISTIC_HASHING=1 before calling subjobs.
This prevents a bunch of instability in the retain, release numbers. I am still getting some of it, but this helps a lot.
1 parent 1aa9508 commit d48cdd9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

benchmark/scripts/Benchmark_DTrace.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,13 @@ class DTraceBenchmarkDriver(perf_test_driver.BenchmarkDriver):
8686
sys.stdout.flush()
8787

8888
def get_results_with_iters(iters):
89+
e = os.environ
90+
e['SWIFT_DETERMINISTIC_HASHING'] = '1'
8991
p = subprocess.Popen([
9092
'sudo', 'dtrace', '-s', DTRACE_PATH,
9193
'-c', '%s %s %s' % (data['path'], data['test_name'],
9294
'--num-iters=%d' % iters)
93-
], stdout=subprocess.PIPE, stderr=open('/dev/null', 'w'))
95+
], stdout=subprocess.PIPE, stderr=open('/dev/null', 'w'), env=e)
9496
results = [x for x in p.communicate()[0].split("\n") if len(x) > 0]
9597
return [
9698
x.split(',')[1] for x in

0 commit comments

Comments
 (0)