mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Added automatic benchmark
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@324 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
4c03cd9bda
commit
8b5623bc1d
12 changed files with 5536 additions and 60 deletions
|
|
@ -61,14 +61,38 @@
|
|||
</trycatch>
|
||||
</target>
|
||||
|
||||
<target name="reports" description="generate code analysis reports">
|
||||
<headers name="turtle"/>
|
||||
<target name="bench" description="run compilation benchmark">
|
||||
<quiet>
|
||||
<delete file="${reports.dir}/benchmark-${platform}.log"/>
|
||||
<touch file="${reports.dir}/benchmark-${platform}.log"/>
|
||||
<delete dir="${out.dir}/turtle_bench"/>
|
||||
</quiet>
|
||||
<for param="file">
|
||||
<fileset dir="${applications.dir}/turtle_bench" includes="*.cpp"/>
|
||||
<sequential>
|
||||
<record name="${reports.dir}/benchmark-${platform}.log" action="start" append="true"/>
|
||||
<ant target="-bench">
|
||||
<property name="file" value="@{file}"/>
|
||||
</ant>
|
||||
<record name="${reports.dir}/benchmark-${platform}.log" action="stop"/>
|
||||
</sequential>
|
||||
</for>
|
||||
</target>
|
||||
|
||||
<target name="bench" description="build compilation benchmark">
|
||||
<build-app name="turtle_bench" mode="all">
|
||||
<includepath path="${applications.dir}/turtle_bench"/>
|
||||
</build-app>
|
||||
<target name="-bench">
|
||||
<echo>${file}</echo>
|
||||
<stopwatch name="bench"/>
|
||||
<quiet>
|
||||
<compile name="bench" input="${applications.dir}/turtle_bench" outdir="${out.dir}/turtle_bench" excludes="**">
|
||||
<includepath path="${libraries.dir}"/>
|
||||
<fileset file="${file}"/>
|
||||
</compile>
|
||||
</quiet>
|
||||
<stopwatch name="bench" action="total"/>
|
||||
</target>
|
||||
|
||||
<target name="reports" description="generate code analysis reports">
|
||||
<headers name="turtle"/>
|
||||
</target>
|
||||
|
||||
<target name="export" description="export distribution">
|
||||
|
|
|
|||
|
|
@ -183,7 +183,39 @@
|
|||
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx;h;hpp;hxx;hm;inl;inc;xsd"
|
||||
>
|
||||
<File
|
||||
RelativePath="..\..\src\applications\turtle_bench\turtle_bench.cpp"
|
||||
RelativePath="..\..\src\applications\turtle_bench\turtle_bench_0_class.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\applications\turtle_bench\turtle_bench_0_class_10_max_args.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\applications\turtle_bench\turtle_bench_0_class_20_max_args.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\applications\turtle_bench\turtle_bench_0_class_30_max_args.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\applications\turtle_bench\turtle_bench_30_classes_30_methods_30_args_30_max_args.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\applications\turtle_bench\turtle_bench_30_classes_30_methods_9_args.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\applications\turtle_bench\turtle_bench_30_classes_30_methods_9_args_10_max_args.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\applications\turtle_bench\turtle_bench_30_classes_30_methods_9_args_20_max_args.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\applications\turtle_bench\turtle_bench_30_classes_30_methods_9_args_30_max_args.cpp"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue