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)'