On Sunday, 30 August 2015 at 13:21:42 UTC, qznc wrote:
On Saturday, 29 August 2015 at 19:17:47 UTC, Dmitry Olshansky
wrote:
On 29-Aug-2015 21:14, qznc wrote:
On Saturday, 29 August 2015 at 12:35:14 UTC, Dmitry Olshansky
wrote:
Well, here is the regex-dna one with 3 versions including
C-T regex:
https://github.com/DmitryOlshansky/FReD/blob/master/bench/regex-dna/d_dna.d
Thanks Dmitry!
Which version should be used?
I'd try all of them, I think C-T was the fastest (as it
should).
Yes, C-T is fastest. Even dmd is faster than C/C++ now. :)
Unfortunately, I have to take that back. C is faster than D even
with compile-time regexes. I used the short running benchmarks
first, where compile-time regex wins, probably because it saves
some startup time. For large data, C is faster. It uses the regex
engine from TCL. Maybe std.regex has just space for optimization?
I updated the benchmark results:
https://qznc.github.io/d-shootout/