Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (7 sloc) 166 Bytes
require 'benchmark'
puts "Benchmark chmod performance, 1000x changing mode"
5.times {
puts Benchmark.measure {
1000.times { File.chmod(0622, "README") }
}
}
Jump to Line
Something went wrong with that request. Please try again.