Testing some singleton implementations
Andrej Mitrovic
andrej.mitrovich at gmail.com
Tue Feb 4 01:43:53 PST 2014
On 1/31/14, Stanislav Blinov <stanislav.blinov at gmail.com> wrote:
> I've reworked the unittest a little, to accomodate for multiple
> runs:
>
> http://codepad.org/ghZdjvUE
I've finally managed to build LDC2 on Windows (MinGW version), here
are the timings between DMD and LDC2:
$ dmd -release -inline -O -noboundscheck -unittest singleton_2.d
-oftest.exe && test.exe
Test time for LockSingleton: 606.5 msecs.
Test time for SyncSingleton: 7 msecs.
Test time for AtomicSingleton: 138 msecs.
$ ldmd2 -release -inline -O -noboundscheck -unittest singleton_2.d
-oftest.exe && test.exe
Test time for LockSingleton: 536.25 msecs.
Test time for SyncSingleton: 5 msecs.
Test time for AtomicSingleton: 3 msecs.
Freaking awesome!
More information about the Digitalmars-d
mailing list