Skip to content

Commit e0881a6

Browse files
benchmarks.yml doesn't contain custom ractor benchmarks
1 parent fe13558 commit e0881a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/benchmarks_test.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
require 'yaml'
33

44
describe 'benchmarks.yml' do
5-
it 'has the same entries as /benchmarks' do
5+
it 'lists standard Ruby/JIT benchmarks, excluding custom Ractor benchmarks' do
66
yjit_bench = File.expand_path('..', __dir__)
77
benchmarks_yml = YAML.load_file("#{yjit_bench}/benchmarks.yml")
88
benchmarks = Dir.glob("#{yjit_bench}/benchmarks/*").map do |entry|
9-
File.basename(entry).delete_suffix('.rb')
10-
end
9+
File.basename(entry).delete_suffix('.rb') unless File.basename(entry) == "ractor"
10+
end.compact
1111
assert_equal benchmarks.sort, benchmarks_yml.keys.sort
1212
end
1313
end

0 commit comments

Comments
 (0)