by fireattack · 7y ago · 0 comments
But in that benchmark apparently Rust is faster than PHP (The slowest "Rust #2" is 2.45 sec. while PHP is 2.80 sec. He also mentioned "PCRE", but the ones with Perl in name are even much more slower [the fastest being 14.95 sec.]).
Did I miss his point by linking that benchmark, or did I interpret the benchmark wrong?
[1]: https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
Other comments address why the Rust program is not optimal.
That said, I am surprised that Perl does so poorly. It might just be that no one's submitted a perfectly optimized solution for Perl?
fyi "Regular Expressions (Perl-Compatible)"
Id take that slowdown any day just not having to touch Rust though :^)
So any speed difference between Rust's and PCRE/PHP gets lost among the noise.