Skip to content

Commit 3a4cb10

Browse files
committed
Remove unneeded os method and use BenchmarkRunner.os directly
1 parent 90e156a commit 3a4cb10

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

run_benchmarks.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
require_relative 'lib/benchmark_runner'
1515
require_relative 'lib/table_formatter'
1616

17-
# Check which OS we are running
18-
def os
19-
BenchmarkRunner.os
20-
end
21-
2217
# Checked system - error or return info if the command fails
2318
def check_call(command, env: {}, raise_error: true, quiet: false)
2419
puts("+ #{command}") unless quiet
@@ -189,7 +184,7 @@ def run_benchmarks(ruby:, ruby_description:, categories:, name_filters:, out_pat
189184

190185
# Set up the benchmarking command
191186
cmd = []
192-
if os == :linux
187+
if BenchmarkRunner.os == :linux
193188
cmd += setarch_prefix
194189

195190
# Pin the process to one given core to improve caching and reduce variance on CRuby

0 commit comments

Comments
 (0)