Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions benchmark/scripts/run_smoke_bench
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def test_performance(opt_level, old_dir, new_dir, threshold, num_samples,
new_lines = ""

# #,TEST,SAMPLES,MIN(μs),MAX(μs),MEAN(μs),SD(μs),MEDIAN(μs),PEAK_MEMORY(B)
score_re = re.compile(r"(\d+),(\w+),\d+,(\d+)")
score_re = re.compile(r"(\d+),([\w.\-]+),\d+,(\d+)")

while to_test is None or len(to_test) > 0:
tested_benchmarks = set()
Expand Down Expand Up @@ -221,7 +221,8 @@ def get_results(bench_dir, opt_level, num_samples, to_test):
if to_test:
args += to_test
env = {'DYLD_LIBRARY_PATH': os.path.join(bench_dir, 'lib', 'swift',
'macos')}
'macos'),
'SWIFT_DETERMINISTIC_HASHING': '1'}
output = subprocess.check_output(args, env=env)
except subprocess.CalledProcessError as e:
sys.stderr.write(e.output)
Expand Down
5 changes: 3 additions & 2 deletions benchmark/scripts/run_smoke_bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def log_filename(bench_dir):
new_logf = open(log_filename(new_dir), 'w')

# #,TEST,SAMPLES,MIN(μs),MAX(μs),MEAN(μs),SD(μs),MEDIAN(μs),PEAK_MEMORY(B)
score_re = re.compile(r"(\d+),(\w+),\d+,(\d+)")
score_re = re.compile(r"(\d+),([\w.\-]+),\d+,(\d+)")

while to_test is None or len(to_test) > 0:
tested_benchmarks = set()
Expand Down Expand Up @@ -180,7 +180,8 @@ def get_results(bench_dir, opt_level, num_samples, to_test):
if to_test:
args += to_test
env = {'DYLD_LIBRARY_PATH': os.path.join(bench_dir, 'lib', 'swift',
'macos')}
'macos'),
'SWIFT_DETERMINISTIC_HASHING': '1'}
output = subprocess.check_output(args, env=env)
except subprocess.CalledProcessError as e:
sys.stderr.write(e.output)
Expand Down