6 ms·
> benchmark comparison here [0], rust wins, the fastest boost program is c++ g++ #3 and takes 8.5 times as long With PHP at #2? Doesn't seem credible, or the t
by justinmk 10y ago
> benchmark comparison here [0], rust wins, the fastest boost program is c++ g++ #3 and takes 8.5 times as long
With PHP at #2? Doesn't seem credible, or the thing being tested isn't meaningfully language-dependent.
- dbaupp 10y agoIndeed, it is the regex implementation that is being tested (and so the language of that implementation is relevant), which is exactly what this discussion is about and also why that comment is careful to be specific about which programs are using which regex implementation.
- beering 10y agoIt's testing each language's implementation of regexes. A lot of the languages are probably linking in a regex library written in C or C++ anyways. It's evidence that if you're writing something that's heavy on regexes, any slowdown probably isn't due to the language itself but its library implementation.
- deleted 10y ago[deleted]
- deleted 10y ago[deleted]
- barkingcat 10y agoPHP pcre is implemented in c https://github.com/php/php-src/blob/master/ext/pcre/php_pcre.c https://github.com/php/php-src/blob/master/ext/pcre/php_pcre...
- deleted 10y ago[deleted]
- Skunkleton 10y agoWhy not? They are all basically wrappers around ASM.