You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
2.1 KiB
27 lines
2.1 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<root xmlns:nsd="https://structorizer.fisch.lu" version="3.32-15" preRepeat="until " postFor="to" preReturn="return" postForIn="in" preWhile="while " output="OUTPUT" input="INPUT" preFor="for" preExit="exit" preLeave="leave" ignoreCase="true" preThrow="throw" preForIn="foreach" stepFor="by" namespace="" author="user" created="2024-02-04" changedby="user" changed="2024-02-04" origin="Structorizer 3.32-15" text=""BenchmarkInner()"" comment="""" color="ffffff" type="program" style="nice">
|
|
<children>
|
|
<for text=""for amount of inner repetitions"" comment="""" counterVar="dummy_counter" startValue="amount of inner repetitions" stepConst="1" style="FREETEXT" color="ffffff" disabled="0">
|
|
<qFor>
|
|
<case text=""mode","single submit","batch submit","%"" comment="""" color="ffffff" disabled="0">
|
|
<qCase>
|
|
<instruction text=""handler <- dml::submit(dml::memcopy, src, dst, size)"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction>
|
|
</qCase>
|
|
<qCase>
|
|
<instruction text=""sequence <- dml::sequence(batchsize)"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction>
|
|
<for text=""for batchsize"" comment="""" counterVar="dummy_counter" startValue="batchsize" stepConst="1" style="FREETEXT" color="ffffff" disabled="0">
|
|
<qFor>
|
|
<instruction text=""sequence.add(dml::memcopy, src, dst, size)"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction>
|
|
</qFor>
|
|
</for>
|
|
<instruction text=""handler <- dml::submit(dml::batch, sequence)"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction>
|
|
</qCase>
|
|
<qCase color="ffffff">
|
|
</qCase>
|
|
</case>
|
|
<instruction text=""result <- handler.get()"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction>
|
|
<instruction text=""assert result.status == dml::ok"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction>
|
|
</qFor>
|
|
</for>
|
|
</children>
|
|
</root>
|