1
0
Fork 0
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:
Takashi Kokubun 2021-11-14 23:25:24 -08:00
parent f943264565
commit 021255f1e7
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD
2 changed files with 2 additions and 1 deletions

View file

@ -1,4 +1,3 @@
prelude: ary = (1..10_000).to_a
benchmark:
- ary.sample

View file

@ -1,3 +1,5 @@
prelude: |
# frozen_string_literal: true
benchmark:
- 'Time.at(0)'
- 'Time.at(0, 500)'