Regex benchmarks in Rust, Scala, D and F#

Daniel Kozak via Digitalmars-d digitalmars-d at puremagic.com
Wed Jan 6 04:45:48 PST 2016


On Tuesday, 5 January 2016 at 18:09:54 UTC, deadalnix wrote:
> On Tuesday, 5 January 2016 at 17:52:39 UTC, Karthikeyan wrote:
>> Hi,
>>
>> Came across this post in rust-lang subreddit about the regex 
>> benchamrks. Scala surprisingly outperforms D. LDC also gives a 
>> good advantage for efficiency of D.
>>
>> http://vaskir.blogspot.ru/2015/09/regular-expressions-rust-vs-f.html
>
> I'm willing to bet the bad result D has come from the use of 
> DMD.
>
> Honestly, pushing DMD as the reference implementation cost us 
> quite a lot on the PR side of things. D appears to be slower 
> that it really is.

not at all:

D(LDC): 5.778s
D(GDC): 5.612s
D(DMD): 5.267s
scalac: 5.748s
rustc: 9.287s

so DMD is the fastest


More information about the Digitalmars-d mailing list