←back to thread

Why is Windows so slow?

(games.greggman.com)
337 points kristianp | 3 comments | | HN request time: 0.622s | source
Show context
portman ◴[] No.3370217[source]
I'm disappointed HN! There is a lot of pontificating, but not much science here.

It takes all of 2 minutes to try this experiment yourself (plus ~8 minutes for the download).

1. Download chromium http://chromium-browser-source.commondatastorage.googleapis....

2. Unzip to a directory

3. Create this batch file in the src directory, I called mine "test.bat"

    echo start: %time% >> timing.txt
    dir /s > list.txt
    echo end: %time% >> timing
4. Run test.bat from a command prompt, twice.

Paste your output in this thread. Here is mine:

    start: 12:00:41.30 
    end: 12:00:41.94 
    start: 12:00:50.66 
    end: 12:00:51.31 
    
First pass: 640ms; Second pass: 650ms

I can't replicate the OP's claim of 40000ms directory seek, even though I have WORSE hardware. Would be interested in other people's results. Like I said, it only takes 2 minutes.

replies(4): >>3370373 #>>3370537 #>>3370628 #>>3371306 #
1. groby_b ◴[] No.3370628[source]
Try 'fsutil disablelastaccess 0'. Not sure if that's the case for the OP, but lastaccess is horrible on performance.
replies(1): >>3372544 #
2. Renaud ◴[] No.3372544[source]
I think you mean 'fsutil behavior set disablelastacces 1' to disable last file access update.
replies(1): >>3382825 #
3. groby_b ◴[] No.3382825[source]
Yes, I did - thank you for pointing that out.