faster splitter
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Mon May 30 13:08:46 PDT 2016
On 05/30/2016 04:00 PM, Chris wrote:
> ./benchmark.dmd
> std: 178 ±31 +36 (4475) -29 (5344)
> manual: 167 ±46 +82 (2883) -32 (7054)
> qznc: 114 ±7 +18 (1990) -5 (7288)
> Chris: 228 ±49 +82 (3050) -35 (6780)
> Andrei: 103 ±5 +47 ( 658) -2 (9295)
> (avg slowdown vs fastest; absolute deviation)
> CPU ID: GenuineIntel Intel(R) Core(TM) i5-4200U CPU @ 1.60GHz
>
> LDC:
>
> std: 184 ±19 +28 (3420) -14 (6523)
> manual: 205 ±59 +120 (2463) -39 (7443)
> qznc: 151 ±25 +44 (2983) -17 (6911)
> Chris: 194 ±57 +78 (3702) -46 (6251)
> Andrei: 101 ±2 +42 ( 435) -1 (9542)
> (avg slowdown vs fastest; absolute deviation)
> CPU ID: GenuineIntel Intel(R) Core(TM) i5-4200U CPU @ 1.60GHz
Thanks for looking into this! @qznc, could you please look into updating
https://github.com/dlang/phobos/pull/4362 with this result? One possible
tweak is see whether replacing the function call with inline code helps.
Thanks! -- Andrei
More information about the Digitalmars-d
mailing list