3 ms·
I took some similar benchmarks recently: https://code.ivysaur.me/interpreter-binary-perf https://code.ivysaur.me/interpreter-binary-perf Perl5 won the dec2bin
by mappu 6y ago
I took some similar benchmarks recently: https://code.ivysaur.me/interpreter-binary-perf https://code.ivysaur.me/interpreter-binary-perf
Perl5 won the dec2bin benchmark.
The other thing I learned was that PHP's binary/decimal functions are two orders of magnitude slower, despite its core interpreter performance being best-in-class.
- cutler 6y agoOn the other hand PHP has a PCRE jit option which manages to beat even Perl's regex implementation.
- rurban 6y agoYes but you can use that jit also with perl5. https://metacpan.org/pod/re::engine::PCRE2 https://metacpan.org/pod/re::engine::PCRE2 It has even less backcompat problems than the native regex.