Skip to content

Instantly share code, notes, and snippets.

@crazyzlj
Last active June 10, 2017 05:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crazyzlj/098f8b1d8739b6d51ec9bad00d6d7a5f to your computer and use it in GitHub Desktop.
Save crazyzlj/098f8b1d8739b6d51ec9bad00d6d7a5f to your computer and use it in GitHub Desktop.
Run several times for collecting runtime information on linux and windows
_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
@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