Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (11 sloc) 172 Bytes
require 'benchmark'
puts "10k File.stat(file)"
10.times {
puts Benchmark.measure {
i = 0
while i < 10_000
File.stat("/tmp")
i = i + 1
end
}
}
Jump to Line
Something went wrong with that request. Please try again.