rust-lang / regex

An implementation of regular expressions for Rust. This implementation uses finite automata and guarantees linear time matching on all inputs.
https://docs.rs/regex
Apache License 2.0
3.51k stars 440 forks source link

Add benchmarks for D's std.regex #430

Closed mrmonday closed 6 years ago

mrmonday commented 6 years ago

It would be interesting to include benchmarks for D's std.regex.

I have initial work for it, but it is not ready to be a pull request, and I probably won't find the time to clean it up:

Branch: https://github.com/mrmonday/regex/tree/d-phobos-benchmarks Diff: https://github.com/rust-lang/regex/compare/master...mrmonday:d-phobos-benchmarks

General notes/notes for Rustaceans who don't read D:

I'm happy to answer any questions to help this along, if I can.

BurntSushi commented 6 years ago

@mrmonday I just wanted to chime in and say thanks so much for doing this. I do actually plan on grabbing that branch and finding a way to get it merged. From the looks of it, I may omit the compile time regexes though, particularly after your findings that it wasn't much of an improvement.