ruby/benchmark/nil_p.yml

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

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

prelude: |
class Niller; def nil?; true; end; end
xnil, notnil = nil, Object.new
niller = Niller.new
benchmark:
- xnil.nil?
- notnil.nil?
- niller.nil?
loop_count: 10000000