{"thread":{"id":"9521","subject":"Performance on Windows (msysgit) with latest patches","startedAt":"2007-08-14T09:18:20Z","lastAt":"2007-08-14T16:22:24Z","messageCount":2,"participants":["Marius Storm-Olsen","Linus Torvalds"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"50690","messageId":"46C1735C.4050701@trolltech.com","threadId":"9521","inReplyTo":null,"subject":"Performance on Windows (msysgit) with latest patches","fromName":"Marius Storm-Olsen","fromEmail":"marius@trolltech.com","sentAt":"2007-08-14T09:18:20Z","receivedAt":"2007-08-14T09:18:20Z","isPatch":false,"sender":{"key":"marius@trolltech.com","avatar":"https://gravatar.com/avatar/a40071d8f651862c6ab10bd7996f0ad84d94f06c0399de9e3fa4f06beb390a71?d=mp&s=160"},"body":"Hi,\n\nAfter all the performance patches that has been commited to the \ngit.git/master branch, I figured it would be interesting to check out \nhow it would affect times on Windows. So, I merged the git.git/master \nbranch into the 4msysgit.git/next branch and ran the scripts which Moe \nprovided. The result you'll find below.\n\ngit-status got a 1.6X speed-up, and git-commit on a single file got a \n2.5X speed-up. However, git-add and git-commit of all 100K files got a \nslight slowdown.\n\n\nBefore                        After\nperformance patches           performance patches\n-------------------------     -------------------------\nCommand: git init             Command: git init\n-------------------------     -------------------------\n\nreal    0m0.031s              real    0m0.032s\nuser    0m0.031s              user    0m0.015s\nsys     0m0.000s              sys     0m0.015s\n\n-------------------------     -------------------------\nCommand: git add .            Command: git add .\n-------------------------     -------------------------\n\nreal    0m19.328s             real    0m20.204s\nuser    0m0.015s              user    0m0.015s\nsys     0m0.015s              sys     0m0.000s\n\n-------------------------     -------------------------\nCommand: git commit -a...     Command: git commit -a...\n-------------------------     -------------------------\n\nreal    0m30.937s             real    0m31.328s\nuser    0m0.015s              user    0m0.015s\nsys     0m0.015s              sys     0m0.015s\n\n-------------------------     -------------------------\n3x Command: git-status        3x Command: git-status\n-------------------------     -------------------------\n\nreal    0m19.531s             real    0m12.016s\nuser    0m0.211s              user    0m0.274s\nsys     0m0.136s              sys     0m0.091s\n\nreal    0m19.532s             real    0m12.016s\nuser    0m0.259s              user    0m0.242s\nsys     0m0.091s              sys     0m0.137s\n\nreal    0m19.593s             real    0m12.000s\nuser    0m0.211s              user    0m0.227s\nsys     0m0.152s              sys     0m0.090s\n\n-------------------------     -------------------------\nCommand: git commit...        Command: git commit...\n          (single file)                 (single file)\n-------------------------     -------------------------\n\nreal    0m36.688s             real    0m14.640s\nuser    0m0.031s              user    0m0.015s\nsys     0m0.000s              sys     0m0.000s\n\nTotal time --------------     Total time --------------\nReal time:     2m 25.703s     Real time:     1m 42.358s\n- User time:   0m  0.031s     - User time:   0m  0.015s\n- Kernel time: 0m  0.031s     - Kernel time: 0m  0.078s\n= Idle time:   2m 25.640s     = Idle time:   1m 42.264s\n-------------------------     -------------------------\n\n--\n.marius\n\n\n"},{"id":"50711","messageId":"alpine.LFD.0.999.0708140918480.30176@woody.linux-foundation.org","threadId":"9521","inReplyTo":"46C1735C.4050701@trolltech.com","subject":"Re: Performance on Windows (msysgit) with latest patches","fromName":"Linus Torvalds","fromEmail":"torvalds@linux-foundation.org","sentAt":"2007-08-14T16:22:24Z","receivedAt":"2007-08-14T16:22:24Z","isPatch":false,"sender":{"key":"torvalds@linux-foundation.org","avatar":"https://avatars.githubusercontent.com/u/1024025?v=4"},"body":"\n\nOn Tue, 14 Aug 2007, Marius Storm-Olsen wrote:\n> \n> git-status got a 1.6X speed-up, and git-commit on a single file got a 2.5X\n> speed-up. However, git-add and git-commit of all 100K files got a slight\n> slowdown.\n\nThe slight slowdown might be noise in the measurements (for example, just \nIO differences due to layout changes). Did you run it multiple times both \nways to see how stable the numbers are? The changes really shouldn't have \nany visible slowdown, ever.\n\n(Of course, it may be that something else changed, or simply things like \ncode layout changed cachelines etc, so small performance differences can \nbe due to any number of other factors too).\n\n\t\t\tLinus\n"}]}