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.
17 lines
2.0 KiB
17 lines
2.0 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=""Benchmark()"" comment="""" color="ffffff" type="program" style="nice">
|
|
<children>
|
|
<instruction text=""src <- allocate source memory","dst <- allocate destination memory"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction>
|
|
<instruction text=""memset(src, 0xAB, size)","memset(dst, 0xAB, size)"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction>
|
|
<for text=""for amount of repetitions"" comment="""" counterVar="dummy_counter" startValue="amount of repetitions" stepConst="1" style="FREETEXT" color="ffffff" disabled="0">
|
|
<qFor>
|
|
<instruction text=""dml::flush_cache(src, size)","dml::flush_cache(dst, size)"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction>
|
|
<instruction text=""threads <- init thread pool"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction>
|
|
<instruction text=""begin time measurement"" comment="""" color="ffff80" rotated="0" disabled="0"></instruction>
|
|
<instruction text=""LAUNCH_BARRIER.set()"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction>
|
|
<instruction text=""for all t in threads: t.join()"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction>
|
|
<instruction text=""end time measurement"" comment="""" color="ffff80" rotated="0" disabled="0"></instruction>
|
|
</qFor>
|
|
</for>
|
|
</children>
|
|
</root>
|