Testing some singleton implementations
Stanislav Blinov
stanislav.blinov at gmail.com
Tue Feb 4 05:05:27 PST 2014
On Tuesday, 4 February 2014 at 09:44:04 UTC, Andrej Mitrovic
wrote:
> 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!
:)
Have you also included fixes from
http://forum.dlang.org/post/khidcgetalmguhassvqm@forum.dlang.org ?
How do the test results look in multiple runs? Is AtomicSingleton
always faster than SyncSingleton on Windows?
More information about the Digitalmars-d
mailing list