Thursday, May 4, 2006, 1:27:49 PM, Dennis Cote wrote: > More mysteries. To investigate this low insert performance under WinXP I > wrote a simple test program that loops writing one character to a file > and then flushing the file. The strange thing is that it seems to > alternate between two different run times ...
Your program... $ flushtst 15 seconds, 67 flushes/sec $ flushtst 26 seconds, 38 flushes/sec $ flushtst 26 seconds, 38 flushes/sec $ flushtst 27 seconds, 37 flushes/sec $ flushtst 27 seconds, 37 flushes/sec Add the line: DeleteFile("test.txt"); in front of the CreateFile() call... $ flushtst 15 seconds, 67 flushes/sec $ flushtst 14 seconds, 71 flushes/sec $ flushtst 13 seconds, 77 flushes/sec $ flushtst 12 seconds, 83 flushes/sec e