6 ms·
Looking at the benchmark where C++ is worst compared to other languages, it's depending on the library used. I would guess if they used Google's re2 Regex libra
by felixguendling 3y ago
Looking at the benchmark where C++ is worst compared to other languages, it's depending on the library used. I would guess if they used Google's re2 Regex library instead of Boost's, the result would be different.
https://github.com/google/re2 https://github.com/google/re2
https://github.com/greensoftwarelab/Energy-Languages/blob/master/C%2B%2B/regex-redux/regexredux.gpp-3.c%2B%2B https://github.com/greensoftwarelab/Energy-Languages/blob/ma...
- igouy 3y agofwiw the benchmarks game shows: re2 https://benchmarksgame-team.pages.debian.net/benchmarksgame/program/regexredux-gpp-5.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/... boost https://benchmarksgame-team.pages.debian.net/benchmarksgame/program/regexredux-gpp-3.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/... regex-redux https://benchmarksgame-team.pages.debian.net/benchmarksgame/performance/regexredux.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...