mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Skip string allocation in benchmark/time_at.yml
and also drop a weird newline from benchmark/array_sample.yml.
This commit is contained in:
parent
f943264565
commit
021255f1e7
2 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,3 @@
|
|||
|
||||
prelude: ary = (1..10_000).to_a
|
||||
benchmark:
|
||||
- ary.sample
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
prelude: |
|
||||
# frozen_string_literal: true
|
||||
benchmark:
|
||||
- 'Time.at(0)'
|
||||
- 'Time.at(0, 500)'
|
||||
|
|
Loading…
Reference in a new issue