1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/benchmark/array_sample.yml
Takashi Kokubun 021255f1e7
Skip string allocation in benchmark/time_at.yml
and also drop a weird newline from benchmark/array_sample.yml.
2021-11-14 23:25:25 -08:00

4 lines
76 B
YAML

prelude: ary = (1..10_000).to_a
benchmark:
- ary.sample
- ary.sample(2)