Last active
June 10, 2017 05:11
-
-
Save crazyzlj/098f8b1d8739b6d51ec9bad00d6d7a5f to your computer and use it in GitHub Desktop.
Run several times for collecting runtime information on linux and windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_runtimef=<your path>/rt_test.txt | |
echo "Run XXX runtime test..." >$_runtimef | |
for time in 1 2 3 | |
do | |
for proc in 32 16 8 4 2 1 | |
do | |
echo "current process number is: $proc " >>$_runtimef | |
outputfile=<>/outfile_$proc.tif | |
[ -f "$outputfile" ] && { rm -rf $outputfile; } | |
'your exec command' >>$_runtimef | |
done | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set _runtimef=C:\z_research\863CodeTest\runtime\rt_tin.txt | |
echo Runtime test for TIN... >>%_runtimef% | |
for %%t in (1, 2, 3) do ( | |
echo Runing time: %%t >>%_runtimef% | |
for %%p in (1, 2, 4, 8, 16, 32) do ( | |
echo thread num: %%p >>%_runtimef% | |
'your command' >>%_runtimef% | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment