summaryrefslogtreecommitdiff
path: root/benchmark/nil_p.yml
blob: 79ba4f2177d0d64ccd11eb417d41432b12f10788 (plain)
1
2
3
4
5
6
7
8
9
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