Commits

Kaspar Schiess committed bac4b7d

Disables sync so that speed doesn't depend on disk

  • Participants
  • Parent commits 30c1743

Comments (0)

Files changed (1)

File bin/producer

 sleep_seconds = (1 / Float(n))
 
 File.open('test.log', 'a+') do |file|
-  file.sync = true
+  # file.sync = true
 
   loop do
     file.puts "A message (#{Time.now})"