Benchmarking Time Unit

Stefan Koch via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Nov 1 16:34:45 PDT 2016


On Tuesday, 1 November 2016 at 22:55:36 UTC, Nordlöw wrote:
> On Tuesday, 1 November 2016 at 20:54:34 UTC, Steven 
> Schveighoffer wrote:
>>> MonoTime has about 5-10 % fluctuations on my laptop. Is this 
>>> as good as
>>> it gets?
>>
>> This is not clear. What is this a percentage of?
>
> It percentage of execution time.
>
> 15 ms +- 2 ms
>
> That seems doesn't look like what you describe.
>
> Benchmark code here:
>
> https://github.com/nordlow/phobos-next/blob/master/src/benchmarkAppend.d

I supposed you could not have done it with less templates :)
Since you are hitting gc-code all the time it should be expected 
to have varing times.


More information about the Digitalmars-d-learn mailing list