Skip to content

Commit 2990292

Browse files
author
Nicolas Laurent
committed
[GR-17457] Make array/flatten-recursive micro benchmark compatible with JRuby.
PullRequest: truffleruby/2118
2 parents 953cc21 + 35d3d8c commit 2990292

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bench/micro/array/flatten-recursive.rb renamed to bench/micro/array/flatten-deep.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
current_array = array
1111
100.times do
1212
next_array = []
13-
current_array.append(0, 1, next_array, 3, 4)
13+
current_array.concat [0, 1, next_array, 3 , 4]
1414
current_array = next_array
1515
end
1616

17-
benchmark 'core-array-flatten-recursive' do
17+
benchmark 'core-array-flatten-deep' do
1818
array.flatten
1919
end

0 commit comments

Comments
 (0)