1 2 3 4 5 6 7 8
benchmark: dir_empty_p: | require 'tmpdir' max = 100_000 Dir.mktmpdir('bm_dir_empty_p') do |dir| max.times { Dir.empty?(dir) } end loop_count: 1