Skip to content

Commit 1d51ed7

Browse files
author
Nicolas Laurent
committed
[GR-17457] Rename array set micros.
PullRequest: truffleruby/1736
2 parents 69f89d2 + 2a78d61 commit 1d51ed7

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

bench/micro/array/set_range.rb renamed to bench/micro/array/set-range.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
# GNU General Public License version 2, or
77
# GNU Lesser General Public License version 2.1.
88

9-
array = (0...100000).to_a
9+
array = (0...1000).to_a
1010
shift = 0
1111

12-
benchmark 'set_range' do
12+
benchmark 'core-array-set-range' do
1313
i = 0
1414
replacement = (shift...(shift + 10)).to_a
1515
while i < 1000 - 10

bench/micro/array/set.rb renamed to bench/micro/array/set-simple.rb

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

99
array = (0...1000).to_a
1010

11-
benchmark 'simple-set' do
11+
benchmark 'core-array-set-simple' do
1212
i = 0
1313
while i < 1000
1414
array[i] = i

bench/micro/array/set_span_move.rb renamed to bench/micro/array/set-span-move.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
array = (0...1000).to_a
1010
shift = 0
1111

12-
benchmark 'set_span_move' do
12+
benchmark 'core-array-set-span-move' do
1313
i = 0
1414
replacement = (shift...(shift + 10)).to_a
1515
while i < 1000 - 10

bench/micro/array/set_span_no_move.rb renamed to bench/micro/array/set-span-no-move.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
array = (0...1000).to_a
1010
shift = 0
1111

12-
benchmark 'set_span_no_move' do
12+
benchmark 'core-array-set-span-no-move' do
1313
i = 0
1414
replacement = (shift...(shift + 1000)).to_a
1515
while i < 1000

0 commit comments

Comments
 (0)