Skip to content

Commit 47eb94f

Browse files
Rename YJIT_BENCH_RACTOR* to RUBY_BENCH_RACTOR*
1 parent e191c14 commit 47eb94f

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

benchmarks/30k_ifelse.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require_relative '../harness/loader'
2-
if ENV["YJIT_BENCH_RACTOR_HARNESS"]
2+
if ENV["RUBY_BENCH_RACTOR_HARNESS"]
33
eval_recv = Object.new
44
eval_meth = :instance_eval
55
else
@@ -240012,7 +240012,7 @@ def inc(x)
240012240012

240013240013
INTERNAL_ITRS = Integer(ENV.fetch("INTERNAL_ITRS", 200))
240014240014

240015-
main_obj = ENV["YJIT_BENCH_RACTOR_HARNESS"] ? eval_recv : nil
240015+
main_obj = ENV["RUBY_BENCH_RACTOR_HARNESS"] ? eval_recv : nil
240016240016
run_benchmark(30, ractor_args: [main_obj]) do |num_rs, selv|
240017240017
if selv
240018240018
recv = selv

benchmarks/graphql/benchmark.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
DATA = Ractor.make_shareable(File.read "negotiate.gql")
99

10-
if ENV["YJIT_BENCH_RACTOR_HARNESS"]
10+
if ENV["RUBY_BENCH_RACTOR_HARNESS"]
1111
GraphQL.default_parser
1212
Ractor.make_shareable(GraphQL::Tracing::NullTrace)
1313
GraphQL::Language::Lexer.constants.each do |constant|

benchmarks/hexapdf/benchmark.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
Dir["/tmp/hexapdf-result*.pdf"].each { |file| FileUtils.rm file }
2020

21-
if ENV["YJIT_BENCH_RACTOR_HARNESS"]
21+
if ENV["RUBY_BENCH_RACTOR_HARNESS"]
2222
Ractor.make_shareable(HexaPDF::DefaultDocumentConfiguration)
2323
Ractor.make_shareable(HexaPDF::GlobalConfiguration)
2424
# TODO... still doesn't work

benchmarks/nbody/benchmark.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def offset_momentum(bodies)
133133

134134
N = 20000
135135
NBODIES = BODIES.size
136-
if ENV["YJIT_BENCH_RACTOR_HARNESS"]
136+
if ENV["RUBY_BENCH_RACTOR_HARNESS"]
137137
Ractor.make_shareable(BODIES)
138138
end
139139
DT = 0.01
@@ -142,7 +142,7 @@ def offset_momentum(bodies)
142142
nbodies = NBODIES
143143
n = N
144144
dt = DT
145-
if ENV["YJIT_BENCH_RACTOR_HARNESS"]
145+
if ENV["RUBY_BENCH_RACTOR_HARNESS"]
146146
bodies = ractor_deep_dup(BODIES)
147147
else
148148
bodies = BODIES

benchmarks/rubykon/benchmark.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
ITERATIONS = 100
1313

14-
if ENV["YJIT_BENCH_RACTOR_HARNESS"]
14+
if ENV["RUBY_BENCH_RACTOR_HARNESS"]
1515
run_benchmark(10) do
1616
state = Rubykon::GameState.new Rubykon::Game.new(19)
1717
m = MCTS::MCTS.new

benchmarks/setivar.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def set_value_loop
3030

3131
obj = TheClass.new
3232

33-
if ENV["YJIT_BENCH_RACTOR_HARNESS"]
33+
if ENV["RUBY_BENCH_RACTOR_HARNESS"]
3434
# same code as below, just pass obj as a ractor arg
3535
run_benchmark(1000, ractor_args: [obj]) do |_, object|
3636
object.set_value_loop

benchmarks/str_concat.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def concat_single_test(n, encoding, str_to_add)
2424
s
2525
end
2626

27-
if ENV["YJIT_BENCH_RACTOR_HARNESS"]
27+
if ENV["RUBY_BENCH_RACTOR_HARNESS"]
2828
def concat_test
2929
# So far, binary versus UTF-8 encoding makes effectively no
3030
# difference in speed here. Observed diff is around 69.5 vs 68.9
@@ -46,7 +46,7 @@ def concat_test
4646
100.times { concat_test }
4747
end
4848

49-
unless ENV["YJIT_BENCH_RACTOR_HARNESS"]
49+
unless ENV["RUBY_BENCH_RACTOR_HARNESS"]
5050
if OUTPUT[:one] != EXPECTED_OUTPUT
5151
raise "Incorrect output for UTF-8 encoding!"
5252
end

harness-ractor/harness.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
require_relative '../harness/harness-common'
33

44
Warning[:experimental] = false
5-
ENV["YJIT_BENCH_RACTOR_HARNESS"] = "1"
5+
ENV["RUBY_BENCH_RACTOR_HARNESS"] = "1"
66

77
default_ractors = [
88
0, # without ractor
99
1, 2, 4, 6, 8#, 12, 16, 32
1010
]
11-
if rs = ENV["YJIT_BENCH_RACTORS"]
11+
if rs = ENV["RUBY_BENCH_RACTORS"]
1212
rs = rs.split(",").map(&:to_i) # If you want to include 0, you have to specify
1313
rs = rs.sort.uniq
1414
if rs.any?

0 commit comments

Comments
 (0)