Project

General

Profile

Bug #13941 » bench.rb

Benchmarking script - graywolf (Gray Wolf), 09/26/2017 12:10 AM

 
#!/usr/bin/env ruby

require 'benchmark'

Benchmark.bmbm(10) do |x|
x.report('File.exist?:') do
(1..100000).each { File.exist?('/etc/hosts') }
end
end
(4-4/4)