Skip to content

Commit 85ba831

Browse files
authored
[benchmark] Remove unused function get_results
Remove the `get_results` function, which is no longer used after the refactoring that rebased the benchmark measurements on `BenchmarDriver` class in #21684.
1 parent 520b801 commit 85ba831

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

benchmark/scripts/run_smoke_bench

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -205,25 +205,6 @@ def test_performance(opt_level, old_dir, new_dir, threshold, num_samples,
205205
threshold * 1.4, output_file, *results)
206206

207207

208-
def get_results(bench_dir, opt_level, num_samples, to_test):
209-
try:
210-
exe = os.path.join(bench_dir, 'bin', 'Benchmark_' + opt_level)
211-
args = [exe, '--num-samples=' + str(num_samples),
212-
'--sample-time=0.0025']
213-
if to_test:
214-
args += to_test
215-
env = {'DYLD_LIBRARY_PATH': os.path.join(bench_dir, 'lib', 'swift',
216-
'macos'),
217-
'SWIFT_DETERMINISTIC_HASHING': '1'}
218-
output = subprocess.check_output(args, env=env)
219-
except subprocess.CalledProcessError as e:
220-
sys.stderr.write(e.output)
221-
sys.stderr.flush()
222-
return sys.exit(e.returncode)
223-
else:
224-
return output
225-
226-
227208
def report_code_size(opt_level, old_dir, new_dir, platform, output_file):
228209
if opt_level == 'swiftlibs':
229210
files = glob.glob(os.path.join(old_dir, 'lib', 'swift', platform,

0 commit comments

Comments
 (0)