Success! Find is slow no more
Brian Schott
briancschott at gmail.com
Wed May 22 23:52:12 UTC 2019
On Wednesday, 22 May 2019 at 23:24:47 UTC, H. S. Teoh wrote:
> But if your code shows improvement with ldc/gdc, *then* we have
> something interesting to talk about.
Cloning the repository and running "make ldc" on my machine gives
the following:
Search in Alice in Wonderland
std: 178 ±13
manual: 124 ±10
A2Phobos: 100 ±0
Chris: 121 ±10
Andrei: 172 ±11
Andrei2: 116 ±8
Faster: 143 ±10
Search in random short strings
std: 216 ±49
manual: 178 ±43
A2Phobos: 106 ±8
Chris: 195 ±66
Andrei: 121 ±18
Andrei2: 124 ±23
Faster: 125 ±18
Mismatch in random long strings
std: 242 ±87
manual: 229 ±100
A2Phobos: 104 ±7
Chris: 226 ±96
Andrei: 227 ±101
Andrei2: 133 ±29
Faster: 153 ±25
Search random haystack with random needle
std: 244 ±79
manual: 194 ±64
A2Phobos: 105 ±9
Chris: 198 ±69
Andrei: 177 ±39
Andrei2: 144 ±40
Faster: 160 ±27
(avg slowdown vs fastest; absolute deviation)
CPU ID: GenuineIntel Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
More information about the Digitalmars-d
mailing list