OSDN Git Service

Add ALL.vs2017.sln
[winmerge-jp/winmerge-jp.git] / Testing / PerfTest.cmd
1 set exepath=c:\progra~1\winmerge\winmergeu.exe
2 for /F "usebackq" %%f in (`powershell -command [System.Diagnostics.FileVersionInfo]::GetVersionInfo^('%exepath%'^).FileVersion`) do (
3   set resultpath=%~dp0\result-%%f-%date:/=-%%time::=.%.txt
4 )
5 (
6   echo [MainFrame]
7   powershell -command $^(measure-command { cmd '/c for /L %%i in ^(1,1,10^) do "%exepath%" /noninteractive /noprefs' }^).TotalSeconds
8   echo [MergeEditFrame]
9   powershell -command $^(measure-command { cmd '/c for /L %%i in ^(1,1,10^) do "%exepath%" /noninteractive /noprefs c:\progra~1\winmerge\docs\readme.txt c:\progra~1\winmerge\docs\readme.txt' }^).TotalSeconds
10   echo [DirFrame]
11   powershell -command $^(measure-command { cmd '/c for /L %%i in ^(1,1,10^) do "%exepath%" /noninteractive /noprefs c:\progra~1\winmerge\docs\ c:\progra~1\winmerge\docs\' }^).TotalSeconds
12   echo [Report]
13   powershell -command $^(measure-command { cmd '/c %~dp0\ReportTest.cmd' }^).TotalSeconds
14 ) > "%resultpath%"