I cant be sure about Rust, but C++ should at least be as fast as C for any fair benchmark.<p>About the regex example.<p><a href="https:&#x2F;&#x2F;benchmarksgame.alioth.debian.org&#x2F;u64q&#x2F;program.php?test=regexdna&amp;lang=gpp&amp;id=2" rel="nofollow">https:&#x2F;&#x2F;benchmarksgame.alioth.debian.org&#x2F;u64q&#x2F;program.php?te...</a><p>The boost regex library is fast and widely used. It doesnt look like the example is using it though, but a library called &quot;re2&quot;. Never heard of it before. Googling turned up this <a href="https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;re2" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;re2</a>