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 committed 2021-11-14 23:25:25 -08:00
1 parent f943264565
commit 021255f1e7
2 files changed
+2 -1

No files matched your search

-1
View File
@@ -1,4 +1,3 @@
prelude: ary = (1..10_000).to_a
benchmark:
- ary.sample
+2
View File
@@ -1,3 +1,5 @@
prelude: |
# frozen_string_literal: true
benchmark:
- 'Time.at(0)'
- 'Time.at(0, 500)'