summaryrefslogtreecommitdiff
path: root/benchmark/dir_empty_p.rb
blob: 8329c757cf9bae2e0a04b16de490922e89d8d47d (plain)
1
2
3
4
5
require 'tmpdir'
max = 100_000
Dir.mktmpdir('bm_dir_empty_p') do |dir|
  max.times { Dir.empty?(dir) }
end