mirror of
https://github.com/ruby/ruby.git
synced 2026-10-28 16:36:20 +08: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:
2 files changed
+2
-1
No files matched your search
@@ -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)'
|
||||
|
||||
Reference in new issue
Block a user