<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://home.jholtrop.com/wiki/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://home.jholtrop.com/wiki/feed.php">
        <title>Holtrop Wiki - d</title>
        <description></description>
        <link>https://home.jholtrop.com/wiki/</link>
        <image rdf:resource="https://home.jholtrop.com/wiki/_media/wiki:dokuwiki.svg" />
       <dc:date>2026-07-02T19:14:20+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://home.jholtrop.com/wiki/d:alloc_time_test?rev=1575428832&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://home.jholtrop.com/wiki/_media/wiki:dokuwiki.svg">
        <title>Holtrop Wiki</title>
        <link>https://home.jholtrop.com/wiki/</link>
        <url>https://home.jholtrop.com/wiki/_media/wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="https://home.jholtrop.com/wiki/d:alloc_time_test?rev=1575428832&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-12-04T03:07:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>alloc_time_test</title>
        <link>https://home.jholtrop.com/wiki/d:alloc_time_test?rev=1575428832&amp;do=diff</link>
        <description>Code:


import std.stdio;
import std.datetime;

ubyte[] alloc_test(size_t size)
{
    auto starttime = Clock.currTime();
    ubyte[] arr = new ubyte[size];
    auto duration = Clock.currTime() - starttime;
    writeln(&quot;size &quot;, size, &quot;, time: &quot;, duration);
    return arr;
}

int main(string[] args)
{
    size_t size = 1u;
    for (;;)
    {
        alloc_test(size);
        size *= 10u;
    }
    return 0;
}</description>
    </item>
</rdf:RDF>
