ruby/benchmark/range_bsearch_bignum.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 строки
210 B
YAML
Исходник Обычный вид История

2023-09-20 01:01:55 +03:00
prelude: |
first = 2**100
last = 2**1000
mid = (first + last) / 2
r = first..last
benchmark:
first: r.bsearch { |x| x >= first }
mid: r.bsearch { |x| x >= mid }
last: r.bsearch { |x| x >= last }